From mboxrd@z Thu Jan 1 00:00:00 1970 From: eyal.oren@deri.org (Eyal Oren) Date: Wed, 07 Nov 2007 10:21:57 +0100 Subject: [sup-talk] new in svn: in-buffer search In-Reply-To: <1194425266-sup-7682@tomsk> References: <1194388505-sup-2866@south> <1194425266-sup-7682@tomsk> Message-ID: <1194427158-sup-6839@timmy> Excerpts from Marcus Williams's message of Wed Nov 07 09:53:35 +0100 2007: > On 6.11.2007, William Morgan wrote: > > First, note that I've remapped the index search from '/' to '\'. Hah! > > > > '/' now does an in-buffer search, highlights the results, and jumps to > > the first one. 'n' jumps to the next result; ^G or any other key cancels > > the current search. > > This feels a bit wrong to me (might just be me though). I'd say that > searching for emails is the most used case for a search option in sup > so should have the '/', and searching in buffer should be something > different. > > Better than that, make '/' mode dependant so you can use say ctrl-s to > search for emails (always), ctrl-f to search in buffer (always) but > map '/' to ctrl-s in thread-index mode (so that would be in inbox and > search results). In all other modes '/' could map to ctrl-f. Personally, I feel that '/' should search in buffer, as many other UNIX tools do (vi, mutt, less, etc). Btw, William, thanks for the search! It's great. But wouldn't you like to search from the top instead of searching from cursor position? I often want to use search instead of hitting cursor-up seven times. -- -eyal