On Thu, Nov 25, 2010 at 11:39 AM, Dylan Smith <[email protected]> wrote:
> You can change your key bindings in fish_default_key_bindings.fish.
>
> Ctrl-arrow keys didn't work for me so I just sent a patch adding them.
> While doing so I noticed there is a nextd-or-forward-word and
> prevd-or-backward-word to bind keys to, which combines both the
> functionality you are mentioning. It goes back or forth in the
> directory history if nothing is on the line I believe.
>
> I made the following change (after the other patch I sent) to combine
> these functions into ctrl-(left|right)-arrow keys.
>
> (note: gmail will wrap the patch lines, which is why I normally attach
> patches I submit)
>
> diff --git a/share/functions/fish_default_key_bindings.fish
> b/share/functions/fish_default_key_bind
> index a26387d..5bb7b74 100644
> --- a/share/functions/fish_default_key_bindings.fish
> +++ b/share/functions/fish_default_key_bindings.fish
> @@ -68,8 +68,8 @@ function fish_default_key_bindings -d "Default
> (Emacs-like) key bindings for fis
> bind \e\x7f backward-kill-word
> bind \eb backward-word
> bind \ef forward-word
> - bind \e\[1\;5C forward-word
> - bind \e\[1\;5D backward-word
> + bind \e\[1\;5C nextd-or-forward-word
> + bind \e\[1\;5D prevd-or-backward-word
Isn't Ctrl is \c? What is \[1\;5D?
And in your previous patch, you added {backward,forward}-word
bindings. But didn't remove the old ones. Will the old ones still
work?
I don't change the key bindings myself. So I'm a fool here. Feel free
to correct me ;)
--
Cheers,
Grissiom
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users