nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit a8c13d79fef9f71a63ec1dff66e1d435408c6a90
parent 40ae394b6adf3268ce7bb0bbf58a20fa4db0e673
Author: Benno Schulenberg <bensberg@justemail.net>
Date:   Fri, 27 Jun 2014 15:51:24 +0000

Adding default keybindings for Cut, PrevWord and NextWord in the prompt input lines.


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5021 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

Diffstat:
MChangeLog | 5+++++
Msrc/global.c | 8++++----
2 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,8 @@ +2014-06-27 Benno Schulenberg <bensberg@justemail.net> + * src/global.c (shortcut_init): Add default keybindings for Cut, + PrevWord and NextWord in the prompt input lines; the code for those + special operations already exists, just the shortcuts were missing. + 2014-06-25 Benno Schulenberg <bensberg@justemail.net> * src/browser.c (do_browser): Allow 'firstfile' and 'lastfile' to be rebound to Ctrl keys -- checking meta_key is wrong, the function has diff --git a/src/global.c b/src/global.c @@ -981,8 +981,8 @@ void shortcut_init(void) add_to_sclist(MMAIN, "^\\", do_replace, 0, TRUE); add_to_sclist(MMAIN, "M-R", do_replace, 0, TRUE); add_to_sclist(MMAIN, "F14", do_replace, 0, TRUE); - add_to_sclist(MMAIN, "^K", do_cut_text_void, 0, TRUE); - add_to_sclist(MMAIN, "F9", do_cut_text_void, 0, TRUE); + add_to_sclist(MMOST, "^K", do_cut_text_void, 0, TRUE); + add_to_sclist(MMOST, "F9", do_cut_text_void, 0, TRUE); add_to_sclist(MMAIN, "^U", do_uncut_text, 0, TRUE); add_to_sclist(MMAIN, "F10", do_uncut_text, 0, TRUE); #ifndef DISABLE_JUSTIFY @@ -1032,8 +1032,8 @@ void shortcut_init(void) add_to_sclist(MMOST, "Left", do_left, 0, TRUE); add_to_sclist(MMOST, "Right", do_right, 0, TRUE); #ifndef NANO_TINY - add_to_sclist(MMAIN, "^Space", do_next_word_void, 0, TRUE); - add_to_sclist(MMAIN, "M-Space", do_prev_word_void, 0, TRUE); + add_to_sclist(MMOST, "M-Space", do_prev_word_void, 0, TRUE); + add_to_sclist(MMOST, "^Space", do_next_word_void, 0, TRUE); #endif add_to_sclist(MMOST, "^A", do_home, 0, TRUE); add_to_sclist(MMOST, "Home", do_home, 0, TRUE);