Applied. Thanks! -- Axel
On 6/13/06, James Vega <[EMAIL PROTECTED]> wrote:
On Thu, Jun 08, 2006 at 01:19:34PM -0400, Mike O'Connor wrote: > below is a patch which futher expands the emacs-style keybindings in > fish to include more cursor movement commands. > > thanks, > stew > > ------------------ > diff -ru fish-1.21.7.orig/input.c fish-1.21.7/input.c --- fish-1.21.7.orig/input.c 2006-06-08 13:15:57.000000000 -0400 +++ fish-1.21.7/input.c 2006-06-08 13:16:36.000000000 -0400 @@ -1270,7 +1270,14 @@ add_escaped_mapping( L"emacs", (L"\\C-h"), L"Control-h", L"backward-delete-char" ); add_escaped_mapping( L"emacs", (L"\\C-e"), L"Control-e", L"end-of-line" ); add_escaped_mapping( L"emacs", (L"\\C-w"), L"Control-w", L"backward-kill-word" ); + add_escaped_mapping( L"emacs", (L"\\C-p"), L"Control-p", L"history-search-backward" ); + add_escaped_mapping( L"emacs", (L"\\C-n"), L"Control-n", L"history-search-forward" ); + add_escaped_mapping( L"emacs", (L"\\C-f"), L"Control-f", L"forward-char" ); + add_escaped_mapping( L"emacs", (L"\\C-b"), L"Control-b", L"backward-char" ); add_escaped_mapping( L"emacs", (L"\e\x7f"), L"Alt-backspace", L"backward-kill-word" ); + add_escaped_mapping( L"emacs", (L"\eb"), L"Alt-b", L"backward-word" ); + add_escaped_mapping( L"emacs", (L"\ef"), L"Alt-f", L"forward-word" ); + add_escaped_mapping( L"emacs", (L"\ed"), L"Alt-d", L"forward-kill-word" ); add_terminfo_mapping( L"emacs", (key_ppage), L"Page Up", L"beginning-of-history" ); add_terminfo_mapping( L"emacs", (key_npage), L"Page Down", L"end-of-history" ); } -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (GNU/Linux) iEYEARECAAYFAkSOtvMACgkQDb3UpmEybUBw/wCfcaEFAXCENDOqHPRpE9mFAY/P 7i8An0O+I8viB/o2chspZoJGqIm1F2+0 =AXHO -----END PGP SIGNATURE-----
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]