I think that would be useful, however if things get too complicated with all the different cases that fish is trying to guess between, it could make it feel inconsistent, which would be bad.
My guess is that the easiest solution would be to add an option such as alt+up similar to the ctrl+up which is currently used to tokenize the search. Ideally this should be easily configurable so people could set which their default behavior would be so that I could do the matlab style search from the beginning, and chris could use search anywhere :-) I do like the idea of giving higher priority to the commands which match at the beginning though, and I definitely think there is some room for a smart prioritization of search results such as ranking them: +add importance for being more recent + add importance for matching the beginning of the input - subtract importance for having many repeated commands match the same part etc... thanks for the response, and keep me posted! I would love to see this feature/option get added to fish! :-) thanks, -=Abe On Nov 5, 2007 9:32 PM, Martin Bähr <[EMAIL PROTECTED]> wrote: > On Mon, Nov 05, 2007 at 06:24:27PM -0800, Chris Rebert wrote: > > Under your scheme, I'd type "foo" and then hit the up arrow a million > > times looking for the line I want, whereas in fish, I just have to > > remember one distinguishing *part* of the command, and it'll be > > completed by hitting the up arrow. > > what about making it search the beginning first and and if it fails to > find anything then look in the middle? > unlikely to have a command that starts with -y or a filename. > > greetings, martin. > -- > cooperative communication with sTeam - caudium, pike, roxen and unix > offering: programming, training and administration - anywhere in the world > -- > pike programmer working in new zealand open-steam.org|webhaven.co.nz > unix system- bahai.or.at iaeste.(tuwien.ac|or).at > administrator (caudium|gotpike).org is.schon.org > Martin Bähr http://www.iaeste.or.at/~mbaehr/ > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Fish-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fish-users
