"git@gitlab.caltech.edu:cs24-19fa/git_rec_nano.git" did not exist on "745410336b6d9c08357e11de2bbeb7d202731244"
Commit 795a16b9 authored by David Lawrence Ramsey's avatar David Lawrence Ramsey
Browse files

add more intuitive Meta-key aliases for ^W^W and ^W^O

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1651 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
No related merge requests found
Showing with 9 additions and 2 deletions
+9 -2
...@@ -12,6 +12,9 @@ CVS code - ...@@ -12,6 +12,9 @@ CVS code -
- Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the - Add NANO_UNJUSTIFY_FKEY (the same as NANO_UNCUT_FKEY) to the
shortcut list, and tweak the unjustify routine to use it. shortcut list, and tweak the unjustify routine to use it.
(DLR) (DLR)
- Add more intuitive Meta-key aliases for moving to the
beginning and ending lines of a paragraph at the search
prompt: Meta-P and Meta-N. (DLR)
- files.c: - files.c:
add_open_files() add_open_files()
- Make the saving of marked status in open_files->file_flags - Make the saving of marked status in open_files->file_flags
......
...@@ -636,12 +636,12 @@ void shortcut_init(int unjustify) ...@@ -636,12 +636,12 @@ void shortcut_init(int unjustify)
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
/* Translators: try to keep this string under 10 characters long */ /* Translators: try to keep this string under 10 characters long */
sc_init_one(&whereis_list, NANO_PARABEGIN_KEY, _("Beg of Par"), sc_init_one(&whereis_list, NANO_PARABEGIN_KEY, _("Beg of Par"),
IFHELP(nano_parabegin_msg, NANO_NO_KEY), NANO_NO_KEY, IFHELP(nano_parabegin_msg, NANO_PARABEGIN_ALTKEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, do_para_begin); NANO_NO_KEY, VIEW, do_para_begin);
/* Translators: try to keep this string under 10 characters long */ /* Translators: try to keep this string under 10 characters long */
sc_init_one(&whereis_list, NANO_PARAEND_KEY, _("End of Par"), sc_init_one(&whereis_list, NANO_PARAEND_KEY, _("End of Par"),
IFHELP(nano_paraend_msg, NANO_NO_KEY), NANO_NO_KEY, IFHELP(nano_paraend_msg, NANO_PARAEND_ALTKEY), NANO_NO_KEY,
NANO_NO_KEY, VIEW, do_para_end); NANO_NO_KEY, VIEW, do_para_end);
#endif #endif
......
...@@ -432,7 +432,9 @@ typedef struct historyheadtype { ...@@ -432,7 +432,9 @@ typedef struct historyheadtype {
#define NANO_NEXTWORD_KEY NANO_CONTROL_SPACE #define NANO_NEXTWORD_KEY NANO_CONTROL_SPACE
#define NANO_PREVWORD_KEY NANO_ALT_SPACE #define NANO_PREVWORD_KEY NANO_ALT_SPACE
#define NANO_PARABEGIN_KEY NANO_CONTROL_W #define NANO_PARABEGIN_KEY NANO_CONTROL_W
#define NANO_PARABEGIN_ALTKEY NANO_ALT_P
#define NANO_PARAEND_KEY NANO_CONTROL_O #define NANO_PARAEND_KEY NANO_CONTROL_O
#define NANO_PARAEND_ALTKEY NANO_ALT_N
#define NANO_VERBATIM_KEY NANO_ALT_V #define NANO_VERBATIM_KEY NANO_ALT_V
#ifndef NANO_SMALL #ifndef NANO_SMALL
......
...@@ -2030,10 +2030,12 @@ int statusq(int tabs, const shortcut *s, const char *def, ...@@ -2030,10 +2030,12 @@ int statusq(int tabs, const shortcut *s, const char *def,
break; break;
#ifndef DISABLE_JUSTIFY #ifndef DISABLE_JUSTIFY
case NANO_PARABEGIN_KEY: case NANO_PARABEGIN_KEY:
case NANO_PARABEGIN_ALTKEY:
do_para_begin(); do_para_begin();
resetstatuspos = 1; resetstatuspos = 1;
break; break;
case NANO_PARAEND_KEY: case NANO_PARAEND_KEY:
case NANO_PARAEND_ALTKEY:
do_para_end(); do_para_end();
resetstatuspos = 1; resetstatuspos = 1;
break; break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment