While I can see the advantage of the method you propose, consider an 
alternative situation.
Let's say I've just run the same command a bunch of times with different 
arguments, like this:

    foo --bar --qux -t somefile1
    foo --bar --qux -y somefile1
    foo --bar --qux -y somefile2

except a bunch more times with the same command and more argument 
variations.
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.

Just saying that there's a trade-off either way you make the up-arrow 
completion work.

- Chris Rebert


Abe Bachrach wrote:
> Hi all, first off I just started using fish, and so far like it a 
> lot... I switched over looking for a shell that provided a search 
> history like matlab, and at first was quite happy, however now that 
> there are more entries in my search history, things aren't working so 
> well, mainly because I need to type in more complete commands before I 
> can start searching...
>
> basically, is there a way to make the search only search the BEGINNING 
> of a line???
>
> for if I know that I have
>
> >echo blah
>
> 10 lines up in my command history, in matlab (and what I'd really like 
> to be able to do) I can just type e, and then hit the up arrow, and it 
> will go to it. However now in fish, it will match any command that has 
> an e in it, which isn't very useful.
>
> this means that I have to type out several more letters, which is much 
> slower.
>
> so any way to fix this???
>
> Simplest would just be an option to have searches start at the 
> beginning of the string. Alternatively there could be a switch based 
> on the number of characters entered, so if there are less than 2-3 
> characters entered, you would search the beginning of the line, and 
> other do the regular search.
>
> Let me know!
> THanks,
> -=Abe
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> 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
>   


-------------------------------------------------------------------------
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

Reply via email to