From mboxrd@z Thu Jan 1 00:00:00 1970 From: vasudeva@linkswarm.com (vasudeva) Date: Wed, 7 Nov 2007 09:25:27 -0500 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: <20071107142527.GB1579@lenin.sovietwar.org> * on 11-07-07, Marcus Williams wrote: > 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. For purposes of migration from existing tools, and conforming to established UNIX conventions, I like keeping / as buffer search (per the 'screen search' CLI norm) and \ as ferret-index search (somewhat unusual functionality in terms of CLI app search conventions, thus deserving of a lower-priority keybinding). That said, I think mode-dependency could be a neat resolve. />