Hi Ryan,

On Tue, Jul 29, 2014 at 8:50 PM, Ryan Burnett <ryanjburn...@gmail.com> wrote:
> I'm running OS 10.9.4 with Fish 2.1. I launch Terminal and cd into my sites
> folder, which has a few directories with similar names, for example:
>
> angular-json
> angular-mongo
>
> When I type:
>
> $ cd a
>
> Fish auto suggests:
>
> $ cd angular-json
>
> ...when I hit tab it auto completes "angular" but stops at the dash.
>
> However, if I delete that line, type "cd a" again, Fish again auto suggests
> angular-json. Hitting the right arrow and enter takes me to the angular-json
> directory (which is what I prefer).
>
> My question is, is it possible to swap this right arrow key auto complete
> functionality to tab and vice versa?

Create ~/.config/fish/functions/fish_user_key_bindings.fish with
following content :

function fish_user_key_bindings
        bind \t forward-char
        bind \e\[C complete
        bind -k right complete
end

and test by opening a new instance of fish.
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>



-- 
Regards,
Siteshwar

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to