Although I don't see an explanation in the user documentation on this
subject<http://ridiculousfish.com/shell/user_doc/html/index.html#completion>,
what I have found in general (and this may be different specifically for
the `cd` command) is that pushing <TAB> once will either:
- complete out to the longest common filename, or other completion
- e.g. $ ls /bin/mou<TAB> will complete to $ ls /bin/mount
- or if it's already at the longest common completion it will give you a
list of possible completions
- e.g. $ ls /bin/mount<TAB> will show
- …bin/mount …bin/mountpoint
- Then hitting tab repeatedly after this will cycle through the
possibilities that were given in the previous list of possible completions
(so if the first one is right you just hit TAB again and keep on moving)
I think this behavior might be somewhat similar to what you're seeing. The
double TAB habit from bash can be broken.
__________________________________________
*(206) 414-8475*
hryanjones.com
On Fri, Aug 2, 2013 at 8:35 PM, Martin Bähr <
[email protected]> wrote:
> On Fri, Aug 02, 2013 at 08:20:01PM -0700, Mark Xia wrote:
> > Hi,
> >
> > I was wondering why fish has this cd behavior:
> >
> > $mkdir new
> > $cd new
> > $mkdir foo
> > $mkdir bar
> > $mkdir sup
> >
> > now type cd<space><tab><tab>
> >
> > The first tab lists the files/folders in new, but the second tab causes
> > your input to become cd bar/
> >
> > Is this a bug? If no, how do we use this correctly? For example, I am
> used
> > to pressing tab more than once from bash because it doesn't change your
> > input, all it does is relist your files/folders.
>
> i have seen this problem too.
> not just with cd, but with file completion in general:
>
> ls ./<tab><tab>
> shows the list as expected, but type a letter, say "s"
> i end up with ls ./bar/s
>
> so it looks like there is a bug with hitting tab a second time
>
> greetings, martin.
> --
> eKita - the online platform for your entire academic
> life
> hackerspace beijing -
> http://qike.info
> --
> chief engineer
> eKita.co
> pike programmer pike.lysator.liu.se
> caudium.net
> foresight developer realss.com
> foresightlinux.org
> unix sysadmin trainer developer
> societyserver.org
> Martin Bähr working in china
> http://societyserver.org/mbaehr/
>
>
> ------------------------------------------------------------------------------
> Get your SQL database under version control now!
> Version control is standard for application code, but databases havent
> caught up. So what steps can you take to put your SQL databases under
> version control? Why should you start doing it? Read more to find out.
> http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
------------------------------------------------------------------------------
Get your SQL database under version control now!
Version control is standard for application code, but databases havent
caught up. So what steps can you take to put your SQL databases under
version control? Why should you start doing it? Read more to find out.
http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users