Sorry for the slow reply. Jerry On Dec 12, 2013, at 1:51 AM, Rainer M Krug <rai...@krugs.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > > On 12/11/13, 24:30 , Jerry wrote: >> >> On Dec 10, 2013, at 4:04 AM, Rainer M Krug <rai...@krugs.de> >> wrote: >> >>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 >>> >>> Hi >>> >>> Sometimes it is useful to highlight all occurrences of the >>> search term, e.g. when navigating to locations in the text where >>> a certain term occurs. Is this possible in LyX? I couldn't find >>> anything in the search dialog. >>> >>> I am only referring to highlighting on the screen, not the >>> compiled document. >>> >>> Is there something I have overlooked? >>> >>> Cheers, >>> >>> Rainer >>> >> This is indeed a useful function. However, there is another >> function that achieves similar results and in some ways is better. >> >> It works like this: Once the Find function finds its first result, >> pressing a specified key combination takes you to the next result >> no matter if the Find dialog window is open or not--there is no >> need to constantly mess with the Find dialog or remove your fingers >> from the keyboard to re-open it or to click a button. > > Agreed - this would be very useful and time saving. > >> >> To find the previous occurrence of the find-string, press another >> key combination. > > Also agreed - forward and backward search by keyboard would be very > useful. > >> One way that this is superior to the highlight-all approach is that >> the screen is scrolled for you. In the highlight-all approach, >> scrolling to the next or previous find result can be difficult >> especially when the results are far apart. > > Both are useful - It is advantageous to see all occurrences > highlighted to assess the context of the search term, but moving to > the next one by keyboard shortcut would be a very useful addition to > this - they would supplement each other. See e.g. the search in > Firefox: one Button which says "Highlight All" and one to search > backward and forward - just also via keyboard shortcuts. Agreed--I forgot to mention that this is the way many recent OS X programs work. For example, here is a screen shot from Apple's TextEdit. I'm not crazy about darkening the background when the multiple selection is active but I suppose that that is the programmer's option. (I hope this list allows attachments--there should be a screen shot right here.) Hitting Command-G moves the yellow-highlighted selection to the next "of."
PastedGraphic-1.pdf
Description: Adobe PDF document
> >> >> When this functionality is combined with the ability to pass >> selected text to the Find function with still another key >> combination (without the need to copy the selected text, open the >> Find dialog, paste the selected text, then click some more to >> search forward or backward), the searching process becomes >> unbelievably streamlined. > > Sounds great - effectively a search in the background. If pone wants > to see a dialog, just press a different key combination. Right. And on OS X, the "Find buffer," if that is a good term, is global, across all applications. So you can select text in one program, hit Command-E, switch to another program and hit (Shift-)Command-G to find the next (previous) occurrence of the text. BTW these are the long-standardized keyboard shortcuts on OS X and are essentially universal--Microsoft and I suppose a few others with long-term cross-platform programs still insist on doing it their own way. But note that OS X users can easily modify the keyboard shortcuts of nearly all programs using the Keyboard System Preference. Not sure if this works on e.g. Word but it certainly works on Qt programs including LyX. > >> >> This functionality has been a standardized feature in OS X >> programs from the beginning (going on 12 years) and might have been >> present in pre-OS X OS's from Apple (I can't recall for sure). > > Interesting - I am using Mac, but was never aware of this - what are > the shortcuts there? See the above remark. They are described on the "Find" menu on every Mac program. 8^) > >> >> Some will recall that I have discussed this before, so I hate to >> be redundant, but I believe this is a very useful approach (and >> not exclusive to the highlight-all approach) and is sorely missed >> by OS X users. And it can be implemented in such a way that the >> more laborious approach is available in its current form--that's >> the way OS X does it, with sort of the "long" way and the "power >> user" way both available. > > +1 > > This definitely sounds like a useful GSoC project? > > Rainer > >> >> Jerry >> > > - -- > Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation > Biology, UCT), Dipl. Phys. (Germany) > > Centre of Excellence for Invasion Biology > Stellenbosch University > South Africa > > Tel : +33 - (0)9 53 10 27 44 > Cell: +33 - (0)6 85 62 59 98 > Fax : +33 - (0)9 58 10 27 44 > > Fax (D): +49 - (0)3 21 21 25 22 44 > > email: rai...@krugs.de > > Skype: RMkrug > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.22 (Darwin) > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQEcBAEBAgAGBQJSqXj0AAoJENvXNx4PUvmCE5YH/1D9Eyg0hfoGiLggMpJRwU/N > AnXybzYSoQ7bIA7CfLF0Y9S8muwH4rjQVBoLuMDEPXXWyxSwv+c/x6aaRHR2rx4d > pHV9R90ly37EYYhxEjkjadz2k0yxzRUoCzuASEshHBYaRdTKPkzFa9v+Km4uW9b0 > dfv4CMfVFQCbNDiGSPBuFGk/7JVK6VxpFUsU8Ae+weFB2e7ZckUJ1Uj9rncfLDRM > eP8iXmquLYXbmeJoIxySdFyorrc2ZNCp0jyatLMTxFgE0l2EMM4Co5uyr9l347we > PWTeGzsXrBVEvoYBsCmPpGv7z8A5ycWuysTKyFWF67GLqt1l8VMFSGAmdnX1wTg= > =e73O > -----END PGP SIGNATURE-----