nano

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

commit bd5966061cb61df8115a4d98bbd2075419b85a76
parent 95b98505174f90de4637822dfb9e9cddd506300d
Author: David Lawrence Ramsey <pooka109@gmail.com>
Date:   Wed, 26 Apr 2006 17:24:46 +0000

in shortcut_init(), add Meta-} as an alias for Meta-]


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

Diffstat:
MChangeLog | 1+
Msrc/global.c | 2+-
Msrc/nano.h | 2++
3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog @@ -101,6 +101,7 @@ CVS code - (DLR and Benno Schulenberg, suggested by Benno Schulenberg) - Tweak the descriptions of some shortcut keys to make them more uniform. (Benno Schulenberg, minor tweaks by DLR) + - Add Meta-} as an alias for Meta-]. (DLR) toggle_init() - In the global toggle list, move the "Constant cursor position display" toggle up to after the "Use more space for editing" diff --git a/src/global.c b/src/global.c @@ -619,7 +619,7 @@ void shortcut_init(bool unjustify) #ifndef NANO_TINY sc_init_one(&main_list, NANO_NO_KEY, N_("Find Other Bracket"), IFHELP(nano_bracket_msg, FALSE), NANO_BRACKET_KEY, NANO_NO_KEY, - NANO_NO_KEY, VIEW, do_find_bracket); + NANO_BRACKET_ALTKEY, VIEW, do_find_bracket); sc_init_one(&main_list, NANO_NO_KEY, N_("Scroll Up"), IFHELP(nano_scrollup_msg, FALSE), NANO_SCROLLUP_KEY, diff --git a/src/nano.h b/src/nano.h @@ -458,6 +458,7 @@ typedef struct rcoption { #define NANO_ALT_Y 'y' #define NANO_ALT_Z 'z' #define NANO_ALT_PIPE '|' +#define NANO_ALT_RCURLYBRACKET '}' /* Some semi-changeable keybindings; don't play with these unless you're * sure you know what you're doing. Assume ERR is defined as -1. */ @@ -549,6 +550,7 @@ typedef struct rcoption { #define NANO_PREVFILE_ALTKEY NANO_ALT_COMMA #define NANO_NEXTFILE_ALTKEY NANO_ALT_PERIOD #define NANO_BRACKET_KEY NANO_ALT_RBRACKET +#define NANO_BRACKET_ALTKEY NANO_ALT_RCURLYBRACKET #define NANO_NEXTWORD_KEY NANO_CONTROL_SPACE #define NANO_PREVWORD_KEY NANO_ALT_SPACE #define NANO_WORDCOUNT_KEY NANO_ALT_D