fixed completion in command line
    add: EditToggleTabTWS,EditFindDefinition, EditLoadPrevFile, EditLoadNextFile actions into bindings list
    add string bindings for f21..f24

Signed-off-by: Ilia Maslakov <il.smind@google.com>
This commit is contained in:
Ilia Maslakov 2009-09-30 09:13:29 +00:00
parent 5128c729b0
commit 53b0f8546d
4 changed files with 28 additions and 16 deletions

View File

@ -1,8 +1,8 @@
[editor]
EditXStore = ctrl-g
EditXPaste = ctrl-v
EditXCut = ctrl-x
EditXStore =
EditXPaste =
EditXCut =
EditDeleteLine = ctrl-y
EditDeleteToLineEnd = ctrl-k
@ -22,15 +22,15 @@ EditWordRight = ctrl-right
EditHome = home
EditEnd = end
EditTab = tab
EditUndo = alt-backspace
EditBeginningOfText = ctrl-shift-pgup
EditEndOfText = ctrl-shift-pgdn
EditUndo = ctrl-u
EditBeginningOfText = ctrl-pgup
EditEndOfText = ctrl-pgdn
EditScrollUp = ctrl-up
EditScrollDown = ctrl-down
EditReturn = shift-enter
EditBeginPage =
EditEndPage =
EditDeleteWordLeft = alt-f
EditBeginPage = ctrl-home
EditEndPage = ctrl-end
EditDeleteWordLeft = alt-backspace
EditDeleteWordRight = alt-d
EditParagraphUp =
EditParagraphDown =
@ -144,7 +144,10 @@ EditBeginorEndMacro = ctrl-r
EditBeginRecordMacro =
EditEndRecordMacro =
EditToggleLineState = alt-n
EditToggleTabTWS = alt-underline
EditFindDefinition = alt-enter
EditLoadPrevFile = alt-minus
EditLoadNextFile = alt-equal
[viewer:hex]
HexViewToggleNavigationMode = tab

View File

@ -188,6 +188,11 @@ static const name_key_map_t command_names[] = {
{ "EditBeginorEndMacro", CK_Begin_End_Macro },
{ "EditExtmode", CK_Ext_Mode },
{ "EditToggleLineState", CK_Toggle_Line_State },
{ "EditToggleTabTWS", CK_Toggle_Tab_TWS },
{ "EditFindDefinition", CK_Find_Definition },
{ "EditLoadPrevFile", CK_Load_Prev_File },
{ "EditLoadNextFile", CK_Load_Next_File },
#if 0
{ "EditFocusNext", CK_Focus_Next },
{ "EditFocusPrev", CK_Focus_Prev },

View File

@ -145,6 +145,11 @@ key_code_name_t key_name_conv_tab[] = {
{KEY_IC, "kpinsert", N_("Insert on keypad")},
{KEY_DC, "kpdelete", N_("Delete on keypad")},
{(int) '\n', "kpenter", N_("Enter on keypad")},
{KEY_F (21), "f21", N_("Function key 21")},
{KEY_F (22), "f22", N_("Function key 22")},
{KEY_F (23), "f23", N_("Function key 23")},
{KEY_F (24), "f24", N_("Function key 24")},
/* Alternative label */
{KEY_BACKSPACE, "backspace", N_("Backspace key")},

View File

@ -1757,13 +1757,12 @@ handle_char (WInput *in, int key)
for (i = 0; input_map[i].key; i++) {
if (key == input_map[i].key) {
if (input_map[i].command != CK_InputComplete) {
if (input_map[i].command != CK_InputComplete)
free_completions (in);
input_execute_cmd (in, input_map[i].command);
update_input (in, 1);
v = MSG_HANDLED;
break;
}
input_execute_cmd (in, input_map[i].command);
update_input (in, 1);
v = MSG_HANDLED;
break;
}
}
if (input_map[i].command == 0) {