On 9/6/06, Martin Bähr <[EMAIL PROTECTED]> wrote:
> On Tue, Sep 05, 2006 at 02:47:21PM -0400, Chris Woodall wrote:
> > Truth is tab expand never worked the way I want it to in Fish. It makes
> > a nice list (and I like that list), but I cant scroll through the options by
> > hitting tab again. Also, Tab doesnt expand a glob (*) correctly it doesnt do
> > anything just lists the matches, it doesnt even attempt to expand it out
> > like zsh.

It sounds like Chris is talking about cycling through the completions,
rather than about scrolling through the list.

I have been thinking about this feature for a while and I think we
have discussed this on the Fish mailing list.  You press Tab to see a
list of completions, then press tab repeatedliy to cycle through the
completions until you reach the desired completion, then press (say)
Enter (or Space?).  The currently selected completion is filled into
the command.

I think this would be very useful, on the premise that selecting is
often easier than typing.  Selecting involves just hitting the same
key until what you want is highlighted.

It is also possible make it so that as you type, the completion moves
to the first candidate completion for which the typed string is a
prefix.

I guess you cannot highlight the selection in the list of completions
if the list is printed straight to the terminal, without a pager.
However it can be done if the list is overwritten every time the
highlight moves.  For example, the Zsh configuration I have used
(Gobolinux) prints completions under (that is, after) the prompt, and
overwrites them when the command is edited.


> i looked at zsh do see how this works, and i can't say i like it.
> for me the point of expansion isto find out what the item can be
> expanded to. very often, the expansion is _not_ what i want, and then i
> change the item until it matches what i am looking for.

Highlighting selections does not hamper your ability to do that.  I'm
not sure exactly how Zsh does it, but it doesn't have to work exactly
like that.  If you see that the list of completions does not contain
what you want, then do what you normally would: change the entered
command line.


> if the item gets expanded automaticly like in zsh then i would be forced
> to remove everything again if it is wrong, which is a lot more work.

No, you wouldn't be.  The suggested completion should not be part of
the command line until you accept it.  You can keep typing or
scrolling, and the current highlight would change, but when you accept
the highlighted text, then it would be printed on the command line.
This does not make any extra work for you if you do not want to use
the feature.


> same with the ability to scroll through the options. if there are a lot
> of choices than this can take a long time, forcing me to remove text to
> go back to the part i wanted.
[...]

Again, scrolling is separate.  You can scroll page-by-page and do
everything as you currently do.

[...]

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to