It does sound like a nice feature. My only concern is the use case where you
just recently typed a command with a unique center rather than a unique
beginning. In the past few days, I've had a lot of commands like this:
fetchlist.rb; and ruby Script.rb; and some more stuff...
fetchlist is a script I wrote to synchronize files between computers, and I
use it a lot when I'm sshing in from work. So when I'm hopping back to the
previous command, I'll usually search with 'Script' or 'ruby'. Specifically,
if I search with ruby in your method, rather than bringing up the very
recent command that had ruby in the middle, it'll jump to a very old command
with ruby in the beginning.
I still might be a good overall change... but you you should be aware that a
single use failure of this sort (requiring the user to back out and search
with a different string, or hit the up arrow a dozen times to find the
correct result) would wipe out the savings of typing only one character
rather than three a hundred times over.
If you are a touch typist (and if you aren't, go learn now, it'll save you
more time than ANY app, process, tool, or language you use) then typing
three characters in under a second... you would have to save many many
fractions of a second to make up for the confusions that a dual-mode search
might cause.
I could be wrong... if you're expecting dual modes, then it's quite likely
that time could be saved. And if you can force a search to the beginning,
maybe that would save time in other ways other than just typing shorter
searches. But I suspect that overall it would be a net loss. It's hard to
tell without actually gathering statistics both ways.
But with something that's hard to call, it's usually smarter to go with the
simpler system. Being quicker to learn trumps being faster to use.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users