Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-11-01 Thread Diego Zamboni
I found a solution - I am using Terminal.app, and in the “Keyboards” tab of the preferences I found the mappings for different key combinations, among them the mappings for Alt-Left and Alt-right (see attached screenshot). Those are the sequences that need to be used with the “bind” command to

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-11-01 Thread Santhosh T
Hi, I tried to push those two bind commands in ~/.config/fish/config.fish; but this didn't work. but if i do: source ~/.config/fish/config.fish then it started working. any clues, what is wrong here.. - santhosh On Sat, Nov 1, 2014 at 12:06 AM, Diego Zamboni di...@zzamboni.org wrote: I

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-11-01 Thread Diego Zamboni
I found a solution - I am using Terminal.app, and in the “Keyboards” tab of the preferences I found the mappings for different key combinations, among them the mappings for Alt-Left and Alt-right (see attached screenshot). Those are the sequences that need to be used with the “bind” command to

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-11-01 Thread Santhosh T
I found the solution. do not put bind commands in config.fish. put them in file: ~/.config/fish/functions/fish_user_key_bindings.fish function fish_user_key_bindings # put your bind commands hereend On Sat, Nov 1, 2014 at 12:22 AM, Santhosh T santhosh.tek...@gmail.com wrote: Hi, I

[Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-10-31 Thread Santhosh T
I am using mac when i tried ALT+Left and ALT+Right, without any command, I dont see current directory changing. when i run dirs command, I noticed that it contains only current directory. how to I do setopt autopush as in zsh thanks santhosh

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-10-31 Thread Santhosh T
Hi Deigo, dirh works for me as you said; also ALT+Left and ALT+Right move cursor one work left or right as expected I tried the binding you suggested bind \e\[ prevd-or-backward-word bind \e\] nextd-or-forward-word But when i hit ALT-[ and Alt-], i see following characters in termainl:

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-10-31 Thread Greg Reagle
On Fri, Oct 31, 2014, at 02:32 PM, Santhosh T wrote: On Fri, Oct 31, 2014 at 11:46 PM, Diego Zamboni di...@zzamboni.org wrote: I think it would be nice for fish to have a “capture key” mode that shows you the sequence to use for any keys you press. Use cat. Type cat enter. Then when you

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-10-31 Thread Diego Zamboni
Hi, I’m having the same issue - Alt-left and Alt-right do nothing. “dirs” for me (on OSX as well) also shows just the current directory, but “dirh” shows the full directory history. Also, prevd-or-backward-word and next-or-forward-word work fine when invoked directly: a10022@cuper ~/Documents

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-10-31 Thread Diego Zamboni
Yes, this works. Thanks! —Diego On Oct 31, 2014, at 12:05 PM, Santhosh T santhosh.tek...@gmail.com wrote: I found the solution. do not put bind commands in config.fish. put them in file: ~/.config/fish/functions/fish_user_key_bindings.fish function fish_user_key_bindings # put

Re: [Fish-users] ALT+Left and ALT+Right is not moving forward/backward in directory history

2014-10-31 Thread charlie
Wow I didn't know this feature either, awesome! On Fri, Oct 31, 2014 at 1:37 PM, Greg Reagle greg.rea...@umbc.edu wrote: On Fri, Oct 31, 2014, at 02:32 PM, Santhosh T wrote: On Fri, Oct 31, 2014 at 11:46 PM, Diego Zamboni di...@zzamboni.org wrote: I think it would be nice for fish to