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:
*  ““““‘‘‘‘‘‘‘*
thanks
Santhosh


On Fri, Oct 31, 2014 at 11:46 PM, Diego Zamboni <di...@zzamboni.org> wrote:

> 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> dirh
> /Users/a10022/Downloads  /  /Users/a10022/Documents
> a10022@cuper ~/Documents> prevd-or-backward-word
> a10022@cuper /> prevd-or-backward-word
> a10022@cuper ~/Downloads> nextd-or-forward-word
> a10022@cuper />
>
> So the functionality seems to be there, I think what’s failing are the key
> bindings:
>
> a10022@cuper /> bind | grep prevd-or
> bind \e\eOD prevd-or-backward-word
> bind \e\e\[D prevd-or-backward-word
> bind \eO3D prevd-or-backward-word
> bind \e\[3D prevd-or-backward-word
> bind \e\[1\;3D prevd-or-backward-word
>
> But I’m not sure what the magic sequence for Alt-left and Alt-right needs
> to be. For example, these two commands make it so that I can use Alt-[ and
> Alt-] to navigate the directory history:
>
> bind \e\[ prevd-or-backward-word
> bind \e\] nextd-or-forward-word
>
> 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.
>
> —Diego
>
> On Oct 31, 2014, at 9:53 AM, Santhosh T <santhosh.tek...@gmail.com> wrote:
>
>
> 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
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Fish-users mailing list
> Fish-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/fish-users
>
>
>
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to