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 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 map to the appropriate functions:
>
> bind \033f next-or-forward-word
> bind \033b prevd-or-backward-word
>
> And now Alt-left and Alt-right work as expected!
>
> I don’t know if you are using Terminal.app or other terminal program, but
> I’m betting the solution must be a similar one.
>
> Hope this helps,
> —Diego
>
>
>
>
> On Oct 31, 2014, at 11:16 AM, 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