mirror of
git://git.sv.gnu.org/nano.git
synced 2025-03-12 03:13:15 +03:00
- Add Meta-A as alternate keyystroke for ^^ for people with non-US keyboards and Replace hard coded ALT_G and ALT_H values in the replace and goto shortcuts with their macro counterparts NANO_ALT_*_KEY
git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_1_0_branch/nano@995 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
This commit is contained in:
parent
5aee539071
commit
04c3c425ac
@ -3,6 +3,12 @@ CVS Code -
|
||||
- Better partial word checking code. New function
|
||||
search.c:is_whole_word(), changes to findnextstr(),
|
||||
and nano.c:do_int_spell_fix() (Rocco Corsi).
|
||||
- Add Meta-A as alternate keyystroke for ^^ for people with
|
||||
non-US keyboards.
|
||||
- global.c:
|
||||
shorcut_init()
|
||||
- Replace hard coded ALT_G and ALT_H values in the replace
|
||||
and goto shortcuts with their macro counterparts NANO_ALT_*_KEY.
|
||||
- nano.c:
|
||||
do_suspend()
|
||||
- Call tcsetattr() to restore the old terminal settings, so
|
||||
|
8
global.c
8
global.c
@ -246,7 +246,7 @@ void shortcut_init(int unjustify)
|
||||
else
|
||||
sc_init_one(&main_list[4], NANO_REPLACE_KEY, _("Replace"),
|
||||
nano_replace_msg,
|
||||
NANO_ALT_R, NANO_REPLACE_FKEY, 0, NOVIEW, do_replace);
|
||||
NANO_ALT_REPLACE_KEY, NANO_REPLACE_FKEY, 0, NOVIEW, do_replace);
|
||||
|
||||
sc_init_one(&main_list[5], NANO_WHEREIS_KEY, _("Where Is"),
|
||||
nano_whereis_msg,
|
||||
@ -301,7 +301,7 @@ void shortcut_init(int unjustify)
|
||||
nano_refresh_msg, 0, 0, 0, VIEW, total_refresh);
|
||||
|
||||
sc_init_one(&main_list[19], NANO_MARK_KEY, _("Mark Text"),
|
||||
nano_mark_msg, 0, 0, 0, NOVIEW, do_mark);
|
||||
nano_mark_msg, NANO_ALT_MARK_KEY, 0, 0, NOVIEW, do_mark);
|
||||
|
||||
sc_init_one(&main_list[20], NANO_DELETE_KEY, _("Delete"),
|
||||
nano_delete_msg, 0, KEY_DC,
|
||||
@ -317,7 +317,7 @@ void shortcut_init(int unjustify)
|
||||
if (ISSET(PICO_MODE))
|
||||
sc_init_one(&main_list[23], NANO_REPLACE_KEY, _("Replace"),
|
||||
nano_replace_msg,
|
||||
NANO_ALT_R, NANO_REPLACE_FKEY, 0, NOVIEW, do_replace);
|
||||
NANO_ALT_REPLACE_KEY, NANO_REPLACE_FKEY, 0, NOVIEW, do_replace);
|
||||
else
|
||||
sc_init_one(&main_list[23], NANO_JUSTIFY_KEY, _("Justify"),
|
||||
nano_justify_msg, 0, NANO_JUSTIFY_FKEY, 0,
|
||||
@ -329,7 +329,7 @@ void shortcut_init(int unjustify)
|
||||
|
||||
sc_init_one(&main_list[25], NANO_GOTO_KEY, _("Goto Line"),
|
||||
nano_goto_msg,
|
||||
NANO_ALT_G, NANO_GOTO_FKEY, 0, VIEW, do_gotoline_void);
|
||||
NANO_ALT_GOTO_KEY, NANO_GOTO_FKEY, 0, VIEW, do_gotoline_void);
|
||||
|
||||
|
||||
|
||||
|
1
nano.h
1
nano.h
@ -221,6 +221,7 @@ know what you're doing */
|
||||
#define NANO_FORWARD_KEY NANO_CONTROL_F
|
||||
#define NANO_BACK_KEY NANO_CONTROL_B
|
||||
#define NANO_MARK_KEY NANO_CONTROL_6
|
||||
#define NANO_ALT_MARK_KEY NANO_ALT_A
|
||||
#define NANO_HOME_KEY NANO_CONTROL_A
|
||||
#define NANO_END_KEY NANO_CONTROL_E
|
||||
#define NANO_DELETE_KEY NANO_CONTROL_D
|
||||
|
Loading…
x
Reference in New Issue
Block a user