From: Thomas L. <ta...@ec...> - 2005-12-08 21:33:34
|
On Tue, 06 Dec 2005 16:48:46 -0800, Ken Hayber wrote: > On Tue, December 6, 2005 12:21 pm, Thomas Leonard said: >> On Sun, 04 Dec 2005 13:25:52 -0800, Ken Hayber wrote: >> >>> Attached is a patch against Edit 2.0 to modify the Find/Search feature a >>> bit. Most editors have a >>> simple function key that repeats a previous find without showing any UI. >>> This patch adds this to >>> Edit 2.0. >> [...] >>> The only thing I don't like about this patch is that the search behavior >>> is now coded in two >>> different places. I think there is probably a way to use the >>> minibuffer, but keep it hidden and do >>> something similar. Or, the minibuffer could call back to the EditWindow >>> to perform the actual >>> forward/backward searches. >> >> The second option sounds better. > > I'll look into it. > >> Or, we could just provide a single >> short-cut to reopen the minibuffer with the previous search string. > > The problem with this (for me at least) is that the focus keeps switching > between the minibuffer and the text. That is what I was trying to > avoid/fix. I've made a few changes to see how it might work: - Added 'Search Again' function. This opens the minibuffer with the previous search string already in it and does another search in the current direction. - Pressing Return during a search now closes the minibuffer; use the down arrow to get to the next match. - Bugfix: The goto minibuffer would no longer close. I've got it focussing the minibuffer when you repeat a search. I tried it both ways, but I prefer being able to use Up/Down to continue the search. You do have to press Return to close it now, but that's not a big problem. A possible alternative is to keep the focus in the document, and close the minibuffer as soon as you press a key. -- Dr Thomas Leonard http://rox.sourceforge.net GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1 |