mirror of https://github.com/MidnightCommander/mc
Ticket #2511: simplification and unification of keybinding names.
Added doc/keybind-migration.txt file to describe new keybinding names used in mc.keymap.* files in 4.8.x series. Cosmetics: reordering of keymap section declarations to provide identical order totally in the source tree. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
7e87dd7024
commit
68a8745f6d
|
@ -1,7 +1,7 @@
|
|||
DIST_SUBDIRS = hints man hlp
|
||||
SUBDIRS = hints man hlp
|
||||
|
||||
DOCS = FAQ HACKING INSTALL INSTALL.FAST MAINTAINERS README.QNX
|
||||
DOCS = FAQ HACKING INSTALL INSTALL.FAST MAINTAINERS README.QNX keybind-migration.txt
|
||||
EXTRA_DIST = $(DX_CONFIG) doxygen-include.am $(DOCS)
|
||||
|
||||
include doxygen-include.am
|
||||
|
|
|
@ -0,0 +1,59 @@
|
|||
|
||||
This file describes how keybind names used in mc.keymap.* files
|
||||
are changed in 4.8.* releases.
|
||||
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| Old name | New name | Notes |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [main] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [main:xmap] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [panel] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [dialog] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [input] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [listbox] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [tree] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [help] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [editor] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [editor:xmap] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [viewer] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [viewer:hex] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| [diffviewer] section |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
||||
| | | |
|
||||
+---------------------------------+-------------------------+-----------------------------------------+
|
527
lib/keybind.c
527
lib/keybind.c
|
@ -3,6 +3,7 @@
|
|||
|
||||
Written by: 2005 Vitja Makarov
|
||||
2009 Ilia Maslakov
|
||||
2009, 2010 Andrew Borodin
|
||||
|
||||
This file is part of the Midnight Commander.
|
||||
|
||||
|
@ -43,258 +44,11 @@
|
|||
/*** file scope variables ************************************************************************/
|
||||
|
||||
static name_keymap_t command_names[] = {
|
||||
{"InsertChar", CK_Insert_Char},
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
{"EditNoCommand", CK_Ignore_Key},
|
||||
{"EditIgnoreKey", CK_Ignore_Key},
|
||||
{"EditBackSpace", CK_BackSpace},
|
||||
{"EditDelete", CK_Delete},
|
||||
{"EditEnter", CK_Enter},
|
||||
{"EditPageUp", CK_Page_Up},
|
||||
{"EditPageDown", CK_Page_Down},
|
||||
{"EditLeft", CK_Left},
|
||||
{"EditRight", CK_Right},
|
||||
{"EditWordLeft", CK_Word_Left},
|
||||
{"EditWordRight", CK_Word_Right},
|
||||
{"EditUp", CK_Up},
|
||||
{"EditDown", CK_Down},
|
||||
{"EditHome", CK_Home},
|
||||
{"EditEnd", CK_End},
|
||||
{"EditTab", CK_Tab},
|
||||
{"EditUndo", CK_Undo},
|
||||
{"EditRedo", CK_Redo},
|
||||
{"EditBeginningOfText", CK_Beginning_Of_Text},
|
||||
{"EditEndOfText", CK_End_Of_Text},
|
||||
{"EditScrollUp", CK_Scroll_Up},
|
||||
{"EditScrollDown", CK_Scroll_Down},
|
||||
{"EditReturn", CK_Return},
|
||||
{"EditBeginPage", CK_Begin_Page},
|
||||
{"EditEndPage", CK_End_Page},
|
||||
{"EditDeleteWordLeft", CK_Delete_Word_Left},
|
||||
{"EditDeleteWordRight", CK_Delete_Word_Right},
|
||||
{"EditParagraphUp", CK_Paragraph_Up},
|
||||
{"EditParagraphDown", CK_Paragraph_Down},
|
||||
{"EditMenu", CK_Menu},
|
||||
{"EditSave", CK_Save},
|
||||
{"EditLoad", CK_Load},
|
||||
{"EditNew", CK_New},
|
||||
{"EditSaveas", CK_Save_As},
|
||||
{"EditMark", CK_Mark},
|
||||
{"EditCopy", CK_Copy},
|
||||
{"EditMove", CK_Move},
|
||||
{"EditRemove", CK_Remove},
|
||||
{"EditMarkAll", CK_Mark_All},
|
||||
{"EditUnmark", CK_Unmark},
|
||||
{"EditMarkWord", CK_Mark_Word},
|
||||
{"EditMarkLine", CK_Mark_Line},
|
||||
{"EditSaveBlock", CK_Save_Block},
|
||||
{"EditColumnMark", CK_Column_Mark},
|
||||
{"EditFind", CK_Find},
|
||||
{"EditFindAgain", CK_Find_Again},
|
||||
{"EditReplace", CK_Replace},
|
||||
{"EditReplaceAgain", CK_Replace_Again},
|
||||
{"EditCompleteWord", CK_Complete_Word},
|
||||
|
||||
#if 0
|
||||
{"EditDebugStart", CK_Debug_Start},
|
||||
{"EditDebugStop", CK_Debug_Stop},
|
||||
{"EditDebugToggleBreak", CK_Debug_Toggle_Break},
|
||||
{"EditDebugClear", CK_Debug_Clear},
|
||||
{"EditDebugNext", CK_Debug_Next},
|
||||
{"EditDebugStep", CK_Debug_Step},
|
||||
{"EditDebugBackTrace", CK_Debug_Back_Trace},
|
||||
{"EditDebugContinue", CK_Debug_Continue},
|
||||
{"EditDebugEnterCommand", CK_Debug_Enter_Command},
|
||||
{"EditDebugUntilCurser", CK_Debug_Until_Curser},
|
||||
#endif
|
||||
{"EditInsertFile", CK_Insert_File},
|
||||
{"EditQuit", CK_Quit},
|
||||
{"EditToggleInsert", CK_Toggle_Insert},
|
||||
{"EditHelp", CK_Help},
|
||||
{"EditDate", CK_Date},
|
||||
{"EditRefresh", CK_Refresh},
|
||||
{"EditGoto", CK_Goto},
|
||||
{"EditDeleteLine", CK_Delete_Line},
|
||||
{"EditDeleteToLineEnd", CK_Delete_To_Line_End},
|
||||
{"EditDeleteToLineBegin", CK_Delete_To_Line_Begin},
|
||||
{"EditManPage", CK_Man_Page},
|
||||
{"EditSort", CK_Sort},
|
||||
{"EditMail", CK_Mail},
|
||||
{"EditCancel", CK_Cancel},
|
||||
{"EditComplete", CK_Complete},
|
||||
{"EditParagraphFormat", CK_Paragraph_Format},
|
||||
{"EditUtil", CK_Util},
|
||||
{"EditTypeLoadPython", CK_Type_Load_Python},
|
||||
{"EditFindFile", CK_Find_File},
|
||||
{"EditCtags", CK_Ctags},
|
||||
{"EditMatchBracket", CK_Match_Bracket},
|
||||
{"EditTerminal", CK_Terminal},
|
||||
{"EditTerminalApp", CK_Terminal_App},
|
||||
{"EditExtCmd", CK_ExtCmd},
|
||||
{"EditUserMenu", CK_User_Menu},
|
||||
{"EditBeginRecordMacro", CK_Begin_Record_Macro},
|
||||
{"EditEndRecordMacro", CK_End_Record_Macro},
|
||||
{"EditBeginEndRepeat", CK_Begin_End_Repeat},
|
||||
{"EditDeleteMacro", CK_Delete_Macro},
|
||||
{"EditToggleBookmark", CK_Toggle_Bookmark},
|
||||
{"EditFlushBookmarks", CK_Flush_Bookmarks},
|
||||
{"EditNextBookmark", CK_Next_Bookmark},
|
||||
{"EditPrevBookmark", CK_Prev_Bookmark},
|
||||
{"EditPageUpHighlight", CK_Page_Up_Highlight},
|
||||
{"EditPageDownHighlight", CK_Page_Down_Highlight},
|
||||
{"EditLeftHighlight", CK_Left_Highlight},
|
||||
{"EditRightHighlight", CK_Right_Highlight},
|
||||
{"EditWordLeftHighlight", CK_Word_Left_Highlight},
|
||||
{"EditWordRightHighlight", CK_Word_Right_Highlight},
|
||||
{"EditUpHighlight", CK_Up_Highlight},
|
||||
{"EditDownHighlight", CK_Down_Highlight},
|
||||
{"EditHomeHighlight", CK_Home_Highlight},
|
||||
{"EditEndHighlight", CK_End_Highlight},
|
||||
{"EditBeginningOfTextHighlight", CK_Beginning_Of_Text_Highlight},
|
||||
{"EditEndOfTextHighlight", CK_End_Of_Text_Highlight},
|
||||
{"EditBeginPageHighlight", CK_Begin_Page_Highlight},
|
||||
{"EditEndPageHighlight", CK_End_Page_Highlight},
|
||||
{"EditScrollUpHighlight", CK_Scroll_Up_Highlight},
|
||||
{"EditScrollDownHighlight", CK_Scroll_Down_Highlight},
|
||||
{"EditParagraphUpHighlight", CK_Paragraph_Up_Highlight},
|
||||
{"EditParagraphDownHighlight", CK_Paragraph_Down_Highlight},
|
||||
|
||||
{"EditPageUpAltHighlight", CK_Page_Up_Alt_Highlight},
|
||||
{"EditPageDownAltHighlight", CK_Page_Down_Alt_Highlight},
|
||||
{"EditLeftAltHighlight", CK_Left_Alt_Highlight},
|
||||
{"EditRightAltHighlight", CK_Right_Alt_Highlight},
|
||||
{"EditWordLeftAltHighlight", CK_Word_Left_Alt_Highlight},
|
||||
{"EditWordRightAltHighlight", CK_Word_Right_Alt_Highlight},
|
||||
{"EditUpAltHighlight", CK_Up_Alt_Highlight},
|
||||
{"EditDownAltHighlight", CK_Down_Alt_Highlight},
|
||||
{"EditHomeAltHighlight", CK_Home_Alt_Highlight},
|
||||
{"EditEndAltHighlight", CK_End_Alt_Highlight},
|
||||
{"EditBeginningOfTextAltHighlight", CK_Beginning_Of_Text_Alt_Highlight},
|
||||
{"EditEndOfTextAltHighlight", CK_End_Of_Text_Alt_Highlight},
|
||||
{"EditBeginPageAltHighlight", CK_Begin_Page_Alt_Highlight},
|
||||
{"EditEndPageAltHighlight", CK_End_Page_Alt_Highlight},
|
||||
{"EditScrollUpAltHighlight", CK_Scroll_Up_Alt_Highlight},
|
||||
{"EditScrollDownAltHighlight", CK_Scroll_Down_Alt_Highlight},
|
||||
{"EditParagraphUpAltHighlight", CK_Paragraph_Up_Alt_Highlight},
|
||||
{"EditParagraphDownAltHighlight", CK_Paragraph_Down_Alt_Highlight},
|
||||
|
||||
{"EditShiftBlockLeft", CK_Shift_Block_Left},
|
||||
{"EditShiftBlockRight", CK_Shift_Block_Right},
|
||||
|
||||
{"EditXStore", CK_XStore},
|
||||
{"EditXCut", CK_XCut},
|
||||
{"EditXPaste", CK_XPaste},
|
||||
{"EditSelectionHistory", CK_Selection_History},
|
||||
{"EditShell", CK_Shell},
|
||||
{"EditInsertLiteral", CK_Insert_Literal},
|
||||
{"EditBeginOrEndMacro", CK_Begin_End_Macro},
|
||||
{"EditExtMode", CK_Ext_Mode},
|
||||
{"EditToggleLineState", CK_Toggle_Line_State},
|
||||
{"EditToggleTabTWS", CK_Toggle_Tab_TWS},
|
||||
{"EditToggleSyntax", CK_Toggle_Syntax},
|
||||
{"EditToggleShowMargin", CK_Toggle_Show_Margin},
|
||||
{"EditFindDefinition", CK_Find_Definition},
|
||||
{"EditLoadPrevFile", CK_Load_Prev_File},
|
||||
{"EditLoadNextFile", CK_Load_Next_File},
|
||||
{"EditOptions", CK_Edit_Options},
|
||||
{"EditSaveMode", CK_Edit_Save_Mode},
|
||||
{"EditChooseSyntax", CK_Choose_Syntax},
|
||||
{"EditAbout", CK_About},
|
||||
{"EditPipeBlock", CK_Pipe_Block (0)},
|
||||
|
||||
#if 0
|
||||
{"EditFocusNext", CK_Focus_Next},
|
||||
{"EditFocusPrev", CK_Focus_Prev},
|
||||
{"EditHeightInc", CK_Height_Inc},
|
||||
{"EditHeightDec", CK_Height_Dec},
|
||||
{"EditMake", CK_Make},
|
||||
{"EditErrorNext", CK_Error_Next},
|
||||
{"EditErrorPrev", CK_Error_Prev},
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
{"EditSaveDesktop", CK_Save_Desktop},
|
||||
{"EditNewWindow", CK_New_Window},
|
||||
{"EditCycle", CK_Cycle},
|
||||
{"EditSaveAndQuit", CK_Save_And_Quit},
|
||||
{"EditRunAnother", CK_Run_Another},
|
||||
{"EditCheckSaveAndQuit", CK_Check_Save_And_Quit},
|
||||
{"EditMaximize", CK_Maximize},
|
||||
#endif
|
||||
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
/* viewer */
|
||||
{"ViewHelp", CK_ViewHelp},
|
||||
{"ViewToggleWrapMode", CK_ViewToggleWrapMode},
|
||||
{"ViewToggleHexEditMode", CK_ViewToggleHexEditMode},
|
||||
{"ViewQuit", CK_ViewQuit},
|
||||
{"ViewToggleHexMode", CK_ViewToggleHexMode},
|
||||
{"ViewGoto", CK_ViewGoto},
|
||||
{"ViewHexEditSave", CK_ViewHexEditSave},
|
||||
{"ViewSearch", CK_ViewSearch},
|
||||
{"ViewToggleMagicMode", CK_ViewToggleMagicMode},
|
||||
{"ViewToggleNroffMode", CK_ViewToggleNroffMode},
|
||||
{"ViewContinueSearch", CK_ViewContinueSearch},
|
||||
{"ViewGotoBookmark", CK_ViewGotoBookmark},
|
||||
{"ViewNewBookmark", CK_ViewNewBookmark},
|
||||
{"ViewMoveUp", CK_ViewMoveUp},
|
||||
{"ViewMoveDown", CK_ViewMoveDown},
|
||||
{"ViewMoveLeft", CK_ViewMoveLeft},
|
||||
{"ViewMoveRight", CK_ViewMoveRight},
|
||||
{"ViewMoveLeft10", CK_ViewMoveLeft10},
|
||||
{"ViewMoveRight10", CK_ViewMoveRight10},
|
||||
{"ViewMovePgDn", CK_ViewMovePgDn},
|
||||
{"ViewMovePgUp", CK_ViewMovePgUp},
|
||||
{"ViewMoveHalfPgDn", CK_ViewMoveHalfPgDn},
|
||||
{"ViewMoveHalfPgUp", CK_ViewMoveHalfPgUp},
|
||||
{"ViewMoveToBol", CK_ViewMoveToBol},
|
||||
{"ViewMoveToEol", CK_ViewMoveToEol},
|
||||
{"ViewMoveTop", CK_ViewMoveTop},
|
||||
{"ViewMoveBottom", CK_ViewMoveBottom},
|
||||
{"ViewNextFile", CK_ViewNextFile},
|
||||
{"ViewPrevFile", CK_ViewPrevFile},
|
||||
{"ViewToggleRuler", CK_ViewToggleRuler},
|
||||
{"ViewToggleHexNavMode", CK_ViewToggleHexNavMode},
|
||||
|
||||
/* help */
|
||||
{"HelpHelp", CK_HelpHelp},
|
||||
{"HelpIndex", CK_HelpIndex},
|
||||
{"HelpBack", CK_HelpBack},
|
||||
{"HelpQuit", CK_HelpQuit},
|
||||
{"HelpMoveUp", CK_HelpMoveUp},
|
||||
{"HelpMoveDown", CK_HelpMoveDown},
|
||||
{"HelpMovePgDn", CK_HelpMovePgDn},
|
||||
{"HelpMovePgUp", CK_HelpMovePgUp},
|
||||
{"HelpMoveHalfPgDn", CK_HelpMoveHalfPgDn},
|
||||
{"HelpMoveHalfPgUp", CK_HelpMoveHalfPgUp},
|
||||
{"HelpMoveTop", CK_HelpMoveTop},
|
||||
{"HelpMoveBottom", CK_HelpMoveBottom},
|
||||
{"HelpSelectLink", CK_HelpSelectLink},
|
||||
{"HelpNextLink", CK_HelpNextLink},
|
||||
{"HelpPrevLink", CK_HelpPrevLink},
|
||||
{"HelpNextNode", CK_HelpNextNode},
|
||||
{"HelpPrevNode", CK_HelpPrevNode},
|
||||
|
||||
/* tree */
|
||||
{"TreeHelp", CK_TreeHelp},
|
||||
{"TreeForget", CK_TreeForget},
|
||||
{"TreeToggleNav", CK_TreeToggleNav},
|
||||
{"TreeCopy", CK_TreeCopy},
|
||||
{"TreeMove", CK_TreeMove},
|
||||
{"TreeMake", CK_TreeMake},
|
||||
{"TreeMoveUp", CK_TreeMoveUp},
|
||||
{"TreeMoveDown", CK_TreeMoveDown},
|
||||
{"TreeMoveLeft", CK_TreeMoveLeft},
|
||||
{"TreeMoveRight", CK_TreeMoveRight},
|
||||
{"TreeMoveHome", CK_TreeMoveHome},
|
||||
{"TreeMoveEnd", CK_TreeMoveEnd},
|
||||
{"TreeMovePgUp", CK_TreeMovePgUp},
|
||||
{"TreeMovePgDn", CK_TreeMovePgDn},
|
||||
{"TreeOpen", CK_TreeOpen},
|
||||
{"TreeRescan", CK_TreeRescan},
|
||||
{"TreeStartSearch", CK_TreeStartSearch},
|
||||
{"TreeRemove", CK_TreeRemove},
|
||||
/* common */
|
||||
{"SelectCodepage", CK_SelectCodepage},
|
||||
{"ShowCommandLine", CK_ShowCommandLine},
|
||||
{"ExtMap1", CK_StartExtMap1},
|
||||
{"ExtMap2", CK_StartExtMap2},
|
||||
|
||||
/* main commands */
|
||||
{"CmdHelp", CK_HelpCmd},
|
||||
|
@ -438,6 +192,15 @@ static name_keymap_t command_names[] = {
|
|||
{"PanelSortOrderByMTime", CK_PanelSortOrderByMTime},
|
||||
{"PanelSmartGotoParentDir", CK_PanelSmartGotoParentDir},
|
||||
|
||||
/* dialog */
|
||||
{"DialogOK", CK_DialogOK},
|
||||
{"DialogCancel", CK_DialogCancel},
|
||||
{"DialogPrevItem", CK_DialogPrevItem},
|
||||
{"DialogNextItem", CK_DialogNextItem},
|
||||
{"DialogHelp", CK_DialogHelp},
|
||||
{"DialogSuspend", CK_DialogSuspend},
|
||||
{"DialogRefresh", CK_DialogRefresh},
|
||||
|
||||
/* input line */
|
||||
{"InputBol", CK_InputBol},
|
||||
{"InputEol", CK_InputEol},
|
||||
|
@ -481,22 +244,249 @@ static name_keymap_t command_names[] = {
|
|||
{"ListboxDeleteItem", CK_ListboxDeleteItem},
|
||||
{"ListboxDeleteAll", CK_ListboxDeleteAll},
|
||||
|
||||
/* common */
|
||||
{"ExtMap1", CK_StartExtMap1},
|
||||
{"ExtMap2", CK_StartExtMap2},
|
||||
{"ShowCommandLine", CK_ShowCommandLine},
|
||||
{"SelectCodepage", CK_SelectCodepage},
|
||||
/* help */
|
||||
{"HelpHelp", CK_HelpHelp},
|
||||
{"HelpIndex", CK_HelpIndex},
|
||||
{"HelpBack", CK_HelpBack},
|
||||
{"HelpQuit", CK_HelpQuit},
|
||||
{"HelpMoveUp", CK_HelpMoveUp},
|
||||
{"HelpMoveDown", CK_HelpMoveDown},
|
||||
{"HelpMovePgDn", CK_HelpMovePgDn},
|
||||
{"HelpMovePgUp", CK_HelpMovePgUp},
|
||||
{"HelpMoveHalfPgDn", CK_HelpMoveHalfPgDn},
|
||||
{"HelpMoveHalfPgUp", CK_HelpMoveHalfPgUp},
|
||||
{"HelpMoveTop", CK_HelpMoveTop},
|
||||
{"HelpMoveBottom", CK_HelpMoveBottom},
|
||||
{"HelpSelectLink", CK_HelpSelectLink},
|
||||
{"HelpNextLink", CK_HelpNextLink},
|
||||
{"HelpPrevLink", CK_HelpPrevLink},
|
||||
{"HelpNextNode", CK_HelpNextNode},
|
||||
{"HelpPrevNode", CK_HelpPrevNode},
|
||||
|
||||
/* dialog */
|
||||
{"DialogOK", CK_DialogOK},
|
||||
{"DialogCancel", CK_DialogCancel},
|
||||
{"DialogPrevItem", CK_DialogPrevItem},
|
||||
{"DialogNextItem", CK_DialogNextItem},
|
||||
{"DialogHelp", CK_DialogHelp},
|
||||
{"DialogSuspend", CK_DialogSuspend},
|
||||
{"DialogRefresh", CK_DialogRefresh},
|
||||
/* tree */
|
||||
{"TreeHelp", CK_TreeHelp},
|
||||
{"TreeForget", CK_TreeForget},
|
||||
{"TreeToggleNav", CK_TreeToggleNav},
|
||||
{"TreeCopy", CK_TreeCopy},
|
||||
{"TreeMove", CK_TreeMove},
|
||||
{"TreeMake", CK_TreeMake},
|
||||
{"TreeMoveUp", CK_TreeMoveUp},
|
||||
{"TreeMoveDown", CK_TreeMoveDown},
|
||||
{"TreeMoveLeft", CK_TreeMoveLeft},
|
||||
{"TreeMoveRight", CK_TreeMoveRight},
|
||||
{"TreeMoveHome", CK_TreeMoveHome},
|
||||
{"TreeMoveEnd", CK_TreeMoveEnd},
|
||||
{"TreeMovePgUp", CK_TreeMovePgUp},
|
||||
{"TreeMovePgDn", CK_TreeMovePgDn},
|
||||
{"TreeOpen", CK_TreeOpen},
|
||||
{"TreeRescan", CK_TreeRescan},
|
||||
{"TreeStartSearch", CK_TreeStartSearch},
|
||||
{"TreeRemove", CK_TreeRemove},
|
||||
|
||||
#ifdef USE_DIFF_VIEW
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
{"EditNoCommand", CK_Ignore_Key},
|
||||
{"EditIgnoreKey", CK_Ignore_Key},
|
||||
{"EditBackSpace", CK_BackSpace},
|
||||
{"EditDelete", CK_Delete},
|
||||
{"EditEnter", CK_Enter},
|
||||
{"EditPageUp", CK_Page_Up},
|
||||
{"EditPageDown", CK_Page_Down},
|
||||
{"EditLeft", CK_Left},
|
||||
{"EditRight", CK_Right},
|
||||
{"EditWordLeft", CK_Word_Left},
|
||||
{"EditWordRight", CK_Word_Right},
|
||||
{"EditUp", CK_Up},
|
||||
{"EditDown", CK_Down},
|
||||
{"EditHome", CK_Home},
|
||||
{"EditEnd", CK_End},
|
||||
{"EditTab", CK_Tab},
|
||||
{"EditUndo", CK_Undo},
|
||||
{"EditRedo", CK_Redo},
|
||||
{"EditBeginningOfText", CK_Beginning_Of_Text},
|
||||
{"EditEndOfText", CK_End_Of_Text},
|
||||
{"EditScrollUp", CK_Scroll_Up},
|
||||
{"EditScrollDown", CK_Scroll_Down},
|
||||
{"EditReturn", CK_Return},
|
||||
{"EditBeginPage", CK_Begin_Page},
|
||||
{"EditEndPage", CK_End_Page},
|
||||
{"EditDeleteWordLeft", CK_Delete_Word_Left},
|
||||
{"EditDeleteWordRight", CK_Delete_Word_Right},
|
||||
{"EditParagraphUp", CK_Paragraph_Up},
|
||||
{"EditParagraphDown", CK_Paragraph_Down},
|
||||
{"EditMenu", CK_Menu},
|
||||
{"EditSave", CK_Save},
|
||||
{"EditLoad", CK_Load},
|
||||
{"EditNew", CK_New},
|
||||
{"EditSaveas", CK_Save_As},
|
||||
{"EditMark", CK_Mark},
|
||||
{"EditCopy", CK_Copy},
|
||||
{"EditMove", CK_Move},
|
||||
{"EditRemove", CK_Remove},
|
||||
{"EditMarkAll", CK_Mark_All},
|
||||
{"EditUnmark", CK_Unmark},
|
||||
{"EditMarkWord", CK_Mark_Word},
|
||||
{"EditMarkLine", CK_Mark_Line},
|
||||
{"EditSaveBlock", CK_Save_Block},
|
||||
{"EditColumnMark", CK_Column_Mark},
|
||||
{"EditFind", CK_Find},
|
||||
{"EditFindAgain", CK_Find_Again},
|
||||
{"EditReplace", CK_Replace},
|
||||
{"EditReplaceAgain", CK_Replace_Again},
|
||||
{"EditCompleteWord", CK_Complete_Word},
|
||||
#if 0
|
||||
{"EditDebugStart", CK_Debug_Start},
|
||||
{"EditDebugStop", CK_Debug_Stop},
|
||||
{"EditDebugToggleBreak", CK_Debug_Toggle_Break},
|
||||
{"EditDebugClear", CK_Debug_Clear},
|
||||
{"EditDebugNext", CK_Debug_Next},
|
||||
{"EditDebugStep", CK_Debug_Step},
|
||||
{"EditDebugBackTrace", CK_Debug_Back_Trace},
|
||||
{"EditDebugContinue", CK_Debug_Continue},
|
||||
{"EditDebugEnterCommand", CK_Debug_Enter_Command},
|
||||
{"EditDebugUntilCurser", CK_Debug_Until_Curser},
|
||||
#endif
|
||||
{"EditInsertFile", CK_Insert_File},
|
||||
{"EditQuit", CK_Quit},
|
||||
{"EditToggleInsert", CK_Toggle_Insert},
|
||||
{"EditHelp", CK_Help},
|
||||
{"EditDate", CK_Date},
|
||||
{"EditRefresh", CK_Refresh},
|
||||
{"EditGoto", CK_Goto},
|
||||
{"EditDeleteLine", CK_Delete_Line},
|
||||
{"EditDeleteToLineEnd", CK_Delete_To_Line_End},
|
||||
{"EditDeleteToLineBegin", CK_Delete_To_Line_Begin},
|
||||
{"EditManPage", CK_Man_Page},
|
||||
{"EditSort", CK_Sort},
|
||||
{"EditMail", CK_Mail},
|
||||
{"EditCancel", CK_Cancel},
|
||||
{"EditComplete", CK_Complete},
|
||||
{"EditParagraphFormat", CK_Paragraph_Format},
|
||||
{"EditUtil", CK_Util},
|
||||
{"EditTypeLoadPython", CK_Type_Load_Python},
|
||||
{"EditFindFile", CK_Find_File},
|
||||
{"EditCtags", CK_Ctags},
|
||||
{"EditMatchBracket", CK_Match_Bracket},
|
||||
{"EditTerminal", CK_Terminal},
|
||||
{"EditTerminalApp", CK_Terminal_App},
|
||||
{"EditExtCmd", CK_ExtCmd},
|
||||
{"EditUserMenu", CK_User_Menu},
|
||||
{"EditBeginRecordMacro", CK_Begin_Record_Macro},
|
||||
{"EditEndRecordMacro", CK_End_Record_Macro},
|
||||
{"EditBeginEndRepeat", CK_Begin_End_Repeat},
|
||||
{"EditDeleteMacro", CK_Delete_Macro},
|
||||
{"EditToggleBookmark", CK_Toggle_Bookmark},
|
||||
{"EditFlushBookmarks", CK_Flush_Bookmarks},
|
||||
{"EditNextBookmark", CK_Next_Bookmark},
|
||||
{"EditPrevBookmark", CK_Prev_Bookmark},
|
||||
{"EditPageUpHighlight", CK_Page_Up_Highlight},
|
||||
{"EditPageDownHighlight", CK_Page_Down_Highlight},
|
||||
{"EditLeftHighlight", CK_Left_Highlight},
|
||||
{"EditRightHighlight", CK_Right_Highlight},
|
||||
{"EditWordLeftHighlight", CK_Word_Left_Highlight},
|
||||
{"EditWordRightHighlight", CK_Word_Right_Highlight},
|
||||
{"EditUpHighlight", CK_Up_Highlight},
|
||||
{"EditDownHighlight", CK_Down_Highlight},
|
||||
{"EditHomeHighlight", CK_Home_Highlight},
|
||||
{"EditEndHighlight", CK_End_Highlight},
|
||||
{"EditBeginningOfTextHighlight", CK_Beginning_Of_Text_Highlight},
|
||||
{"EditEndOfTextHighlight", CK_End_Of_Text_Highlight},
|
||||
{"EditBeginPageHighlight", CK_Begin_Page_Highlight},
|
||||
{"EditEndPageHighlight", CK_End_Page_Highlight},
|
||||
{"EditScrollUpHighlight", CK_Scroll_Up_Highlight},
|
||||
{"EditScrollDownHighlight", CK_Scroll_Down_Highlight},
|
||||
{"EditParagraphUpHighlight", CK_Paragraph_Up_Highlight},
|
||||
{"EditParagraphDownHighlight", CK_Paragraph_Down_Highlight},
|
||||
{"EditPageUpAltHighlight", CK_Page_Up_Alt_Highlight},
|
||||
{"EditPageDownAltHighlight", CK_Page_Down_Alt_Highlight},
|
||||
{"EditLeftAltHighlight", CK_Left_Alt_Highlight},
|
||||
{"EditRightAltHighlight", CK_Right_Alt_Highlight},
|
||||
{"EditWordLeftAltHighlight", CK_Word_Left_Alt_Highlight},
|
||||
{"EditWordRightAltHighlight", CK_Word_Right_Alt_Highlight},
|
||||
{"EditUpAltHighlight", CK_Up_Alt_Highlight},
|
||||
{"EditDownAltHighlight", CK_Down_Alt_Highlight},
|
||||
{"EditHomeAltHighlight", CK_Home_Alt_Highlight},
|
||||
{"EditEndAltHighlight", CK_End_Alt_Highlight},
|
||||
{"EditBeginningOfTextAltHighlight", CK_Beginning_Of_Text_Alt_Highlight},
|
||||
{"EditEndOfTextAltHighlight", CK_End_Of_Text_Alt_Highlight},
|
||||
{"EditBeginPageAltHighlight", CK_Begin_Page_Alt_Highlight},
|
||||
{"EditEndPageAltHighlight", CK_End_Page_Alt_Highlight},
|
||||
{"EditScrollUpAltHighlight", CK_Scroll_Up_Alt_Highlight},
|
||||
{"EditScrollDownAltHighlight", CK_Scroll_Down_Alt_Highlight},
|
||||
{"EditParagraphUpAltHighlight", CK_Paragraph_Up_Alt_Highlight},
|
||||
{"EditParagraphDownAltHighlight", CK_Paragraph_Down_Alt_Highlight},
|
||||
{"EditShiftBlockLeft", CK_Shift_Block_Left},
|
||||
{"EditShiftBlockRight", CK_Shift_Block_Right},
|
||||
{"EditXStore", CK_XStore},
|
||||
{"EditXCut", CK_XCut},
|
||||
{"EditXPaste", CK_XPaste},
|
||||
{"EditSelectionHistory", CK_Selection_History},
|
||||
{"EditShell", CK_Shell},
|
||||
{"EditInsertLiteral", CK_Insert_Literal},
|
||||
{"EditBeginOrEndMacro", CK_Begin_End_Macro},
|
||||
{"EditExtMode", CK_Ext_Mode},
|
||||
{"EditToggleLineState", CK_Toggle_Line_State},
|
||||
{"EditToggleTabTWS", CK_Toggle_Tab_TWS},
|
||||
{"EditToggleSyntax", CK_Toggle_Syntax},
|
||||
{"EditToggleShowMargin", CK_Toggle_Show_Margin},
|
||||
{"EditFindDefinition", CK_Find_Definition},
|
||||
{"EditLoadPrevFile", CK_Load_Prev_File},
|
||||
{"EditLoadNextFile", CK_Load_Next_File},
|
||||
{"EditOptions", CK_Edit_Options},
|
||||
{"EditSaveMode", CK_Edit_Save_Mode},
|
||||
{"EditChooseSyntax", CK_Choose_Syntax},
|
||||
{"EditAbout", CK_About},
|
||||
#if 0
|
||||
{"EditFocusNext", CK_Focus_Next},
|
||||
{"EditFocusPrev", CK_Focus_Prev},
|
||||
{"EditHeightInc", CK_Height_Inc},
|
||||
{"EditHeightDec", CK_Height_Dec},
|
||||
{"EditMake", CK_Make},
|
||||
{"EditErrorNext", CK_Error_Next},
|
||||
{"EditErrorPrev", CK_Error_Prev},
|
||||
{"EditSaveDesktop", CK_Save_Desktop},
|
||||
{"EditNewWindow", CK_New_Window},
|
||||
{"EditCycle", CK_Cycle},
|
||||
{"EditSaveAndQuit", CK_Save_And_Quit},
|
||||
{"EditRunAnother", CK_Run_Another},
|
||||
{"EditCheckSaveAndQuit", CK_Check_Save_And_Quit},
|
||||
{"EditMaximize", CK_Maximize},
|
||||
#endif
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
/* viewer */
|
||||
{"ViewHelp", CK_ViewHelp},
|
||||
{"ViewToggleWrapMode", CK_ViewToggleWrapMode},
|
||||
{"ViewToggleHexEditMode", CK_ViewToggleHexEditMode},
|
||||
{"ViewQuit", CK_ViewQuit},
|
||||
{"ViewToggleHexMode", CK_ViewToggleHexMode},
|
||||
{"ViewGoto", CK_ViewGoto},
|
||||
{"ViewHexEditSave", CK_ViewHexEditSave},
|
||||
{"ViewSearch", CK_ViewSearch},
|
||||
{"ViewToggleMagicMode", CK_ViewToggleMagicMode},
|
||||
{"ViewToggleNroffMode", CK_ViewToggleNroffMode},
|
||||
{"ViewContinueSearch", CK_ViewContinueSearch},
|
||||
{"ViewGotoBookmark", CK_ViewGotoBookmark},
|
||||
{"ViewNewBookmark", CK_ViewNewBookmark},
|
||||
{"ViewMoveUp", CK_ViewMoveUp},
|
||||
{"ViewMoveDown", CK_ViewMoveDown},
|
||||
{"ViewMoveLeft", CK_ViewMoveLeft},
|
||||
{"ViewMoveRight", CK_ViewMoveRight},
|
||||
{"ViewMoveLeft10", CK_ViewMoveLeft10},
|
||||
{"ViewMoveRight10", CK_ViewMoveRight10},
|
||||
{"ViewMovePgDn", CK_ViewMovePgDn},
|
||||
{"ViewMovePgUp", CK_ViewMovePgUp},
|
||||
{"ViewMoveHalfPgDn", CK_ViewMoveHalfPgDn},
|
||||
{"ViewMoveHalfPgUp", CK_ViewMoveHalfPgUp},
|
||||
{"ViewMoveToBol", CK_ViewMoveToBol},
|
||||
{"ViewMoveToEol", CK_ViewMoveToEol},
|
||||
{"ViewMoveTop", CK_ViewMoveTop},
|
||||
{"ViewMoveBottom", CK_ViewMoveBottom},
|
||||
{"ViewNextFile", CK_ViewNextFile},
|
||||
{"ViewPrevFile", CK_ViewPrevFile},
|
||||
{"ViewToggleRuler", CK_ViewToggleRuler},
|
||||
{"ViewToggleHexNavMode", CK_ViewToggleHexNavMode},
|
||||
|
||||
#ifdef USE_DIFF_VIEW
|
||||
/* diff viewer */
|
||||
{"DiffDisplaySymbols", CK_DiffDisplaySymbols},
|
||||
{"DiffDisplayNumbers", CK_DiffDisplayNumbers},
|
||||
|
@ -532,16 +522,15 @@ static name_keymap_t command_names[] = {
|
|||
{"DiffEnd", CK_DiffEnd},
|
||||
{"DiffQuit", CK_DiffQuit},
|
||||
{"DiffHelp", CK_DiffHelp},
|
||||
{"SelectCodepage", CK_SelectCodepage},
|
||||
{"DiffMergeCurrentHunk", CK_DiffMergeCurrentHunk},
|
||||
{"DiffSave", CK_DiffSave},
|
||||
{"DiffOptions", CK_DiffOptions},
|
||||
#endif
|
||||
#endif /* USE_DIFF_VIEW */
|
||||
|
||||
{NULL, CK_Ignore_Key}
|
||||
};
|
||||
|
||||
static const size_t num_command_names = sizeof (command_names) / sizeof (command_names[0]) - 1;
|
||||
static const size_t num_command_names = G_N_ELEMENTS (command_names) - 1;
|
||||
|
||||
/*** file scope functions ************************************************************************/
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
|
623
lib/keybind.h
623
lib/keybind.h
|
@ -14,328 +14,12 @@
|
|||
#define CK_Insert_Char -1
|
||||
#define CK_Ignore_Key 0
|
||||
|
||||
/* cursor movements */
|
||||
#define CK_BackSpace 1
|
||||
#define CK_Delete 2
|
||||
#define CK_Enter 3
|
||||
#define CK_Page_Up 4
|
||||
#define CK_Page_Down 5
|
||||
#define CK_Left 6
|
||||
#define CK_Right 7
|
||||
#define CK_Word_Left 8
|
||||
#define CK_Word_Right 9
|
||||
#define CK_Up 10
|
||||
#define CK_Down 11
|
||||
#define CK_Home 12
|
||||
#define CK_End 13
|
||||
#define CK_Tab 14
|
||||
#define CK_Undo 15
|
||||
#define CK_Redo 16
|
||||
#define CK_Beginning_Of_Text 17
|
||||
#define CK_End_Of_Text 18
|
||||
#define CK_Scroll_Up 19
|
||||
#define CK_Scroll_Down 20
|
||||
#define CK_Return 21
|
||||
#define CK_Begin_Page 22
|
||||
#define CK_End_Page 23
|
||||
#define CK_Delete_Word_Left 24
|
||||
#define CK_Delete_Word_Right 25
|
||||
#define CK_Paragraph_Up 26
|
||||
#define CK_Paragraph_Down 27
|
||||
|
||||
/* file commands */
|
||||
#define CK_Save 101
|
||||
#define CK_Load 102
|
||||
#define CK_New 103
|
||||
#define CK_Save_As 104
|
||||
#define CK_Load_Prev_File 111
|
||||
#define CK_Load_Next_File 112
|
||||
#define CK_Load_Syntax_File 121
|
||||
#define CK_Load_Menu_File 122
|
||||
#define CK_Menu 123
|
||||
|
||||
/* block commands */
|
||||
#define CK_Mark 201
|
||||
#define CK_Copy 202
|
||||
#define CK_Move 203
|
||||
#define CK_Remove 204
|
||||
#define CK_Unmark 206
|
||||
#define CK_Save_Block 207
|
||||
#define CK_Column_Mark 208
|
||||
#define CK_Shift_Block_Left 211
|
||||
#define CK_Shift_Block_Right 212
|
||||
#define CK_Mark_All 213
|
||||
#define CK_Mark_Word 214
|
||||
#define CK_Mark_Line 215
|
||||
|
||||
/* search and replace */
|
||||
#define CK_Find 301
|
||||
#define CK_Find_Again 302
|
||||
#define CK_Replace 303
|
||||
#define CK_Replace_Again 304
|
||||
#define CK_Complete_Word 305
|
||||
|
||||
#if 0
|
||||
/* debugger commands */
|
||||
#define CK_Debug_Start 350
|
||||
#define CK_Debug_Stop 351
|
||||
#define CK_Debug_Toggle_Break 352
|
||||
#define CK_Debug_Clear 353
|
||||
#define CK_Debug_Next 354
|
||||
#define CK_Debug_Step 355
|
||||
#define CK_Debug_Back_Trace 356
|
||||
#define CK_Debug_Continue 357
|
||||
#define CK_Debug_Enter_Command 358
|
||||
#define CK_Debug_Until_Curser 359
|
||||
#endif
|
||||
|
||||
/* misc */
|
||||
#define CK_Insert_File 401
|
||||
#define CK_Quit 402
|
||||
#define CK_Toggle_Insert 403
|
||||
#define CK_Help 404
|
||||
#define CK_Date 405
|
||||
#define CK_Refresh 406
|
||||
#define CK_Goto 407
|
||||
#define CK_Delete_Line 408
|
||||
#define CK_Delete_To_Line_End 409
|
||||
#define CK_Delete_To_Line_Begin 410
|
||||
#define CK_Man_Page 411
|
||||
#define CK_Sort 412
|
||||
#define CK_Mail 413
|
||||
#define CK_Cancel 414
|
||||
#define CK_Complete 415
|
||||
#define CK_Paragraph_Format 416
|
||||
#define CK_Util 417
|
||||
#define CK_Type_Load_Python 418
|
||||
#define CK_Find_File 419
|
||||
#define CK_Ctags 420
|
||||
#define CK_Match_Bracket 421
|
||||
#define CK_Terminal 422
|
||||
#define CK_Terminal_App 423
|
||||
#define CK_ExtCmd 424
|
||||
#define CK_User_Menu 425
|
||||
#define CK_Find_Definition 426
|
||||
#define CK_Edit_Options 427
|
||||
#define CK_Edit_Save_Mode 428
|
||||
#define CK_Choose_Syntax 429
|
||||
#define CK_About 430
|
||||
|
||||
#if 0
|
||||
/* application control */
|
||||
#define CK_Save_Desktop 451
|
||||
#define CK_New_Window 452
|
||||
#define CK_Cycle 453
|
||||
#define CK_Save_And_Quit 455
|
||||
#define CK_Run_Another 456
|
||||
#define CK_Check_Save_And_Quit 457
|
||||
#define CK_Maximize 458
|
||||
#endif
|
||||
|
||||
#define CK_Toggle_Show_Margin 460
|
||||
#define CK_Toggle_Tab_TWS 470
|
||||
#define CK_Toggle_Syntax 480
|
||||
#define CK_Toggle_Line_State 490
|
||||
|
||||
/* macro */
|
||||
#define CK_Begin_Record_Macro 501
|
||||
#define CK_End_Record_Macro 502
|
||||
#define CK_Delete_Macro 503
|
||||
|
||||
/* book mark */
|
||||
#define CK_Toggle_Bookmark 550
|
||||
#define CK_Flush_Bookmarks 551
|
||||
#define CK_Next_Bookmark 552
|
||||
#define CK_Prev_Bookmark 553
|
||||
|
||||
/* highlight commands */
|
||||
#define CK_Page_Up_Highlight 604
|
||||
#define CK_Page_Down_Highlight 605
|
||||
#define CK_Left_Highlight 606
|
||||
#define CK_Right_Highlight 607
|
||||
#define CK_Word_Left_Highlight 608
|
||||
#define CK_Word_Right_Highlight 609
|
||||
#define CK_Up_Highlight 610
|
||||
#define CK_Down_Highlight 611
|
||||
#define CK_Home_Highlight 612
|
||||
#define CK_End_Highlight 613
|
||||
#define CK_Beginning_Of_Text_Highlight 614
|
||||
#define CK_End_Of_Text_Highlight 615
|
||||
#define CK_Begin_Page_Highlight 616
|
||||
#define CK_End_Page_Highlight 617
|
||||
#define CK_Scroll_Up_Highlight 618
|
||||
#define CK_Scroll_Down_Highlight 619
|
||||
#define CK_Paragraph_Up_Highlight 620
|
||||
#define CK_Paragraph_Down_Highlight 621
|
||||
|
||||
/* alt highlight commands */
|
||||
#define CK_Page_Up_Alt_Highlight 654
|
||||
#define CK_Page_Down_Alt_Highlight 655
|
||||
#define CK_Left_Alt_Highlight 656
|
||||
#define CK_Right_Alt_Highlight 657
|
||||
#define CK_Word_Left_Alt_Highlight 658
|
||||
#define CK_Word_Right_Alt_Highlight 659
|
||||
#define CK_Up_Alt_Highlight 660
|
||||
#define CK_Down_Alt_Highlight 661
|
||||
#define CK_Home_Alt_Highlight 662
|
||||
#define CK_End_Alt_Highlight 663
|
||||
#define CK_Beginning_Of_Text_Alt_Highlight 664
|
||||
#define CK_End_Of_Text_Alt_Highlight 665
|
||||
#define CK_Begin_Page_Alt_Highlight 666
|
||||
#define CK_End_Page_Alt_Highlight 667
|
||||
#define CK_Scroll_Up_Alt_Highlight 668
|
||||
#define CK_Scroll_Down_Alt_Highlight 669
|
||||
#define CK_Paragraph_Up_Alt_Highlight 670
|
||||
#define CK_Paragraph_Down_Alt_Highlight 671
|
||||
|
||||
/* X clipboard operations */
|
||||
#define CK_XStore 701
|
||||
#define CK_XCut 702
|
||||
#define CK_XPaste 703
|
||||
#define CK_Selection_History 704
|
||||
|
||||
#define CK_Shell 801
|
||||
|
||||
/* C-x or similar */
|
||||
#define CK_Ext_Mode 820
|
||||
|
||||
#define CK_Insert_Literal 851
|
||||
#define CK_Begin_End_Macro 853
|
||||
#define CK_Begin_End_Repeat 854
|
||||
#define CK_Begin_Record_Repeat 855
|
||||
#define CK_End_Record_Repeat 856
|
||||
|
||||
/* help */
|
||||
#define CK_HelpHelp 1001
|
||||
#define CK_HelpIndex 1002
|
||||
#define CK_HelpBack 1003
|
||||
#define CK_HelpQuit 1004
|
||||
#define CK_HelpMoveUp 1005
|
||||
#define CK_HelpMoveDown 1006
|
||||
#define CK_HelpSelectLink 1007
|
||||
#define CK_HelpNextLink 1008
|
||||
#define CK_HelpPrevLink 1009
|
||||
#define CK_HelpNextNode 1010
|
||||
#define CK_HelpPrevNode 1011
|
||||
#define CK_HelpMovePgDn 1012
|
||||
#define CK_HelpMovePgUp 1013
|
||||
#define CK_HelpMoveHalfPgDn 1014
|
||||
#define CK_HelpMoveHalfPgUp 1015
|
||||
#define CK_HelpMoveTop 1016
|
||||
#define CK_HelpMoveBottom 1017
|
||||
|
||||
/* common */
|
||||
#define CK_ShowCommandLine 2001
|
||||
#define CK_SelectCodepage 2002
|
||||
#define CK_ShowCommandLine 2001
|
||||
#define CK_StartExtMap1 2021
|
||||
#define CK_StartExtMap2 2022
|
||||
|
||||
/* dialog */
|
||||
#define CK_DialogOK 3001
|
||||
#define CK_DialogCancel 3002
|
||||
#define CK_DialogPrevItem 3003
|
||||
#define CK_DialogNextItem 3004
|
||||
#define CK_DialogHelp 3005
|
||||
#define CK_DialogSuspend 3006
|
||||
#define CK_DialogRefresh 3007
|
||||
|
||||
/* text fields */
|
||||
#define CK_InputBol 4001
|
||||
#define CK_InputEol 4002
|
||||
#define CK_InputMoveLeft 4003
|
||||
#define CK_InputWordLeft 4004
|
||||
#define CK_InputBackwardChar 4005
|
||||
#define CK_InputBackwardWord 4006
|
||||
#define CK_InputMoveRight 4007
|
||||
#define CK_InputWordRight 4008
|
||||
#define CK_InputForwardChar 4009
|
||||
#define CK_InputForwardWord 4010
|
||||
#define CK_InputBackwardDelete 4011
|
||||
#define CK_InputDeleteChar 4012
|
||||
#define CK_InputKillWord 4013
|
||||
#define CK_InputBackwardKillWord 4014
|
||||
#define CK_InputSetMark 4015
|
||||
#define CK_InputKillRegion 4016
|
||||
#define CK_InputKillSave 4017
|
||||
#define CK_InputYank 4018
|
||||
#define CK_InputCopyRegion 4019
|
||||
#define CK_InputKillLine 4020
|
||||
#define CK_InputHistoryPrev 4021
|
||||
#define CK_InputHistoryNext 4022
|
||||
#define CK_InputHistoryShow 4023
|
||||
#define CK_InputComplete 4024
|
||||
#define CK_InputPaste 4025
|
||||
#define CK_InputClearLine 4026
|
||||
#define CK_InputLeftHighlight 4027
|
||||
#define CK_InputRightHighlight 4028
|
||||
#define CK_InputWordLeftHighlight 4029
|
||||
#define CK_InputWordRightHighlight 4030
|
||||
#define CK_InputBolHighlight 4031
|
||||
#define CK_InputEolHighlight 4032
|
||||
|
||||
/* listbox */
|
||||
#define CK_ListboxMoveUp 4500
|
||||
#define CK_ListboxMoveDown 4501
|
||||
#define CK_ListboxMoveHome 4502
|
||||
#define CK_ListboxMoveEnd 4503
|
||||
#define CK_ListboxMovePgUp 4504
|
||||
#define CK_ListboxMovePgDn 4505
|
||||
#define CK_ListboxDeleteItem 4506
|
||||
#define CK_ListboxDeleteAll 4507
|
||||
|
||||
/* viewer */
|
||||
#define CK_ViewHelp 5001
|
||||
#define CK_ViewToggleWrapMode 5002
|
||||
#define CK_ViewToggleHexEditMode 5003
|
||||
#define CK_ViewToggleHexMode 5004
|
||||
#define CK_ViewGoto 5005
|
||||
#define CK_ViewHexEditSave 5006
|
||||
#define CK_ViewSearch 5007
|
||||
#define CK_ViewToggleMagicMode 5008
|
||||
#define CK_ViewToggleNroffMode 5009
|
||||
#define CK_ViewQuit 5010
|
||||
#define CK_ViewContinueSearch 5011
|
||||
#define CK_ViewGotoBookmark 5012
|
||||
#define CK_ViewNewBookmark 5013
|
||||
#define CK_ViewMoveUp 5014
|
||||
#define CK_ViewMoveDown 5015
|
||||
#define CK_ViewMoveLeft 5016
|
||||
#define CK_ViewMoveRight 5017
|
||||
#define CK_ViewMovePgDn 5018
|
||||
#define CK_ViewMovePgUp 5019
|
||||
#define CK_ViewMoveHalfPgDn 5020
|
||||
#define CK_ViewMoveHalfPgUp 5021
|
||||
#define CK_ViewMoveToBol 5022
|
||||
#define CK_ViewMoveToEol 5023
|
||||
#define CK_ViewNextFile 5024
|
||||
#define CK_ViewPrevFile 5025
|
||||
#define CK_ViewToggleRuler 5026
|
||||
#define CK_ViewToggleHexNavMode 5027
|
||||
#define CK_ViewMoveTop 5028
|
||||
#define CK_ViewMoveBottom 5029
|
||||
#define CK_ViewMoveLeft10 5030
|
||||
#define CK_ViewMoveRight10 5031
|
||||
|
||||
/* tree */
|
||||
#define CK_TreeHelp 6001
|
||||
#define CK_TreeForget 6003
|
||||
#define CK_TreeToggleNav 6004
|
||||
#define CK_TreeCopy 6005
|
||||
#define CK_TreeMove 6006
|
||||
#define CK_TreeMake 6007
|
||||
#define CK_TreeMoveUp 6011
|
||||
#define CK_TreeMoveDown 6012
|
||||
#define CK_TreeMoveLeft 6013
|
||||
#define CK_TreeMoveRight 6014
|
||||
#define CK_TreeMoveHome 6015
|
||||
#define CK_TreeMoveEnd 6016
|
||||
#define CK_TreeMovePgUp 6017
|
||||
#define CK_TreeMovePgDn 6018
|
||||
#define CK_TreeOpen 6019
|
||||
#define CK_TreeRescan 6020
|
||||
#define CK_TreeStartSearch 6021
|
||||
#define CK_TreeRemove 6022
|
||||
|
||||
/* main commands */
|
||||
#define CK_AddHotlist 7001
|
||||
#define CK_ChangeListingCmd 7002
|
||||
|
@ -461,6 +145,310 @@
|
|||
#define CK_PanelSortOrderByMTime 8042
|
||||
#define CK_PanelSmartGotoParentDir 8043
|
||||
|
||||
/* dialog */
|
||||
#define CK_DialogOK 3001
|
||||
#define CK_DialogCancel 3002
|
||||
#define CK_DialogPrevItem 3003
|
||||
#define CK_DialogNextItem 3004
|
||||
#define CK_DialogHelp 3005
|
||||
#define CK_DialogSuspend 3006
|
||||
#define CK_DialogRefresh 3007
|
||||
|
||||
/* input */
|
||||
#define CK_InputBol 4001
|
||||
#define CK_InputEol 4002
|
||||
#define CK_InputMoveLeft 4003
|
||||
#define CK_InputWordLeft 4004
|
||||
#define CK_InputBackwardChar 4005
|
||||
#define CK_InputBackwardWord 4006
|
||||
#define CK_InputMoveRight 4007
|
||||
#define CK_InputWordRight 4008
|
||||
#define CK_InputForwardChar 4009
|
||||
#define CK_InputForwardWord 4010
|
||||
#define CK_InputBackwardDelete 4011
|
||||
#define CK_InputDeleteChar 4012
|
||||
#define CK_InputKillWord 4013
|
||||
#define CK_InputBackwardKillWord 4014
|
||||
#define CK_InputSetMark 4015
|
||||
#define CK_InputKillRegion 4016
|
||||
#define CK_InputKillSave 4017
|
||||
#define CK_InputYank 4018
|
||||
#define CK_InputCopyRegion 4019
|
||||
#define CK_InputKillLine 4020
|
||||
#define CK_InputHistoryPrev 4021
|
||||
#define CK_InputHistoryNext 4022
|
||||
#define CK_InputHistoryShow 4023
|
||||
#define CK_InputComplete 4024
|
||||
#define CK_InputPaste 4025
|
||||
#define CK_InputClearLine 4026
|
||||
#define CK_InputLeftHighlight 4027
|
||||
#define CK_InputRightHighlight 4028
|
||||
#define CK_InputWordLeftHighlight 4029
|
||||
#define CK_InputWordRightHighlight 4030
|
||||
#define CK_InputBolHighlight 4031
|
||||
#define CK_InputEolHighlight 4032
|
||||
|
||||
/* listbox */
|
||||
#define CK_ListboxMoveUp 4500
|
||||
#define CK_ListboxMoveDown 4501
|
||||
#define CK_ListboxMoveHome 4502
|
||||
#define CK_ListboxMoveEnd 4503
|
||||
#define CK_ListboxMovePgUp 4504
|
||||
#define CK_ListboxMovePgDn 4505
|
||||
#define CK_ListboxDeleteItem 4506
|
||||
#define CK_ListboxDeleteAll 4507
|
||||
|
||||
/* help */
|
||||
#define CK_HelpHelp 1001
|
||||
#define CK_HelpIndex 1002
|
||||
#define CK_HelpBack 1003
|
||||
#define CK_HelpQuit 1004
|
||||
#define CK_HelpMoveUp 1005
|
||||
#define CK_HelpMoveDown 1006
|
||||
#define CK_HelpSelectLink 1007
|
||||
#define CK_HelpNextLink 1008
|
||||
#define CK_HelpPrevLink 1009
|
||||
#define CK_HelpNextNode 1010
|
||||
#define CK_HelpPrevNode 1011
|
||||
#define CK_HelpMovePgDn 1012
|
||||
#define CK_HelpMovePgUp 1013
|
||||
#define CK_HelpMoveHalfPgDn 1014
|
||||
#define CK_HelpMoveHalfPgUp 1015
|
||||
#define CK_HelpMoveTop 1016
|
||||
#define CK_HelpMoveBottom 1017
|
||||
|
||||
/* tree */
|
||||
#define CK_TreeHelp 6001
|
||||
#define CK_TreeForget 6003
|
||||
#define CK_TreeToggleNav 6004
|
||||
#define CK_TreeCopy 6005
|
||||
#define CK_TreeMove 6006
|
||||
#define CK_TreeMake 6007
|
||||
#define CK_TreeMoveUp 6011
|
||||
#define CK_TreeMoveDown 6012
|
||||
#define CK_TreeMoveLeft 6013
|
||||
#define CK_TreeMoveRight 6014
|
||||
#define CK_TreeMoveHome 6015
|
||||
#define CK_TreeMoveEnd 6016
|
||||
#define CK_TreeMovePgUp 6017
|
||||
#define CK_TreeMovePgDn 6018
|
||||
#define CK_TreeOpen 6019
|
||||
#define CK_TreeRescan 6020
|
||||
#define CK_TreeStartSearch 6021
|
||||
#define CK_TreeRemove 6022
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
/* cursor movements */
|
||||
#define CK_BackSpace 1
|
||||
#define CK_Delete 2
|
||||
#define CK_Enter 3
|
||||
#define CK_Page_Up 4
|
||||
#define CK_Page_Down 5
|
||||
#define CK_Left 6
|
||||
#define CK_Right 7
|
||||
#define CK_Word_Left 8
|
||||
#define CK_Word_Right 9
|
||||
#define CK_Up 10
|
||||
#define CK_Down 11
|
||||
#define CK_Home 12
|
||||
#define CK_End 13
|
||||
#define CK_Tab 14
|
||||
#define CK_Undo 15
|
||||
#define CK_Redo 16
|
||||
#define CK_Beginning_Of_Text 17
|
||||
#define CK_End_Of_Text 18
|
||||
#define CK_Scroll_Up 19
|
||||
#define CK_Scroll_Down 20
|
||||
#define CK_Return 21
|
||||
#define CK_Begin_Page 22
|
||||
#define CK_End_Page 23
|
||||
#define CK_Delete_Word_Left 24
|
||||
#define CK_Delete_Word_Right 25
|
||||
#define CK_Paragraph_Up 26
|
||||
#define CK_Paragraph_Down 27
|
||||
/* file commands */
|
||||
#define CK_Save 101
|
||||
#define CK_Load 102
|
||||
#define CK_New 103
|
||||
#define CK_Save_As 104
|
||||
#define CK_Load_Prev_File 111
|
||||
#define CK_Load_Next_File 112
|
||||
#define CK_Load_Syntax_File 121
|
||||
#define CK_Load_Menu_File 122
|
||||
#define CK_Menu 123
|
||||
/* block commands */
|
||||
#define CK_Mark 201
|
||||
#define CK_Copy 202
|
||||
#define CK_Move 203
|
||||
#define CK_Remove 204
|
||||
#define CK_Unmark 206
|
||||
#define CK_Save_Block 207
|
||||
#define CK_Column_Mark 208
|
||||
#define CK_Shift_Block_Left 211
|
||||
#define CK_Shift_Block_Right 212
|
||||
#define CK_Mark_All 213
|
||||
#define CK_Mark_Word 214
|
||||
#define CK_Mark_Line 215
|
||||
|
||||
/* search and replace */
|
||||
#define CK_Find 301
|
||||
#define CK_Find_Again 302
|
||||
#define CK_Replace 303
|
||||
#define CK_Replace_Again 304
|
||||
#define CK_Complete_Word 305
|
||||
#if 0
|
||||
/* debugger commands */
|
||||
#define CK_Debug_Start 350
|
||||
#define CK_Debug_Stop 351
|
||||
#define CK_Debug_Toggle_Break 352
|
||||
#define CK_Debug_Clear 353
|
||||
#define CK_Debug_Next 354
|
||||
#define CK_Debug_Step 355
|
||||
#define CK_Debug_Back_Trace 356
|
||||
#define CK_Debug_Continue 357
|
||||
#define CK_Debug_Enter_Command 358
|
||||
#define CK_Debug_Until_Curser 359
|
||||
#endif
|
||||
#define CK_Insert_File 401
|
||||
#define CK_Quit 402
|
||||
#define CK_Toggle_Insert 403
|
||||
#define CK_Help 404
|
||||
#define CK_Date 405
|
||||
#define CK_Refresh 406
|
||||
#define CK_Goto 407
|
||||
#define CK_Delete_Line 408
|
||||
#define CK_Delete_To_Line_End 409
|
||||
#define CK_Delete_To_Line_Begin 410
|
||||
#define CK_Man_Page 411
|
||||
#define CK_Sort 412
|
||||
#define CK_Mail 413
|
||||
#define CK_Cancel 414
|
||||
#define CK_Complete 415
|
||||
#define CK_Paragraph_Format 416
|
||||
#define CK_Util 417
|
||||
#define CK_Type_Load_Python 418
|
||||
#define CK_Find_File 419
|
||||
#define CK_Ctags 420
|
||||
#define CK_Match_Bracket 421
|
||||
#define CK_Terminal 422
|
||||
#define CK_Terminal_App 423
|
||||
#define CK_ExtCmd 424
|
||||
#define CK_User_Menu 425
|
||||
#define CK_Find_Definition 426
|
||||
#define CK_Edit_Options 427
|
||||
#define CK_Edit_Save_Mode 428
|
||||
#define CK_Choose_Syntax 429
|
||||
#define CK_About 430
|
||||
#if 0
|
||||
/* application control */
|
||||
#define CK_Save_Desktop 451
|
||||
#define CK_New_Window 452
|
||||
#define CK_Cycle 453
|
||||
#define CK_Save_And_Quit 455
|
||||
#define CK_Run_Another 456
|
||||
#define CK_Check_Save_And_Quit 457
|
||||
#define CK_Maximize 458
|
||||
#endif
|
||||
#define CK_Toggle_Show_Margin 460
|
||||
#define CK_Toggle_Tab_TWS 470
|
||||
#define CK_Toggle_Syntax 480
|
||||
#define CK_Toggle_Line_State 490
|
||||
/* macro */
|
||||
#define CK_Begin_Record_Macro 501
|
||||
#define CK_End_Record_Macro 502
|
||||
#define CK_Delete_Macro 503
|
||||
/* book mark */
|
||||
#define CK_Toggle_Bookmark 550
|
||||
#define CK_Flush_Bookmarks 551
|
||||
#define CK_Next_Bookmark 552
|
||||
#define CK_Prev_Bookmark 553
|
||||
/* highlight commands */
|
||||
#define CK_Page_Up_Highlight 604
|
||||
#define CK_Page_Down_Highlight 605
|
||||
#define CK_Left_Highlight 606
|
||||
#define CK_Right_Highlight 607
|
||||
#define CK_Word_Left_Highlight 608
|
||||
#define CK_Word_Right_Highlight 609
|
||||
#define CK_Up_Highlight 610
|
||||
#define CK_Down_Highlight 611
|
||||
#define CK_Home_Highlight 612
|
||||
#define CK_End_Highlight 613
|
||||
#define CK_Beginning_Of_Text_Highlight 614
|
||||
#define CK_End_Of_Text_Highlight 615
|
||||
#define CK_Begin_Page_Highlight 616
|
||||
#define CK_End_Page_Highlight 617
|
||||
#define CK_Scroll_Up_Highlight 618
|
||||
#define CK_Scroll_Down_Highlight 619
|
||||
#define CK_Paragraph_Up_Highlight 620
|
||||
#define CK_Paragraph_Down_Highlight 621
|
||||
/* alt highlight commands */
|
||||
#define CK_Page_Up_Alt_Highlight 654
|
||||
#define CK_Page_Down_Alt_Highlight 655
|
||||
#define CK_Left_Alt_Highlight 656
|
||||
#define CK_Right_Alt_Highlight 657
|
||||
#define CK_Word_Left_Alt_Highlight 658
|
||||
#define CK_Word_Right_Alt_Highlight 659
|
||||
#define CK_Up_Alt_Highlight 660
|
||||
#define CK_Down_Alt_Highlight 661
|
||||
#define CK_Home_Alt_Highlight 662
|
||||
#define CK_End_Alt_Highlight 663
|
||||
#define CK_Beginning_Of_Text_Alt_Highlight 664
|
||||
#define CK_End_Of_Text_Alt_Highlight 665
|
||||
#define CK_Begin_Page_Alt_Highlight 666
|
||||
#define CK_End_Page_Alt_Highlight 667
|
||||
#define CK_Scroll_Up_Alt_Highlight 668
|
||||
#define CK_Scroll_Down_Alt_Highlight 669
|
||||
#define CK_Paragraph_Up_Alt_Highlight 670
|
||||
#define CK_Paragraph_Down_Alt_Highlight 671
|
||||
/* X clipboard operations */
|
||||
#define CK_XStore 701
|
||||
#define CK_XCut 702
|
||||
#define CK_XPaste 703
|
||||
#define CK_Selection_History 704
|
||||
#define CK_Shell 801
|
||||
/* C-x or similar */
|
||||
#define CK_Ext_Mode 820
|
||||
#define CK_Insert_Literal 851
|
||||
#define CK_Begin_End_Macro 853
|
||||
#define CK_Begin_End_Repeat 854
|
||||
#define CK_Begin_Record_Repeat 855
|
||||
#define CK_End_Record_Repeat 856
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
/* viewer */
|
||||
#define CK_ViewHelp 5001
|
||||
#define CK_ViewToggleWrapMode 5002
|
||||
#define CK_ViewToggleHexEditMode 5003
|
||||
#define CK_ViewToggleHexMode 5004
|
||||
#define CK_ViewGoto 5005
|
||||
#define CK_ViewHexEditSave 5006
|
||||
#define CK_ViewSearch 5007
|
||||
#define CK_ViewToggleMagicMode 5008
|
||||
#define CK_ViewToggleNroffMode 5009
|
||||
#define CK_ViewQuit 5010
|
||||
#define CK_ViewContinueSearch 5011
|
||||
#define CK_ViewGotoBookmark 5012
|
||||
#define CK_ViewNewBookmark 5013
|
||||
#define CK_ViewMoveUp 5014
|
||||
#define CK_ViewMoveDown 5015
|
||||
#define CK_ViewMoveLeft 5016
|
||||
#define CK_ViewMoveRight 5017
|
||||
#define CK_ViewMovePgDn 5018
|
||||
#define CK_ViewMovePgUp 5019
|
||||
#define CK_ViewMoveHalfPgDn 5020
|
||||
#define CK_ViewMoveHalfPgUp 5021
|
||||
#define CK_ViewMoveToBol 5022
|
||||
#define CK_ViewMoveToEol 5023
|
||||
#define CK_ViewNextFile 5024
|
||||
#define CK_ViewPrevFile 5025
|
||||
#define CK_ViewToggleRuler 5026
|
||||
#define CK_ViewToggleHexNavMode 5027
|
||||
#define CK_ViewMoveTop 5028
|
||||
#define CK_ViewMoveBottom 5029
|
||||
#define CK_ViewMoveLeft10 5030
|
||||
#define CK_ViewMoveRight10 5031
|
||||
|
||||
#ifdef USE_DIFF_VIEW
|
||||
/* diff viewer */
|
||||
#define CK_DiffDisplaySymbols 9001
|
||||
#define CK_DiffDisplayNumbers 9002
|
||||
|
@ -499,6 +487,7 @@
|
|||
#define CK_DiffSave 9036
|
||||
#define CK_DiffContinueSearch 9037
|
||||
#define CK_DiffOptions 9038
|
||||
#endif /* USE_DIFF_VIEW */
|
||||
|
||||
#define CK_Pipe_Block(i) (10000+(i))
|
||||
#define CK_Macro(i) (20000+(i))
|
||||
|
|
|
@ -1,223 +1,3 @@
|
|||
[editor]
|
||||
EditXStore = ctrl-insert
|
||||
EditXPaste = shift-insert
|
||||
EditXCut = shift-delete
|
||||
|
||||
EditDeleteLine = ctrl-y
|
||||
EditDeleteToLineEnd = ctrl-k
|
||||
EditDeleteToLineBegin =
|
||||
|
||||
EditLeft = left
|
||||
EditRight = right
|
||||
EditUp = up
|
||||
EditDown = down
|
||||
EditEnter = enter
|
||||
EditReturn = shift-enter
|
||||
EditBackSpace = backspace; ctrl-h
|
||||
EditDelete = delete; ctrl-d
|
||||
EditPageUp = pgup
|
||||
EditPageDown = pgdn
|
||||
EditWordLeft = ctrl-left; ctrl-z
|
||||
EditWordRight = ctrl-right; ctrl-x
|
||||
EditHome = home
|
||||
EditEnd = end
|
||||
EditTab = tab
|
||||
EditUndo = ctrl-u
|
||||
EditRedo = alt-r
|
||||
EditBeginningOfText = ctrl-home; alt-lt
|
||||
EditEndOfText = ctrl-end; alt-gt
|
||||
EditScrollUp = ctrl-up
|
||||
EditScrollDown = ctrl-down
|
||||
EditBeginPage = ctrl-pgup
|
||||
EditEndPage = ctrl-pgdn
|
||||
EditDeleteWordLeft = alt-backspace
|
||||
EditDeleteWordRight = alt-d
|
||||
EditParagraphUp =
|
||||
EditParagraphDown =
|
||||
EditSave = f2
|
||||
EditLoad =
|
||||
EditNew = ctrl-n
|
||||
EditSaveas = f12
|
||||
EditMark = f3
|
||||
EditCopy = f5
|
||||
EditMove = f6
|
||||
EditRemove = f8
|
||||
EditMarkAll =
|
||||
EditUnmark =
|
||||
EditFind = f7
|
||||
EditMarkLine =
|
||||
EditMarkWord =
|
||||
|
||||
EditShiftBlockLeft =
|
||||
EditShiftBlockRight =
|
||||
|
||||
EditPageUpHighlight = shift-pgup
|
||||
EditPageDownHighlight = shift-pgdn
|
||||
EditLeftHighlight = shift-left
|
||||
EditRightHighlight = shift-right
|
||||
EditWordLeftHighlight = ctrl-shift-left
|
||||
EditWordRightHighlight = ctrl-shift-right
|
||||
EditUpHighlight = shift-up
|
||||
EditDownHighlight = shift-down
|
||||
EditHomeHighlight = shift-home
|
||||
EditEndHighlight = shift-end
|
||||
EditBeginningOfTextHighlight = ctrl-shift-home
|
||||
EditEndOfTextHighlight = ctrl-shift-end
|
||||
EditBeginPageHighlight = ctrl-shift-pgup
|
||||
EditEndPageHighlight = ctrl-shift-pgdn
|
||||
EditScrollUpHighlight = ctrl-shift-up
|
||||
EditScrollDownHighlight = ctrl-shift-down
|
||||
EditParagraphUpHighlight =
|
||||
EditParagraphDownHighlight =
|
||||
|
||||
EditPageUpAltHighlight = alt-pgup
|
||||
EditPageDownAltHighlight = alt-pgdn
|
||||
EditLeftAltHighlight = alt-left
|
||||
EditRightAltHighlight = alt-right
|
||||
EditWordLeftAltHighlight = ctrl-alt-left
|
||||
EditWordRightAltHighlight = ctrl-alt-right
|
||||
EditUpAltHighlight = alt-up
|
||||
EditDownAltHighlight = alt-down
|
||||
EditHomeAltHighlight = alt-home
|
||||
EditEndAltHighlight = alt-end
|
||||
EditBeginningOfTextAltHighlight = ctrl-alt-home
|
||||
EditEndOfTextHighlight = ctrl-alt-end
|
||||
EditBeginPageHighlight = ctrl-alt-pgup
|
||||
EditEndPageAltHighlight = ctrl-alt-pgdn
|
||||
EditScrollUpAltHighlight =
|
||||
EditScrollDownAltHighlight =
|
||||
EditParagraphUpAltHighlight =
|
||||
EditParagraphDownAltHighlight =
|
||||
|
||||
EditSaveBlock = ctrl-f
|
||||
EditColumnMark = f13
|
||||
EditFindAgain = f17
|
||||
EditReplace = f4
|
||||
EditReplaceAgain = f14
|
||||
EditCompleteWord = alt-tab
|
||||
EditDebugStart =
|
||||
EditDebugStop =
|
||||
EditDebugToggleBreak =
|
||||
EditDebugClear =
|
||||
EditDebugNext =
|
||||
EditDebugStep =
|
||||
EditDebugBackTrace =
|
||||
EditDebugContinue =
|
||||
EditDebugEnterCommand =
|
||||
EditDebugUntilCurser =
|
||||
EditInsertFile = f15
|
||||
EditQuit = f10
|
||||
EditToggleInsert = insert
|
||||
EditHelp = f1
|
||||
EditDate =
|
||||
EditRefresh = ctrl-l
|
||||
EditGoto = alt-l
|
||||
EditManPage =
|
||||
EditSort = alt-t
|
||||
EditMail = alt-m
|
||||
EditCancel =
|
||||
EditComplete =
|
||||
|
||||
EditParagraphFormat = alt-p
|
||||
EditUtil =
|
||||
EditTypeLoadPython =
|
||||
EditFindFile =
|
||||
EditCtags =
|
||||
EditMatchBracket = alt-b
|
||||
EditTerminal =
|
||||
EditTerminalApp =
|
||||
EditExtCmd = alt-u
|
||||
EditUserMenu = f11
|
||||
EditSaveDesktop =
|
||||
EditNewWindow =
|
||||
EditCycle =
|
||||
EditMenu = f9
|
||||
EditSaveAndQuit =
|
||||
EditRunAnother =
|
||||
EditCheckSaveAndQuit =
|
||||
EditMaximize =
|
||||
EditToggleBookmark = alt-k
|
||||
EditFlushBookmarks = alt-o
|
||||
EditNextBookmark = alt-j
|
||||
EditPrevBookmark = alt-i
|
||||
|
||||
EditSelectionHistory =
|
||||
EditShell = ctrl-o
|
||||
EditInsertLiteral = ctrl-q
|
||||
|
||||
EditBeginRecordMacro =
|
||||
EditEndRecordMacro =
|
||||
EditBeginOrEndMacro = ctrl-r
|
||||
EditExecuteMacro = ctrl-a
|
||||
EditDeleteMacro =
|
||||
|
||||
EditToggleLineState = alt-n
|
||||
EditToggleTabTWS = alt-underline
|
||||
EditToggleSyntax = ctrl-s
|
||||
EditToggleShowMargin =
|
||||
|
||||
EditFindDefinition = alt-enter
|
||||
EditLoadPrevFile = alt-minus
|
||||
EditLoadNextFile = alt-plus
|
||||
|
||||
EditBeginEndRepeat =
|
||||
|
||||
SelectCodepage = alt-e
|
||||
|
||||
[viewer]
|
||||
ViewHelp = f1
|
||||
ViewToggleWrapMode = f2
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewToggleHexMode = f4
|
||||
ViewGoto = f5
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewContinueSearch = ctrl-r; ctrl-s; f17; n
|
||||
ViewMoveToBol = ctrl-a
|
||||
ViewMoveToEol = ctrl-e
|
||||
ViewMoveLeft = h; left
|
||||
ViewMoveRight = l; right
|
||||
ViewMoveLeft10 = ctrl-left
|
||||
ViewMoveRight10 = ctrl-right
|
||||
ViewMoveUp = k; y; insert; up; ctrl-p
|
||||
ViewMoveDown = j; e; delete; down; enter; ctrl-n
|
||||
ViewMovePgDn = f; space; pgdn; ctrl-v
|
||||
ViewMovePgUp = b; pgup; alt-v; backspace
|
||||
ViewMoveHalfPgDn = d
|
||||
ViewMoveHalfPgUp = u
|
||||
ViewMoveTop = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
|
||||
ViewMoveBottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
|
||||
ViewGotoBookmark = m
|
||||
ViewNewBookmark = r
|
||||
ViewNextFile = ctrl-f
|
||||
ViewPrevFile = ctrl-b
|
||||
SelectCodepage = alt-e
|
||||
ShowCommandLine = ctrl-o
|
||||
ViewToggleRuler = alt-r
|
||||
|
||||
[viewer:hex]
|
||||
ViewHelp = f1
|
||||
ViewToggleHexEditMode = f2
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewToggleHexMode = f4
|
||||
ViewGoto = f5
|
||||
ViewHexEditSave = f6
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewToggleHexNavMode = tab
|
||||
ViewMoveToBol = ctrl-a; home
|
||||
ViewMoveToEol = ctrl-e; end
|
||||
ViewMoveLeft = b; left
|
||||
ViewMoveRight = f; right
|
||||
ViewMoveUp = k; y; up
|
||||
ViewMoveDown = j; delete; down
|
||||
ViewMovePgDn = pgdn; ctrl-v
|
||||
ViewMovePgUp = pgup; alt-v
|
||||
ViewMoveTop = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
|
||||
ViewMoveBottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
|
||||
|
||||
[main]
|
||||
CmdHelp = f1
|
||||
CmdUserMenu = f2
|
||||
|
@ -308,15 +88,27 @@ PanelGotoTopFile = alt-g
|
|||
PanelSetPanelEncoding = alt-e
|
||||
PanelMoveHome = alt-lt; home; a1
|
||||
PanelMoveEnd = alt-gt; end; c1
|
||||
PanelSelectSortOrder=
|
||||
PanelToggleSortOrderPrev=
|
||||
PanelToggleSortOrderNext=
|
||||
PanelReverseSort=
|
||||
PanelSortOrderByName=
|
||||
PanelSortOrderByExt=
|
||||
PanelSortOrderBySize=
|
||||
PanelSortOrderByMTime=
|
||||
PanelSmartGotoParentDir=
|
||||
PanelSelectSortOrder =
|
||||
PanelToggleSortOrderPrev =
|
||||
PanelToggleSortOrderNext =
|
||||
PanelReverseSort =
|
||||
PanelSortOrderByName =
|
||||
PanelSortOrderByExt =
|
||||
PanelSortOrderBySize =
|
||||
PanelSortOrderByMTime =
|
||||
PanelSmartGotoParentDir =
|
||||
|
||||
[dialog]
|
||||
DialogOK = enter
|
||||
DialogCancel = f10; esc; ctrl-g
|
||||
DialogPrevItem = left; up
|
||||
DialogNextItem = right; down
|
||||
DialogHelp = f1
|
||||
DialogSuspend = ctrl-z
|
||||
DialogRefresh = ctrl-l
|
||||
CmdDialogList = alt-prime
|
||||
CmdDialogNext = alt-rbrace
|
||||
CmdDialogPrev = alt-lbrace
|
||||
|
||||
[input]
|
||||
InputBol = ctrl-a; alt-lt; home; a1
|
||||
|
@ -400,18 +192,211 @@ HelpPrevLink = alt-tab
|
|||
HelpNextNode = n
|
||||
HelpPrevNode = p
|
||||
|
||||
[dialog]
|
||||
DialogOK = enter
|
||||
DialogCancel = f10; esc; ctrl-g
|
||||
DialogPrevItem = left; up
|
||||
DialogNextItem = right; down
|
||||
DialogHelp = f1
|
||||
DialogSuspend = ctrl-z
|
||||
DialogRefresh = ctrl-l
|
||||
CmdDialogList = alt-prime
|
||||
CmdDialogNext = alt-rbrace
|
||||
CmdDialogPrev = alt-lbrace
|
||||
[editor]
|
||||
EditXStore = ctrl-insert
|
||||
EditXPaste = shift-insert
|
||||
EditXCut = shift-delete
|
||||
EditDeleteLine = ctrl-y
|
||||
EditDeleteToLineEnd = ctrl-k
|
||||
EditDeleteToLineBegin =
|
||||
EditLeft = left
|
||||
EditRight = right
|
||||
EditUp = up
|
||||
EditDown = down
|
||||
EditEnter = enter
|
||||
EditReturn = shift-enter
|
||||
EditBackSpace = backspace; ctrl-h
|
||||
EditDelete = delete; ctrl-d
|
||||
EditPageUp = pgup
|
||||
EditPageDown = pgdn
|
||||
EditWordLeft = ctrl-left; ctrl-z
|
||||
EditWordRight = ctrl-right; ctrl-x
|
||||
EditHome = home
|
||||
EditEnd = end
|
||||
EditTab = tab
|
||||
EditUndo = ctrl-u
|
||||
EditRedo = alt-r
|
||||
EditBeginningOfText = ctrl-home; alt-lt
|
||||
EditEndOfText = ctrl-end; alt-gt
|
||||
EditScrollUp = ctrl-up
|
||||
EditScrollDown = ctrl-down
|
||||
EditBeginPage = ctrl-pgup
|
||||
EditEndPage = ctrl-pgdn
|
||||
EditDeleteWordLeft = alt-backspace
|
||||
EditDeleteWordRight = alt-d
|
||||
EditParagraphUp =
|
||||
EditParagraphDown =
|
||||
EditSave = f2
|
||||
EditLoad =
|
||||
EditNew = ctrl-n
|
||||
EditSaveas = f12
|
||||
EditMark = f3
|
||||
EditCopy = f5
|
||||
EditMove = f6
|
||||
EditRemove = f8
|
||||
EditMarkAll =
|
||||
EditUnmark =
|
||||
EditFind = f7
|
||||
EditMarkLine =
|
||||
EditMarkWord =
|
||||
EditShiftBlockLeft =
|
||||
EditShiftBlockRight =
|
||||
EditPageUpHighlight = shift-pgup
|
||||
EditPageDownHighlight = shift-pgdn
|
||||
EditLeftHighlight = shift-left
|
||||
EditRightHighlight = shift-right
|
||||
EditWordLeftHighlight = ctrl-shift-left
|
||||
EditWordRightHighlight = ctrl-shift-right
|
||||
EditUpHighlight = shift-up
|
||||
EditDownHighlight = shift-down
|
||||
EditHomeHighlight = shift-home
|
||||
EditEndHighlight = shift-end
|
||||
EditBeginningOfTextHighlight = ctrl-shift-home
|
||||
EditEndOfTextHighlight = ctrl-shift-end
|
||||
EditBeginPageHighlight = ctrl-shift-pgup
|
||||
EditEndPageHighlight = ctrl-shift-pgdn
|
||||
EditScrollUpHighlight = ctrl-shift-up
|
||||
EditScrollDownHighlight = ctrl-shift-down
|
||||
EditParagraphUpHighlight =
|
||||
EditParagraphDownHighlight =
|
||||
EditPageUpAltHighlight = alt-pgup
|
||||
EditPageDownAltHighlight = alt-pgdn
|
||||
EditLeftAltHighlight = alt-left
|
||||
EditRightAltHighlight = alt-right
|
||||
EditWordLeftAltHighlight = ctrl-alt-left
|
||||
EditWordRightAltHighlight = ctrl-alt-right
|
||||
EditUpAltHighlight = alt-up
|
||||
EditDownAltHighlight = alt-down
|
||||
EditHomeAltHighlight = alt-home
|
||||
EditEndAltHighlight = alt-end
|
||||
EditBeginningOfTextAltHighlight = ctrl-alt-home
|
||||
EditEndOfTextHighlight = ctrl-alt-end
|
||||
EditBeginPageHighlight = ctrl-alt-pgup
|
||||
EditEndPageAltHighlight = ctrl-alt-pgdn
|
||||
EditScrollUpAltHighlight =
|
||||
EditScrollDownAltHighlight =
|
||||
EditParagraphUpAltHighlight =
|
||||
EditParagraphDownAltHighlight =
|
||||
EditSaveBlock = ctrl-f
|
||||
EditColumnMark = f13
|
||||
EditFindAgain = f17
|
||||
EditReplace = f4
|
||||
EditReplaceAgain = f14
|
||||
EditCompleteWord = alt-tab
|
||||
EditDebugStart =
|
||||
EditDebugStop =
|
||||
EditDebugToggleBreak =
|
||||
EditDebugClear =
|
||||
EditDebugNext =
|
||||
EditDebugStep =
|
||||
EditDebugBackTrace =
|
||||
EditDebugContinue =
|
||||
EditDebugEnterCommand =
|
||||
EditDebugUntilCurser =
|
||||
EditInsertFile = f15
|
||||
EditQuit = f10
|
||||
EditToggleInsert = insert
|
||||
EditHelp = f1
|
||||
EditDate =
|
||||
EditRefresh = ctrl-l
|
||||
EditGoto = alt-l
|
||||
EditManPage =
|
||||
EditSort = alt-t
|
||||
EditMail = alt-m
|
||||
EditCancel =
|
||||
EditComplete =
|
||||
EditParagraphFormat = alt-p
|
||||
EditUtil =
|
||||
EditTypeLoadPython =
|
||||
EditFindFile =
|
||||
EditCtags =
|
||||
EditMatchBracket = alt-b
|
||||
EditTerminal =
|
||||
EditTerminalApp =
|
||||
EditExtCmd = alt-u
|
||||
EditUserMenu = f11
|
||||
EditSaveDesktop =
|
||||
EditNewWindow =
|
||||
EditCycle =
|
||||
EditMenu = f9
|
||||
EditSaveAndQuit =
|
||||
EditRunAnother =
|
||||
EditCheckSaveAndQuit =
|
||||
EditMaximize =
|
||||
EditToggleBookmark = alt-k
|
||||
EditFlushBookmarks = alt-o
|
||||
EditNextBookmark = alt-j
|
||||
EditPrevBookmark = alt-i
|
||||
EditSelectionHistory =
|
||||
EditShell = ctrl-o
|
||||
EditInsertLiteral = ctrl-q
|
||||
EditBeginRecordMacro =
|
||||
EditEndRecordMacro =
|
||||
EditBeginOrEndMacro = ctrl-r
|
||||
EditDeleteMacro =
|
||||
EditToggleLineState = alt-n
|
||||
EditToggleTabTWS = alt-underline
|
||||
EditToggleSyntax = ctrl-s
|
||||
EditToggleShowMargin =
|
||||
EditFindDefinition = alt-enter
|
||||
EditLoadPrevFile = alt-minus
|
||||
EditLoadNextFile = alt-plus
|
||||
EditBeginEndRepeat =
|
||||
SelectCodepage = alt-e
|
||||
|
||||
[viewer]
|
||||
ViewHelp = f1
|
||||
ViewToggleWrapMode = f2
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewToggleHexMode = f4
|
||||
ViewGoto = f5
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewContinueSearch = ctrl-r; ctrl-s; f17; n
|
||||
ViewMoveToBol = ctrl-a
|
||||
ViewMoveToEol = ctrl-e
|
||||
ViewMoveLeft = h; left
|
||||
ViewMoveRight = l; right
|
||||
ViewMoveLeft10 = ctrl-left
|
||||
ViewMoveRight10 = ctrl-right
|
||||
ViewMoveUp = k; y; insert; up; ctrl-p
|
||||
ViewMoveDown = j; e; delete; down; enter; ctrl-n
|
||||
ViewMovePgDn = f; space; pgdn; ctrl-v
|
||||
ViewMovePgUp = b; pgup; alt-v; backspace
|
||||
ViewMoveHalfPgDn = d
|
||||
ViewMoveHalfPgUp = u
|
||||
ViewMoveTop = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
|
||||
ViewMoveBottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
|
||||
ViewGotoBookmark = m
|
||||
ViewNewBookmark = r
|
||||
ViewNextFile = ctrl-f
|
||||
ViewPrevFile = ctrl-b
|
||||
SelectCodepage = alt-e
|
||||
ShowCommandLine = ctrl-o
|
||||
ViewToggleRuler = alt-r
|
||||
|
||||
[viewer:hex]
|
||||
ViewHelp = f1
|
||||
ViewToggleHexEditMode = f2
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewToggleHexMode = f4
|
||||
ViewGoto = f5
|
||||
ViewHexEditSave = f6
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewToggleHexNavMode = tab
|
||||
ViewMoveToBol = ctrl-a; home
|
||||
ViewMoveToEol = ctrl-e; end
|
||||
ViewMoveLeft = b; left
|
||||
ViewMoveRight = f; right
|
||||
ViewMoveUp = k; y; up
|
||||
ViewMoveDown = j; delete; down
|
||||
ViewMovePgDn = pgdn; ctrl-v
|
||||
ViewMovePgUp = pgup; alt-v
|
||||
ViewMoveTop = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
|
||||
ViewMoveBottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
|
||||
|
||||
[diffviewer]
|
||||
DiffDisplaySymbols = alt-s; s
|
||||
|
|
|
@ -1,226 +1,3 @@
|
|||
[editor]
|
||||
EditXStore = alt-w
|
||||
EditXPaste = ctrl-y
|
||||
EditXCut = ctrl-w
|
||||
|
||||
EditDeleteLine = ctrl-y
|
||||
EditDeleteToLineEnd = ctrl-k
|
||||
EditDeleteToLineBegin =
|
||||
|
||||
EditLeft = left; ctrl-b
|
||||
EditRight = right; ctrl-f
|
||||
EditUp = up; ctrl-p
|
||||
EditDown = down; ctrl-n
|
||||
EditEnter = enter
|
||||
EditReturn = shift-enter
|
||||
EditBackSpace = backspace
|
||||
EditDelete = delete
|
||||
EditPageUp = pgup; alt-v
|
||||
EditPageDown = pgdn; ctrl-v
|
||||
EditWordLeft = ctrl-left; alt-b
|
||||
EditWordRight = ctrl-right; alt-f
|
||||
EditHome = home; ctrl-a
|
||||
EditEnd = end; ctrl-e
|
||||
EditTab = tab
|
||||
EditUndo = ctrl-u
|
||||
EditBeginningOfText = ctrl-home; alt-lt
|
||||
EditEndOfText = ctrl-end; alt-gt
|
||||
EditScrollUp = ctrl-up
|
||||
EditScrollDown = ctrl-down
|
||||
EditBeginPage = ctrl-pgup
|
||||
EditEndPage = ctrl-pgdn
|
||||
EditDeleteWordLeft = alt-backspace
|
||||
EditDeleteWordRight = alt-d
|
||||
EditParagraphUp =
|
||||
EditParagraphDown =
|
||||
EditSave = f2
|
||||
EditLoad =
|
||||
EditSaveas = f12
|
||||
EditMark = f3; ctrl-at
|
||||
EditCopy = f5
|
||||
EditMove = f6
|
||||
EditRemove = f8
|
||||
EditMarkAll =
|
||||
EditUnmark =
|
||||
EditFind = f7; ctrl-s
|
||||
EditMarkLine =
|
||||
EditMarkWord =
|
||||
|
||||
EditShiftBlockLeft =
|
||||
EditShiftBlockRight =
|
||||
|
||||
EditPageUpHighlight = shift-pgup
|
||||
EditPageDownHighlight = shift-pgdn
|
||||
EditLeftHighlight = shift-left
|
||||
EditRightHighlight = shift-right
|
||||
EditWordLeftHighlight = ctrl-shift-left
|
||||
EditWordRightHighlight = ctrl-shift-right
|
||||
EditUpHighlight = shift-up
|
||||
EditDownHighlight = shift-down
|
||||
EditHomeHighlight = shift-home
|
||||
EditEndHighlight = shift-end
|
||||
EditBeginningOfTextHighlight = ctrl-shift-home
|
||||
EditEndOfTextHighlight = ctrl-shift-end
|
||||
EditBeginPageHighlight = ctrl-shift-pgup
|
||||
EditEndPageHighlight = ctrl-shift-pgdn
|
||||
EditScrollUpHighlight = ctrl-shift-up
|
||||
EditScrollDownHighlight = ctrl-shift-down
|
||||
EditParagraphUpHighlight =
|
||||
EditParagraphDownHighlight =
|
||||
|
||||
EditPageUpAltHighlight = alt-pgup
|
||||
EditPageDownAltHighlight = alt-pgdn
|
||||
EditLeftAltHighlight = alt-left
|
||||
EditRightAltHighlight = alt-right
|
||||
EditWordLeftAltHighlight = ctrl-alt-left
|
||||
EditWordRightAltHighlight = ctrl-alt-right
|
||||
EditUpAltHighlight = alt-up
|
||||
EditDownAltHighlight = alt-down
|
||||
EditHomeAltHighlight = alt-home
|
||||
EditEndAltHighlight = alt-end
|
||||
EditBeginningOfTextAltHighlight = ctrl-alt-home
|
||||
EditEndOfTextHighlight = ctrl-alt-end
|
||||
EditBeginPageHighlight = ctrl-alt-pgup
|
||||
EditEndPageAltHighlight = ctrl-alt-pgdn
|
||||
EditScrollUpAltHighlight =
|
||||
EditScrollDownAltHighlight =
|
||||
EditParagraphUpAltHighlight =
|
||||
EditParagraphDownAltHighlight =
|
||||
|
||||
EditSaveBlock =
|
||||
EditColumnMark = f13
|
||||
EditFindAgain = f17
|
||||
EditReplace = f4
|
||||
EditReplaceAgain = f14
|
||||
EditCompleteWord = alt-tab
|
||||
EditDebugStart =
|
||||
EditDebugStop =
|
||||
EditDebugToggleBreak =
|
||||
EditDebugClear =
|
||||
EditDebugNext =
|
||||
EditDebugStep =
|
||||
EditDebugBackTrace =
|
||||
EditDebugContinue =
|
||||
EditDebugEnterCommand =
|
||||
EditDebugUntilCurser =
|
||||
EditInsertFile = f15
|
||||
EditQuit = f10
|
||||
EditToggleInsert = insert
|
||||
EditHelp = f1
|
||||
EditDate =
|
||||
EditRefresh = ctrl-l
|
||||
EditGoto = alt-l
|
||||
EditManPage =
|
||||
EditSort = alt-t
|
||||
EditMail =
|
||||
EditCancel =
|
||||
EditComplete =
|
||||
|
||||
EditParagraphFormat = alt-p
|
||||
EditUtil =
|
||||
EditTypeLoadPython =
|
||||
EditFindFile =
|
||||
EditCtags =
|
||||
EditMatchBracket =
|
||||
EditTerminal =
|
||||
EditTerminalApp =
|
||||
EditExtCmd = alt-u
|
||||
EditUserMenu = f11
|
||||
EditSaveDesktop =
|
||||
EditNewWindow =
|
||||
EditCycle =
|
||||
EditMenu = f9
|
||||
EditSaveAndQuit =
|
||||
EditRunAnother =
|
||||
EditCheckSaveAndQuit =
|
||||
EditMaximize =
|
||||
EditToggleBookmark =
|
||||
EditFlushBookmarks =
|
||||
EditNextBookmark =
|
||||
EditPrevBookmark =
|
||||
|
||||
EditSelectionHistory =
|
||||
EditShell = ctrl-o
|
||||
EditInsertLiteral = ctrl-q
|
||||
|
||||
EditBeginRecordMacro =
|
||||
EditEndRecordMacro =
|
||||
EditBeginOrEndMacro = ctrl-r
|
||||
EditDeleteMacro =
|
||||
|
||||
EditToggleLineState = alt-n
|
||||
EditToggleTabTWS = alt-underline
|
||||
EditToggleSyntax = ctrl-s
|
||||
EditToggleShowMargin =
|
||||
|
||||
EditFindDefinition = alt-enter
|
||||
EditLoadPrevFile = alt-minus
|
||||
EditLoadNextFile = alt-plus
|
||||
|
||||
EditBeginEndRepeat =
|
||||
|
||||
SelectCodepage = alt-e
|
||||
|
||||
EditExtMode = ctrl-x
|
||||
|
||||
[edit:xmap]
|
||||
EditNew = k
|
||||
EditExecuteMacro = e
|
||||
|
||||
[viewer]
|
||||
ViewHelp = f1
|
||||
ViewToggleWrapMode = f2
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewToggleHexMode = f4
|
||||
ViewGoto = f5
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewContinueSearch = ctrl-r; ctrl-s; f17; n
|
||||
ViewMoveToBol = ctrl-a
|
||||
ViewMoveToEol = ctrl-e
|
||||
ViewMoveLeft = h; left
|
||||
ViewMoveRight = l; right
|
||||
ViewMoveLeft10 = ctrl-left
|
||||
ViewMoveRight10 = ctrl-right
|
||||
ViewMoveUp = k; y; insert; up; ctrl-p
|
||||
ViewMoveDown = j; e; delete; down; enter; ctrl-n
|
||||
ViewMovePgDn = f; space; pgdn; ctrl-v
|
||||
ViewMovePgUp = b; pgup; alt-v; backspace
|
||||
ViewMoveHalfPgDn = d
|
||||
ViewMoveHalfPgUp = u
|
||||
ViewMoveTop = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
|
||||
ViewMoveBottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
|
||||
ViewGotoBookmark = m
|
||||
ViewNewBookmark = r
|
||||
ViewNextFile = ctrl-f
|
||||
ViewPrevFile = ctrl-b
|
||||
SelectCodepage = alt-e
|
||||
ShowCommandLine = ctrl-o
|
||||
ViewToggleRuler = alt-r
|
||||
|
||||
[viewer:hex]
|
||||
ViewHelp = f1
|
||||
ViewToggleHexEditMode = f2
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewToggleHexMode = f4
|
||||
ViewGoto = f5
|
||||
ViewHexEditSave = f6
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewToggleHexNavMode = tab
|
||||
ViewMoveToBol = ctrl-a; home
|
||||
ViewMoveToEol = ctrl-e; end
|
||||
ViewMoveLeft = b; left
|
||||
ViewMoveRight = f; right
|
||||
ViewMoveUp = k; y; up
|
||||
ViewMoveDown = j; delete; down
|
||||
ViewMovePgDn = pgdn; ctrl-v
|
||||
ViewMovePgUp = pgup; alt-v
|
||||
ViewMoveTop = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
|
||||
ViewMoveBottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
|
||||
|
||||
[main]
|
||||
CmdHelp = f1
|
||||
CmdUserMenu = f2
|
||||
|
@ -311,15 +88,27 @@ PanelGotoTopFile = alt-g
|
|||
PanelSetPanelEncoding = alt-e
|
||||
PanelMoveHome = alt-lt; home; a1
|
||||
PanelMoveEnd = alt-gt; end; c1
|
||||
PanelSelectSortOrder=
|
||||
PanelToggleSortOrderPrev=
|
||||
PanelToggleSortOrderNext=
|
||||
PanelReverseSort=
|
||||
PanelSortOrderByName=
|
||||
PanelSortOrderByExt=
|
||||
PanelSortOrderBySize=
|
||||
PanelSortOrderByMTime=
|
||||
PanelSmartGotoParentDir=
|
||||
PanelSelectSortOrder =
|
||||
PanelToggleSortOrderPrev =
|
||||
PanelToggleSortOrderNext =
|
||||
PanelReverseSort =
|
||||
PanelSortOrderByName =
|
||||
PanelSortOrderByExt =
|
||||
PanelSortOrderBySize =
|
||||
PanelSortOrderByMTime =
|
||||
PanelSmartGotoParentDir =
|
||||
|
||||
[dialog]
|
||||
DialogOK = enter
|
||||
DialogCancel = f10; esc; ctrl-g
|
||||
DialogPrevItem = left; up
|
||||
DialogNextItem = right; down
|
||||
DialogHelp = f1
|
||||
DialogSuspend = ctrl-z
|
||||
DialogRefresh = ctrl-l
|
||||
CmdDialogList = alt-prime
|
||||
CmdDialogNext = alt-rbrace
|
||||
CmdDialogPrev = alt-lbrace
|
||||
|
||||
[input]
|
||||
InputBol = ctrl-a; alt-lt; home; a1
|
||||
|
@ -403,18 +192,213 @@ HelpPrevLink = alt-tab
|
|||
HelpNextNode = n
|
||||
HelpPrevNode = p
|
||||
|
||||
[dialog]
|
||||
DialogOK = enter
|
||||
DialogCancel = f10; esc; ctrl-g
|
||||
DialogPrevItem = left; up
|
||||
DialogNextItem = right; down
|
||||
DialogHelp = f1
|
||||
DialogSuspend = ctrl-z
|
||||
DialogRefresh = ctrl-l
|
||||
CmdDialogList = alt-prime
|
||||
CmdDialogNext = alt-rbrace
|
||||
CmdDialogPrev = alt-lbrace
|
||||
[editor]
|
||||
EditXStore = alt-w
|
||||
EditXPaste = ctrl-y
|
||||
EditXCut = ctrl-w
|
||||
EditDeleteLine = ctrl-y
|
||||
EditDeleteToLineEnd = ctrl-k
|
||||
EditDeleteToLineBegin =
|
||||
EditLeft = left; ctrl-b
|
||||
EditRight = right; ctrl-f
|
||||
EditUp = up; ctrl-p
|
||||
EditDown = down; ctrl-n
|
||||
EditEnter = enter
|
||||
EditReturn = shift-enter
|
||||
EditBackSpace = backspace
|
||||
EditDelete = delete
|
||||
EditPageUp = pgup; alt-v
|
||||
EditPageDown = pgdn; ctrl-v
|
||||
EditWordLeft = ctrl-left; alt-b
|
||||
EditWordRight = ctrl-right; alt-f
|
||||
EditHome = home; ctrl-a
|
||||
EditEnd = end; ctrl-e
|
||||
EditTab = tab
|
||||
EditUndo = ctrl-u
|
||||
EditBeginningOfText = ctrl-home; alt-lt
|
||||
EditEndOfText = ctrl-end; alt-gt
|
||||
EditScrollUp = ctrl-up
|
||||
EditScrollDown = ctrl-down
|
||||
EditBeginPage = ctrl-pgup
|
||||
EditEndPage = ctrl-pgdn
|
||||
EditDeleteWordLeft = alt-backspace
|
||||
EditDeleteWordRight = alt-d
|
||||
EditParagraphUp =
|
||||
EditParagraphDown =
|
||||
EditSave = f2
|
||||
EditLoad =
|
||||
EditSaveas = f12
|
||||
EditMark = f3; ctrl-at
|
||||
EditCopy = f5
|
||||
EditMove = f6
|
||||
EditRemove = f8
|
||||
EditMarkAll =
|
||||
EditUnmark =
|
||||
EditFind = f7; ctrl-s
|
||||
EditMarkLine =
|
||||
EditMarkWord =
|
||||
EditShiftBlockLeft =
|
||||
EditShiftBlockRight =
|
||||
EditPageUpHighlight = shift-pgup
|
||||
EditPageDownHighlight = shift-pgdn
|
||||
EditLeftHighlight = shift-left
|
||||
EditRightHighlight = shift-right
|
||||
EditWordLeftHighlight = ctrl-shift-left
|
||||
EditWordRightHighlight = ctrl-shift-right
|
||||
EditUpHighlight = shift-up
|
||||
EditDownHighlight = shift-down
|
||||
EditHomeHighlight = shift-home
|
||||
EditEndHighlight = shift-end
|
||||
EditBeginningOfTextHighlight = ctrl-shift-home
|
||||
EditEndOfTextHighlight = ctrl-shift-end
|
||||
EditBeginPageHighlight = ctrl-shift-pgup
|
||||
EditEndPageHighlight = ctrl-shift-pgdn
|
||||
EditScrollUpHighlight = ctrl-shift-up
|
||||
EditScrollDownHighlight = ctrl-shift-down
|
||||
EditParagraphUpHighlight =
|
||||
EditParagraphDownHighlight =
|
||||
EditPageUpAltHighlight = alt-pgup
|
||||
EditPageDownAltHighlight = alt-pgdn
|
||||
EditLeftAltHighlight = alt-left
|
||||
EditRightAltHighlight = alt-right
|
||||
EditWordLeftAltHighlight = ctrl-alt-left
|
||||
EditWordRightAltHighlight = ctrl-alt-right
|
||||
EditUpAltHighlight = alt-up
|
||||
EditDownAltHighlight = alt-down
|
||||
EditHomeAltHighlight = alt-home
|
||||
EditEndAltHighlight = alt-end
|
||||
EditBeginningOfTextAltHighlight = ctrl-alt-home
|
||||
EditEndOfTextHighlight = ctrl-alt-end
|
||||
EditBeginPageHighlight = ctrl-alt-pgup
|
||||
EditEndPageAltHighlight = ctrl-alt-pgdn
|
||||
EditScrollUpAltHighlight =
|
||||
EditScrollDownAltHighlight =
|
||||
EditParagraphUpAltHighlight =
|
||||
EditParagraphDownAltHighlight =
|
||||
EditSaveBlock =
|
||||
EditColumnMark = f13
|
||||
EditFindAgain = f17
|
||||
EditReplace = f4
|
||||
EditReplaceAgain = f14
|
||||
EditCompleteWord = alt-tab
|
||||
EditDebugStart =
|
||||
EditDebugStop =
|
||||
EditDebugToggleBreak =
|
||||
EditDebugClear =
|
||||
EditDebugNext =
|
||||
EditDebugStep =
|
||||
EditDebugBackTrace =
|
||||
EditDebugContinue =
|
||||
EditDebugEnterCommand =
|
||||
EditDebugUntilCurser =
|
||||
EditInsertFile = f15
|
||||
EditQuit = f10
|
||||
EditToggleInsert = insert
|
||||
EditHelp = f1
|
||||
EditDate =
|
||||
EditRefresh = ctrl-l
|
||||
EditGoto = alt-l
|
||||
EditManPage =
|
||||
EditSort = alt-t
|
||||
EditMail =
|
||||
EditCancel =
|
||||
EditComplete =
|
||||
EditParagraphFormat = alt-p
|
||||
EditUtil =
|
||||
EditTypeLoadPython =
|
||||
EditFindFile =
|
||||
EditCtags =
|
||||
EditMatchBracket =
|
||||
EditTerminal =
|
||||
EditTerminalApp =
|
||||
EditExtCmd = alt-u
|
||||
EditUserMenu = f11
|
||||
EditSaveDesktop =
|
||||
EditNewWindow =
|
||||
EditCycle =
|
||||
EditMenu = f9
|
||||
EditSaveAndQuit =
|
||||
EditRunAnother =
|
||||
EditCheckSaveAndQuit =
|
||||
EditMaximize =
|
||||
EditToggleBookmark =
|
||||
EditFlushBookmarks =
|
||||
EditNextBookmark =
|
||||
EditPrevBookmark =
|
||||
EditSelectionHistory =
|
||||
EditShell = ctrl-o
|
||||
EditInsertLiteral = ctrl-q
|
||||
EditBeginRecordMacro =
|
||||
EditEndRecordMacro =
|
||||
EditBeginOrEndMacro = ctrl-r
|
||||
EditDeleteMacro =
|
||||
EditToggleLineState = alt-n
|
||||
EditToggleTabTWS = alt-underline
|
||||
EditToggleSyntax = ctrl-s
|
||||
EditToggleShowMargin =
|
||||
EditFindDefinition = alt-enter
|
||||
EditLoadPrevFile = alt-minus
|
||||
EditLoadNextFile = alt-plus
|
||||
EditBeginEndRepeat =
|
||||
SelectCodepage = alt-e
|
||||
EditExtMode = ctrl-x
|
||||
|
||||
[editor:xmap]
|
||||
EditNew = k
|
||||
|
||||
[viewer]
|
||||
ViewHelp = f1
|
||||
ViewToggleWrapMode = f2
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewToggleHexMode = f4
|
||||
ViewGoto = f5
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewContinueSearch = ctrl-r; ctrl-s; f17; n
|
||||
ViewMoveToBol = ctrl-a
|
||||
ViewMoveToEol = ctrl-e
|
||||
ViewMoveLeft = h; left
|
||||
ViewMoveRight = l; right
|
||||
ViewMoveLeft10 = ctrl-left
|
||||
ViewMoveRight10 = ctrl-right
|
||||
ViewMoveUp = k; y; insert; up; ctrl-p
|
||||
ViewMoveDown = j; e; delete; down; enter; ctrl-n
|
||||
ViewMovePgDn = f; space; pgdn; ctrl-v
|
||||
ViewMovePgUp = b; pgup; alt-v; backspace
|
||||
ViewMoveHalfPgDn = d
|
||||
ViewMoveHalfPgUp = u
|
||||
ViewMoveTop = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
|
||||
ViewMoveBottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
|
||||
ViewGotoBookmark = m
|
||||
ViewNewBookmark = r
|
||||
ViewNextFile = ctrl-f
|
||||
ViewPrevFile = ctrl-b
|
||||
SelectCodepage = alt-e
|
||||
ShowCommandLine = ctrl-o
|
||||
ViewToggleRuler = alt-r
|
||||
|
||||
[viewer:hex]
|
||||
ViewHelp = f1
|
||||
ViewToggleHexEditMode = f2
|
||||
ViewQuit = f3; f10; q; esc; ctrl-g
|
||||
ViewToggleHexMode = f4
|
||||
ViewGoto = f5
|
||||
ViewHexEditSave = f6
|
||||
ViewSearch = f7; question; slash
|
||||
ViewToggleMagicMode = f8
|
||||
ViewToggleNroffMode = f9
|
||||
ViewToggleHexNavMode = tab
|
||||
ViewMoveToBol = ctrl-a; home
|
||||
ViewMoveToEol = ctrl-e; end
|
||||
ViewMoveLeft = b; left
|
||||
ViewMoveRight = f; right
|
||||
ViewMoveUp = k; y; up
|
||||
ViewMoveDown = j; delete; down
|
||||
ViewMovePgDn = pgdn; ctrl-v
|
||||
ViewMovePgUp = pgup; alt-v
|
||||
ViewMoveTop = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
|
||||
ViewMoveBottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
|
||||
|
||||
[diffviewer]
|
||||
DiffDisplaySymbols = alt-s; s
|
||||
|
|
|
@ -31,42 +31,473 @@
|
|||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
GArray *editor_keymap = NULL;
|
||||
GArray *editor_x_keymap = NULL;
|
||||
|
||||
const global_keymap_t *editor_map;
|
||||
const global_keymap_t *editor_x_map;
|
||||
#endif
|
||||
|
||||
GArray *main_keymap = NULL;
|
||||
GArray *main_x_keymap = NULL;
|
||||
GArray *viewer_keymap = NULL;
|
||||
GArray *viewer_hex_keymap = NULL;
|
||||
GArray *panel_keymap = NULL;
|
||||
GArray *dialog_keymap = NULL;
|
||||
GArray *input_keymap = NULL;
|
||||
GArray *listbox_keymap = NULL;
|
||||
GArray *tree_keymap = NULL;
|
||||
GArray *help_keymap = NULL;
|
||||
GArray *dialog_keymap = NULL;
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
GArray *editor_keymap = NULL;
|
||||
GArray *editor_x_keymap = NULL;
|
||||
#endif
|
||||
GArray *viewer_keymap = NULL;
|
||||
GArray *viewer_hex_keymap = NULL;
|
||||
#ifdef USE_DIFF_VIEW
|
||||
GArray *diff_keymap = NULL;
|
||||
|
||||
const global_keymap_t *diff_map;
|
||||
#endif
|
||||
|
||||
const global_keymap_t *main_map;
|
||||
const global_keymap_t *main_x_map;
|
||||
const global_keymap_t *panel_map;
|
||||
const global_keymap_t *dialog_map;
|
||||
const global_keymap_t *input_map;
|
||||
const global_keymap_t *listbox_map;
|
||||
const global_keymap_t *tree_map;
|
||||
const global_keymap_t *help_map;
|
||||
const global_keymap_t *dialog_map;
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
const global_keymap_t *editor_map;
|
||||
const global_keymap_t *editor_x_map;
|
||||
#endif
|
||||
#ifdef USE_DIFF_VIEW
|
||||
const global_keymap_t *diff_map;
|
||||
#endif
|
||||
|
||||
/*** global variables ****************************************************************************/
|
||||
|
||||
/* midnight */
|
||||
const global_keymap_t default_main_map[] = {
|
||||
{KEY_F (1), CK_HelpCmd, "F1"},
|
||||
{KEY_F (2), CK_UserMenuCmd, "F2"},
|
||||
{KEY_F (3), CK_ViewCmd, "F3"},
|
||||
{KEY_F (4), CK_EditCmd, "F4"},
|
||||
{KEY_F (5), CK_CopyCmd, "F5"},
|
||||
{KEY_F (6), CK_RenameCmd, "F6"},
|
||||
{KEY_F (7), CK_MkdirCmd, "F7"},
|
||||
{KEY_F (8), CK_DeleteCmd, "F8"},
|
||||
{KEY_F (9), CK_MenuCmd, "F9"},
|
||||
{KEY_F (10), CK_QuitCmd, "F10"},
|
||||
{KEY_F (13), CK_ViewFileCmd, "S-F3"},
|
||||
{KEY_F (19), CK_MenuLastSelectedCmd, "S-F9"},
|
||||
{KEY_F (20), CK_QuietQuitCmd, "S-10"},
|
||||
{ALT ('h'), CK_HistoryCmd, "M-h"},
|
||||
{XCTRL ('@'), CK_SingleDirsizeCmd, "C-Space"},
|
||||
/* Copy useful information to the command line */
|
||||
{ALT ('a'), CK_CopyCurrentPathname, "M-a"},
|
||||
{ALT ('A'), CK_CopyOtherPathname, "M-A"},
|
||||
{ALT ('c'), CK_QuickCdCmd, "M-c"},
|
||||
/* To access the directory hotlist */
|
||||
{XCTRL ('\\'), CK_QuickChdirCmd, "C-\\"},
|
||||
/* Suspend */
|
||||
{XCTRL ('z'), CK_SuspendCmd, "C-z"},
|
||||
/* The filtered view command */
|
||||
{ALT ('!'), CK_FilteredViewCmd, "M-!"},
|
||||
/* Find file */
|
||||
{ALT ('?'), CK_FindCmd, "M-?"},
|
||||
/* Panel refresh */
|
||||
{XCTRL ('r'), CK_RereadCmd, "C-r"},
|
||||
/* Toggle listing between long, user defined and full formats */
|
||||
{ALT ('t'), CK_ToggleListingCmd, "M-t"},
|
||||
/* Swap panels */
|
||||
{XCTRL ('u'), CK_SwapCmd, "C-u"},
|
||||
/* View output */
|
||||
{XCTRL ('o'), CK_ShowCommandLine, "C-o"},
|
||||
{ALT ('.'), CK_ToggleShowHidden, "M-."},
|
||||
{ALT (','), CK_TogglePanelsSplit, "M-,"},
|
||||
{XCTRL ('x'), CK_StartExtMap1, "C-x"},
|
||||
/* Select/unselect group */
|
||||
{KEY_KP_ADD, CK_SelectCmd, "+"},
|
||||
{KEY_KP_SUBTRACT, CK_UnselectCmd, "-"},
|
||||
{ALT ('*'), CK_ReverseSelectionCmd, "*"},
|
||||
|
||||
{ALT ('`'), CK_DialogListCmd, "M-`"},
|
||||
{ALT ('}'), CK_DialogNextCmd, "M-}"},
|
||||
{ALT ('{'), CK_DialogPrevCmd, "M-{"},
|
||||
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
const global_keymap_t default_main_x_map[] = {
|
||||
{'d', CK_CompareDirsCmd, "d"},
|
||||
#ifdef USE_DIFF_VIEW
|
||||
{XCTRL ('d'), CK_DiffViewCmd, "C-d"},
|
||||
#endif /* USE_DIFF_VIEW */
|
||||
#ifdef ENABLE_VFS
|
||||
{'a', CK_ReselectVfs, "a"},
|
||||
#endif /* ENABLE_VFS */
|
||||
{'p', CK_CopyCurrentPathname, "p"},
|
||||
{XCTRL ('p'), CK_CopyOtherPathname, "C-p"},
|
||||
{'t', CK_CopyCurrentTagged, "t"},
|
||||
{XCTRL ('t'), CK_CopyOtherTagged, "C-t"},
|
||||
{'c', CK_ChmodCmd, "c"},
|
||||
{'o', CK_ChownCmd, "o"},
|
||||
{'r', CK_CopyCurrentReadlink, "r"},
|
||||
{XCTRL ('r'), CK_CopyOtherReadlink, "C-r"},
|
||||
{'l', CK_LinkCmd, "l"},
|
||||
{'s', CK_SymlinkCmd, "s"},
|
||||
{'v', CK_RelativeSymlinkCmd, "v"},
|
||||
{XCTRL ('s'), CK_EditSymlinkCmd, "C-s"},
|
||||
{'i', CK_InfoCmd, "i"},
|
||||
{'q', CK_QuickViewCmd, "q"},
|
||||
{'h', CK_AddHotlist, "h"},
|
||||
{'!', CK_ExternalPanelize, "!"},
|
||||
#ifdef WITH_BACKGROUND
|
||||
{'j', CK_JobsCmd, "j"},
|
||||
#endif /* WITH_BACKGROUND */
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* panel */
|
||||
const global_keymap_t default_panel_keymap[] = {
|
||||
{ALT ('o'), CK_PanelChdirOtherPanel, "M-o"},
|
||||
{ALT ('l'), CK_PanelChdirToReadlink, "M-l"},
|
||||
{KEY_F (15), CK_PanelCmdCopyLocal, "S-F5"},
|
||||
{KEY_F (18), CK_PanelCmdDeleteLocal, "S-F8"},
|
||||
{KEY_ENTER, CK_PanelCmdDoEnter, "Enter"},
|
||||
{'\n', CK_PanelCmdDoEnter, "Enter"},
|
||||
{KEY_F (14), CK_PanelCmdEditNew, "S-F4"},
|
||||
{KEY_F (16), CK_PanelCmdRenameLocal, "S-F6"},
|
||||
{ALT ('*'), CK_PanelCmdReverseSelection, "M-*"},
|
||||
{KEY_KP_ADD, CK_PanelCmdSelect, "M-+"},
|
||||
{KEY_KP_SUBTRACT, CK_PanelCmdUnselect, "M--"},
|
||||
{KEY_F (13), CK_PanelCmdViewSimple, "S-F3"},
|
||||
{KEY_M_CTRL | KEY_NPAGE, CK_PanelGotoChildDir, "C-PgDn"},
|
||||
{KEY_M_CTRL | KEY_PPAGE, CK_PanelGotoParentDir, "C-PgUp"},
|
||||
{ALT ('H'), CK_PanelDirectoryHistoryList, "M-H"},
|
||||
{ALT ('u'), CK_PanelDirectoryHistoryNext, "M-u"},
|
||||
{ALT ('y'), CK_PanelDirectoryHistoryPrev, "M-y"},
|
||||
{ALT ('j'), CK_PanelGotoBottomFile, "M-j"},
|
||||
{ALT ('r'), CK_PanelGotoMiddleFile, "M-r"},
|
||||
{ALT ('g'), CK_PanelGotoTopFile, "M-g"},
|
||||
{KEY_IC, CK_PanelMarkFile, "Insert"},
|
||||
{KEY_UP, CK_PanelMoveUp, "Up"},
|
||||
{KEY_DOWN, CK_PanelMoveDown, "Down"},
|
||||
{KEY_LEFT, CK_PanelMoveLeft, "Left"},
|
||||
{KEY_RIGHT, CK_PanelMoveRight, "Right"},
|
||||
{KEY_END, CK_PanelMoveEnd, "End"},
|
||||
{KEY_C1, CK_PanelMoveEnd, "C1"},
|
||||
{KEY_HOME, CK_PanelMoveHome, "Home"},
|
||||
{KEY_A1, CK_PanelMoveHome, "A1"},
|
||||
{KEY_NPAGE, CK_PanelNextPage, "PgDn"},
|
||||
{KEY_PPAGE, CK_PanelPrevPage, "PgUp"},
|
||||
{ALT ('e'), CK_PanelSetPanelEncoding, "M-e"},
|
||||
{XCTRL ('s'), CK_PanelStartSearch, "C-s"},
|
||||
{ALT ('s'), CK_PanelStartSearch, "M-s"},
|
||||
{ALT ('i'), CK_PanelSyncOtherPanel, "M-i"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* dialog */
|
||||
const global_keymap_t default_dialog_keymap[] = {
|
||||
{'\n', CK_DialogOK, "Enter"},
|
||||
{KEY_ENTER, CK_DialogOK, "Enter"},
|
||||
{ESC_CHAR, CK_DialogCancel, "Esc"},
|
||||
{XCTRL ('g'), CK_DialogCancel, "C-g"},
|
||||
{KEY_F (10), CK_DialogCancel, "F10"},
|
||||
{KEY_LEFT, CK_DialogPrevItem, "Left"},
|
||||
{KEY_UP, CK_DialogPrevItem, "Up"},
|
||||
{KEY_RIGHT, CK_DialogNextItem, "Right"},
|
||||
{KEY_DOWN, CK_DialogNextItem, "Down"},
|
||||
{KEY_F (1), CK_DialogHelp, "F1"},
|
||||
{XCTRL ('z'), CK_DialogSuspend, "C-z"},
|
||||
{XCTRL ('l'), CK_DialogRefresh, "C-l"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
const global_keymap_t default_input_keymap[] = {
|
||||
/* Motion */
|
||||
{XCTRL ('a'), CK_InputBol, "C-a"},
|
||||
{KEY_HOME, CK_InputBol, "Home"},
|
||||
{KEY_A1, CK_InputBol, "A1"},
|
||||
{ALT ('<'), CK_InputBol, "M-<"},
|
||||
{XCTRL ('e'), CK_InputEol, "C-e"},
|
||||
{KEY_END, CK_InputEol, "End"},
|
||||
{ALT ('>'), CK_InputEol, "M->"},
|
||||
{KEY_C1, CK_InputEol, "C1"},
|
||||
{KEY_LEFT, CK_InputMoveLeft, "Left"},
|
||||
{KEY_M_CTRL | KEY_LEFT, CK_InputWordLeft, "C-Left"},
|
||||
{KEY_RIGHT, CK_InputMoveRight, "Right"},
|
||||
{KEY_M_CTRL | KEY_RIGHT, CK_InputWordRight, "C-Right"},
|
||||
|
||||
{XCTRL ('b'), CK_InputBackwardChar, "C-b"},
|
||||
{ALT ('b'), CK_InputBackwardWord, "M-b"},
|
||||
{XCTRL ('f'), CK_InputForwardChar, "C-f"},
|
||||
{ALT ('f'), CK_InputForwardWord, "M-f"},
|
||||
|
||||
/* Editing */
|
||||
{KEY_BACKSPACE, CK_InputBackwardDelete, "BackSpace"},
|
||||
{KEY_BACKSPACE, CK_InputBackwardDelete, "C-h"},
|
||||
{KEY_DC, CK_InputDeleteChar, "Delete"},
|
||||
{KEY_DC, CK_InputDeleteChar, "C-d"},
|
||||
{ALT ('d'), CK_InputKillWord, "M-d"},
|
||||
{ALT (KEY_BACKSPACE), CK_InputBackwardKillWord, "M-BackSpace"},
|
||||
|
||||
/* Region manipulation */
|
||||
{XCTRL ('w'), CK_InputKillRegion, "C-w"},
|
||||
{ALT ('w'), CK_InputKillSave, "M-w"},
|
||||
{XCTRL ('y'), CK_InputYank, "C-y"},
|
||||
{XCTRL ('k'), CK_InputKillLine, "C-k"},
|
||||
|
||||
/* History */
|
||||
{ALT ('p'), CK_InputHistoryPrev, "M-p"},
|
||||
{ALT ('n'), CK_InputHistoryNext, "M-n"},
|
||||
{ALT ('h'), CK_InputHistoryShow, "M-h"},
|
||||
|
||||
/* Completion */
|
||||
{ALT ('\t'), CK_InputComplete, "M-tab"},
|
||||
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
const global_keymap_t default_listbox_keymap[] = {
|
||||
{KEY_UP, CK_ListboxMoveUp, "Up"},
|
||||
{XCTRL ('p'), CK_ListboxMoveUp, "C-p"},
|
||||
{KEY_DOWN, CK_ListboxMoveDown, "Down"},
|
||||
{XCTRL ('n'), CK_ListboxMoveDown, "C-n"},
|
||||
{KEY_HOME, CK_ListboxMoveHome, "Home"},
|
||||
{ALT ('<'), CK_ListboxMoveHome, "M-<"},
|
||||
{KEY_A1, CK_ListboxMoveHome, "A1"},
|
||||
{KEY_END, CK_ListboxMoveEnd, "End"},
|
||||
{ALT ('>'), CK_ListboxMoveEnd, "M->"},
|
||||
{KEY_C1, CK_ListboxMoveEnd, "C1"},
|
||||
{KEY_PPAGE, CK_ListboxMovePgUp, "PgUp"},
|
||||
{ALT ('v'), CK_ListboxMovePgUp, "M-v"},
|
||||
{KEY_NPAGE, CK_ListboxMovePgDn, "PgDn"},
|
||||
{XCTRL ('v'), CK_ListboxMovePgDn, "C-v"},
|
||||
{KEY_DC, CK_ListboxDeleteItem, "Delete"},
|
||||
{'d', CK_ListboxDeleteItem, "d"},
|
||||
{KEY_M_SHIFT | KEY_DC, CK_ListboxDeleteAll, "S-Delete"},
|
||||
{'D', CK_ListboxDeleteAll, "D"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* tree */
|
||||
const global_keymap_t default_tree_keymap[] = {
|
||||
{KEY_F (1), CK_TreeHelp, "F1"},
|
||||
{KEY_F (2), CK_TreeRescan, "F2"},
|
||||
{KEY_F (3), CK_TreeForget, "F3"},
|
||||
{KEY_F (4), CK_TreeToggleNav, "F4"},
|
||||
{KEY_F (5), CK_TreeCopy, "F5"},
|
||||
{KEY_F (6), CK_TreeMove, "F6"},
|
||||
#if 0
|
||||
{KEY_F (7), CK_TreeMake, "F7"},
|
||||
#endif
|
||||
{KEY_F (8), CK_TreeRemove, "F8"},
|
||||
{KEY_UP, CK_TreeMoveUp, "Up"},
|
||||
{XCTRL ('p'), CK_TreeMoveUp, "C-p"},
|
||||
{KEY_DOWN, CK_TreeMoveDown, "Down"},
|
||||
{XCTRL ('n'), CK_TreeMoveDown, "C-n"},
|
||||
{KEY_LEFT, CK_TreeMoveLeft, "Left"},
|
||||
{KEY_RIGHT, CK_TreeMoveRight, "Right"},
|
||||
{KEY_HOME, CK_TreeMoveHome, "Home"},
|
||||
{ALT ('<'), CK_TreeMoveHome, "M-<"},
|
||||
{KEY_A1, CK_TreeMoveHome, "A1"},
|
||||
{KEY_END, CK_TreeMoveEnd, "End"},
|
||||
{ALT ('>'), CK_TreeMoveEnd, "M->"},
|
||||
{KEY_C1, CK_TreeMoveEnd, "C1"},
|
||||
{KEY_PPAGE, CK_TreeMovePgUp, "PgUp"},
|
||||
{ALT ('v'), CK_TreeMovePgUp, "M-v"},
|
||||
{KEY_NPAGE, CK_TreeMovePgDn, "PnDn"},
|
||||
{XCTRL ('v'), CK_TreeMovePgDn, "C-v"},
|
||||
{'\n', CK_TreeOpen, "Enter"},
|
||||
{KEY_ENTER, CK_TreeOpen, "Enter"},
|
||||
{XCTRL ('r'), CK_TreeRescan, "C-r"},
|
||||
{XCTRL ('s'), CK_TreeStartSearch, "C-s"},
|
||||
{ALT ('s'), CK_TreeStartSearch, "M-s"},
|
||||
{KEY_DC, CK_TreeRemove, "Delete"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* help */
|
||||
const global_keymap_t default_help_keymap[] = {
|
||||
{KEY_F (1), CK_HelpHelp, "F1"},
|
||||
{KEY_F (2), CK_HelpIndex, "F2"},
|
||||
{KEY_F (3), CK_HelpBack, "F3"},
|
||||
{KEY_F (10), CK_HelpQuit, "F10"},
|
||||
{KEY_LEFT, CK_HelpBack, "Left"},
|
||||
{'l', CK_HelpBack, "l"},
|
||||
{KEY_DOWN, CK_HelpMoveDown, "Down"},
|
||||
{XCTRL ('n'), CK_HelpMoveDown, "C-n"},
|
||||
{KEY_UP, CK_HelpMoveUp, "Up"},
|
||||
{XCTRL ('p'), CK_HelpMoveUp, "C-p"},
|
||||
{KEY_NPAGE, CK_HelpMovePgDn, "PgDn"},
|
||||
{XCTRL ('v'), CK_HelpMovePgDn, "C-v"},
|
||||
{'f', CK_HelpMovePgDn, "f"},
|
||||
{' ', CK_HelpMovePgDn, "Space"},
|
||||
{KEY_PPAGE, CK_HelpMovePgUp, "PgUp"},
|
||||
{ALT ('v'), CK_HelpMovePgUp, "M-v"},
|
||||
{'b', CK_HelpMovePgUp, "b"},
|
||||
{KEY_BACKSPACE, CK_HelpMovePgUp, "BackSpace"},
|
||||
{'d', CK_HelpMoveHalfPgDn, "d"},
|
||||
{'u', CK_HelpMoveHalfPgUp, "u"},
|
||||
{KEY_HOME, CK_HelpMoveTop, "Home"},
|
||||
{KEY_M_CTRL | KEY_HOME, CK_HelpMoveTop, "C-Home"},
|
||||
{KEY_M_CTRL | KEY_PPAGE, CK_HelpMoveTop, "C-PgUp"},
|
||||
{KEY_A1, CK_HelpMoveTop, "A1"},
|
||||
{ALT ('<'), CK_HelpMoveTop, "M-<"},
|
||||
{'g', CK_HelpMoveTop, "g"},
|
||||
{KEY_END, CK_HelpMoveBottom, "End"},
|
||||
{KEY_M_CTRL | KEY_END, CK_HelpMoveBottom, "C-End"},
|
||||
{KEY_M_CTRL | KEY_NPAGE, CK_HelpMoveBottom, "C-PgDn"},
|
||||
{KEY_C1, CK_HelpMoveBottom, "C1"},
|
||||
{ALT ('>'), CK_HelpMoveBottom, "M->"},
|
||||
{'G', CK_HelpMoveBottom, "G"},
|
||||
{KEY_RIGHT, CK_HelpSelectLink, "Right"},
|
||||
{KEY_ENTER, CK_HelpSelectLink, "Enter"},
|
||||
{'\n', CK_HelpSelectLink, "Enter"},
|
||||
{'\t', CK_HelpNextLink, "Tab"},
|
||||
{ALT ('\t'), CK_HelpPrevLink, "M-Tab"},
|
||||
{'n', CK_HelpNextNode, "n"},
|
||||
{'p', CK_HelpPrevNode, "p"},
|
||||
{ESC_CHAR, CK_HelpQuit, "Esc"},
|
||||
{XCTRL ('g'), CK_HelpQuit, "C-g"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
/* editor/editkeys.c */
|
||||
const global_keymap_t default_editor_keymap[] = {
|
||||
{'\n', CK_Enter, "Enter"},
|
||||
{'\t', CK_Tab, "Tab"},
|
||||
|
||||
{KEY_F (1), CK_Help, "F1"},
|
||||
{KEY_F (2), CK_Save, "F2"},
|
||||
{KEY_F (3), CK_Mark, "F3"},
|
||||
{KEY_F (4), CK_Replace, "F4"},
|
||||
{KEY_F (5), CK_Copy, "F5"},
|
||||
{KEY_F (6), CK_Move, "F6"},
|
||||
{KEY_F (7), CK_Find, "F7"},
|
||||
{KEY_F (8), CK_Remove, "F8"},
|
||||
{KEY_F (9), CK_Menu, "F9"},
|
||||
{KEY_F (10), CK_Quit, "F10"},
|
||||
/* edit user menu */
|
||||
{KEY_F (11), CK_User_Menu, "S-F1"},
|
||||
{KEY_F (12), CK_Save_As, "S-F2"},
|
||||
{KEY_F (13), CK_Column_Mark, "S-F3"},
|
||||
{KEY_F (14), CK_Replace_Again, "S-F4"},
|
||||
{KEY_F (15), CK_Insert_File, "S-F5"},
|
||||
{KEY_F (17), CK_Find_Again, "S-F7"},
|
||||
/* C formatter */
|
||||
{KEY_F (19), CK_Pipe_Block (0), "S-F9"},
|
||||
|
||||
{ESC_CHAR, CK_Quit, "Esc"},
|
||||
{KEY_BACKSPACE, CK_BackSpace, "BackSpace"},
|
||||
{KEY_BACKSPACE, CK_BackSpace, "C-h"},
|
||||
{KEY_DC, CK_Delete, "Delete"},
|
||||
{KEY_DC, CK_Delete, "C-d"},
|
||||
{KEY_DOWN, CK_Down, "Down"},
|
||||
{KEY_END, CK_End, "End"},
|
||||
{KEY_HOME, CK_Home, "Home"},
|
||||
{KEY_IC, CK_Toggle_Insert, "Insert"},
|
||||
{KEY_LEFT, CK_Left, "Left"},
|
||||
{KEY_NPAGE, CK_Page_Down, "PgDn"},
|
||||
{KEY_PPAGE, CK_Page_Up, "PgUp"},
|
||||
{KEY_RIGHT, CK_Right, "Right"},
|
||||
{KEY_UP, CK_Up, "Up"},
|
||||
|
||||
/* Ctrl */
|
||||
{KEY_M_CTRL | (KEY_F (2)), CK_Save_As, "C-F2"},
|
||||
{KEY_M_CTRL | (KEY_F (4)), CK_Replace_Again, "C-F4"},
|
||||
{KEY_M_CTRL | (KEY_F (7)), CK_Find_Again, "C-F7"},
|
||||
{KEY_M_CTRL | KEY_BACKSPACE, CK_Undo, "C-BackSpace"},
|
||||
{KEY_M_CTRL | KEY_NPAGE, CK_End_Of_Text, "C-PgDn"},
|
||||
{KEY_M_CTRL | KEY_PPAGE, CK_Beginning_Of_Text, "C-PgUp"},
|
||||
{KEY_M_CTRL | KEY_HOME, CK_Beginning_Of_Text, "C-Home"},
|
||||
{KEY_M_CTRL | KEY_END, CK_End_Of_Text, "C-End"},
|
||||
{KEY_M_CTRL | KEY_UP, CK_Scroll_Up, "C-Up"},
|
||||
{KEY_M_CTRL | KEY_DOWN, CK_Scroll_Down, "C-Down"},
|
||||
{KEY_M_CTRL | KEY_LEFT, CK_Word_Left, "C-Left"},
|
||||
{XCTRL ('z'), CK_Word_Left, "C-z"},
|
||||
{KEY_M_CTRL | KEY_RIGHT, CK_Word_Right, "C-Right"},
|
||||
{XCTRL ('x'), CK_Word_Right, "C-x"},
|
||||
{KEY_M_CTRL | KEY_IC, CK_XStore, "C-Insert"},
|
||||
{KEY_M_CTRL | KEY_DC, CK_Remove, "C-Delete"},
|
||||
|
||||
{XCTRL ('n'), CK_New, "C-n"},
|
||||
{XCTRL ('k'), CK_Delete_To_Line_End, "C-k"},
|
||||
{XCTRL ('l'), CK_Refresh, "C-l"},
|
||||
{XCTRL ('o'), CK_Shell, "C-o"},
|
||||
{XCTRL ('s'), CK_Toggle_Syntax, "C-s"},
|
||||
{XCTRL ('u'), CK_Undo, "C-u"},
|
||||
{ALT ('r'), CK_Redo, "M-r"},
|
||||
{ALT ('e'), CK_SelectCodepage, "M-e"},
|
||||
{XCTRL ('q'), CK_Insert_Literal, "C-q"},
|
||||
{XCTRL ('r'), CK_Begin_End_Macro, "C-r"},
|
||||
{XCTRL ('r'), CK_Begin_Record_Macro, "C-r"},
|
||||
{XCTRL ('r'), CK_End_Record_Macro, "C-r"},
|
||||
{XCTRL ('f'), CK_Save_Block, "C-f"},
|
||||
/* Spell check */
|
||||
{XCTRL ('p'), CK_Pipe_Block (1), "C-p"},
|
||||
{XCTRL ('y'), CK_Delete_Line, "C-y"},
|
||||
|
||||
/* Shift */
|
||||
{KEY_M_SHIFT | KEY_NPAGE, CK_Page_Down_Highlight, "S-PgDn"},
|
||||
{KEY_M_SHIFT | KEY_PPAGE, CK_Page_Up_Highlight, "S-PgUp"},
|
||||
{KEY_M_SHIFT | KEY_LEFT, CK_Left_Highlight, "S-Left"},
|
||||
{KEY_M_SHIFT | KEY_RIGHT, CK_Right_Highlight, "S-Right"},
|
||||
{KEY_M_SHIFT | KEY_UP, CK_Up_Highlight, "S-Up"},
|
||||
{KEY_M_SHIFT | KEY_DOWN, CK_Down_Highlight, "S-Down"},
|
||||
{KEY_M_SHIFT | KEY_HOME, CK_Home_Highlight, "S-Home"},
|
||||
{KEY_M_SHIFT | KEY_END, CK_End_Highlight, "S-End"},
|
||||
{KEY_M_SHIFT | KEY_IC, CK_XPaste, "S-Insert"},
|
||||
{KEY_M_SHIFT | KEY_DC, CK_XCut, "S-Delete"},
|
||||
/* useful for pasting multiline text */
|
||||
{KEY_M_SHIFT | '\n', CK_Return, "S-Enter"},
|
||||
|
||||
/* Ctrl + Shift */
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_NPAGE, CK_End_Of_Text_Highlight, "C-S-PgDn"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_PPAGE, CK_Beginning_Of_Text_Highlight, "C-S-PgUp"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT, CK_Word_Left_Highlight, "C-S-Left"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, CK_Word_Right_Highlight, "C-S-Right"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_UP, CK_Scroll_Up_Highlight, "C-S-Up"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_DOWN, CK_Scroll_Down_Highlight, "C-S-Down"},
|
||||
|
||||
/* Alt */
|
||||
{KEY_M_ALT | KEY_NPAGE, CK_Page_Down_Alt_Highlight, "M-PgDn"},
|
||||
{KEY_M_ALT | KEY_PPAGE, CK_Page_Up_Alt_Highlight, "M-PgUp"},
|
||||
{KEY_M_ALT | KEY_LEFT, CK_Left_Alt_Highlight, "M-Left"},
|
||||
{KEY_M_ALT | KEY_RIGHT, CK_Right_Alt_Highlight, "M-Right"},
|
||||
{KEY_M_ALT | KEY_UP, CK_Up_Alt_Highlight, "M-Up"},
|
||||
{KEY_M_ALT | KEY_DOWN, CK_Down_Alt_Highlight, "M-Down"},
|
||||
{KEY_M_ALT | KEY_HOME, CK_Home_Highlight, "M-Home"},
|
||||
{KEY_M_ALT | KEY_END, CK_End_Alt_Highlight, "M-End"},
|
||||
|
||||
{ALT ('\n'), CK_Find_Definition, "M-Enter"},
|
||||
{ALT ('\t'), CK_Complete_Word, "M-Tab"},
|
||||
{ALT ('l'), CK_Goto, "M-l"},
|
||||
{ALT ('L'), CK_Goto, "M-L"},
|
||||
{ALT ('p'), CK_Paragraph_Format, "M-p"},
|
||||
{ALT ('t'), CK_Sort, "M-t"},
|
||||
{ALT ('u'), CK_ExtCmd, "M-u"},
|
||||
{ALT ('<'), CK_Beginning_Of_Text, "M-<"},
|
||||
{ALT ('>'), CK_End_Of_Text, "M->"},
|
||||
{ALT ('-'), CK_Load_Prev_File, "M--"},
|
||||
{ALT ('+'), CK_Load_Next_File, "M-+"},
|
||||
{ALT ('d'), CK_Delete_Word_Right, "M-d"},
|
||||
{ALT (KEY_BACKSPACE), CK_Delete_Word_Left, "M-BackSpace"},
|
||||
{ALT ('n'), CK_Toggle_Line_State, "M-n"},
|
||||
{ALT ('_'), CK_Toggle_Tab_TWS, "M-_"},
|
||||
{ALT ('k'), CK_Toggle_Bookmark, "M-k"},
|
||||
{ALT ('i'), CK_Prev_Bookmark, "M-i"},
|
||||
{ALT ('j'), CK_Next_Bookmark, "M-j"},
|
||||
{ALT ('o'), CK_Flush_Bookmarks, "M-o"},
|
||||
{ALT ('b'), CK_Match_Bracket, "M-b"},
|
||||
{ALT ('m'), CK_Mail, "M-m"},
|
||||
|
||||
{XCTRL ('x'), CK_Ext_Mode, "C-x"},
|
||||
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* emacs keyboard layout emulation */
|
||||
const global_keymap_t default_editor_x_keymap[] = {
|
||||
{'k', CK_New, "k"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
/* viewer/actions_cmd.c */
|
||||
const global_keymap_t default_viewer_keymap[] = {
|
||||
{KEY_F (1), CK_ViewHelp, "F1"},
|
||||
|
@ -222,442 +653,10 @@ const global_keymap_t default_viewer_hex_keymap[] = {
|
|||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
/* ../edit/editkeys.c */
|
||||
const global_keymap_t default_editor_keymap[] = {
|
||||
{'\n', CK_Enter, "Enter"},
|
||||
{'\t', CK_Tab, "Tab"},
|
||||
|
||||
{KEY_F (1), CK_Help, "F1"},
|
||||
{KEY_F (2), CK_Save, "F2"},
|
||||
{KEY_F (3), CK_Mark, "F3"},
|
||||
{KEY_F (4), CK_Replace, "F4"},
|
||||
{KEY_F (5), CK_Copy, "F5"},
|
||||
{KEY_F (6), CK_Move, "F6"},
|
||||
{KEY_F (7), CK_Find, "F7"},
|
||||
{KEY_F (8), CK_Remove, "F8"},
|
||||
{KEY_F (9), CK_Menu, "F9"},
|
||||
{KEY_F (10), CK_Quit, "F10"},
|
||||
/* edit user menu */
|
||||
{KEY_F (11), CK_User_Menu, "S-F1"},
|
||||
{KEY_F (12), CK_Save_As, "S-F2"},
|
||||
{KEY_F (13), CK_Column_Mark, "S-F3"},
|
||||
{KEY_F (14), CK_Replace_Again, "S-F4"},
|
||||
{KEY_F (15), CK_Insert_File, "S-F5"},
|
||||
{KEY_F (17), CK_Find_Again, "S-F7"},
|
||||
/* C formatter */
|
||||
{KEY_F (19), CK_Pipe_Block (0), "S-F9"},
|
||||
|
||||
{ESC_CHAR, CK_Quit, "Esc"},
|
||||
{KEY_BACKSPACE, CK_BackSpace, "BackSpace"},
|
||||
{KEY_BACKSPACE, CK_BackSpace, "C-h"},
|
||||
{KEY_DC, CK_Delete, "Delete"},
|
||||
{KEY_DC, CK_Delete, "C-d"},
|
||||
{KEY_DOWN, CK_Down, "Down"},
|
||||
{KEY_END, CK_End, "End"},
|
||||
{KEY_HOME, CK_Home, "Home"},
|
||||
{KEY_IC, CK_Toggle_Insert, "Insert"},
|
||||
{KEY_LEFT, CK_Left, "Left"},
|
||||
{KEY_NPAGE, CK_Page_Down, "PgDn"},
|
||||
{KEY_PPAGE, CK_Page_Up, "PgUp"},
|
||||
{KEY_RIGHT, CK_Right, "Right"},
|
||||
{KEY_UP, CK_Up, "Up"},
|
||||
|
||||
/* Ctrl */
|
||||
{KEY_M_CTRL | (KEY_F (2)), CK_Save_As, "C-F2"},
|
||||
{KEY_M_CTRL | (KEY_F (4)), CK_Replace_Again, "C-F4"},
|
||||
{KEY_M_CTRL | (KEY_F (7)), CK_Find_Again, "C-F7"},
|
||||
{KEY_M_CTRL | KEY_BACKSPACE, CK_Undo, "C-BackSpace"},
|
||||
{KEY_M_CTRL | KEY_NPAGE, CK_End_Of_Text, "C-PgDn"},
|
||||
{KEY_M_CTRL | KEY_PPAGE, CK_Beginning_Of_Text, "C-PgUp"},
|
||||
{KEY_M_CTRL | KEY_HOME, CK_Beginning_Of_Text, "C-Home"},
|
||||
{KEY_M_CTRL | KEY_END, CK_End_Of_Text, "C-End"},
|
||||
{KEY_M_CTRL | KEY_UP, CK_Scroll_Up, "C-Up"},
|
||||
{KEY_M_CTRL | KEY_DOWN, CK_Scroll_Down, "C-Down"},
|
||||
{KEY_M_CTRL | KEY_LEFT, CK_Word_Left, "C-Left"},
|
||||
{XCTRL ('z'), CK_Word_Left, "C-z"},
|
||||
{KEY_M_CTRL | KEY_RIGHT, CK_Word_Right, "C-Right"},
|
||||
{XCTRL ('x'), CK_Word_Right, "C-x"},
|
||||
{KEY_M_CTRL | KEY_IC, CK_XStore, "C-Insert"},
|
||||
{KEY_M_CTRL | KEY_DC, CK_Remove, "C-Delete"},
|
||||
|
||||
{XCTRL ('n'), CK_New, "C-n"},
|
||||
{XCTRL ('k'), CK_Delete_To_Line_End, "C-k"},
|
||||
{XCTRL ('l'), CK_Refresh, "C-l"},
|
||||
{XCTRL ('o'), CK_Shell, "C-o"},
|
||||
{XCTRL ('s'), CK_Toggle_Syntax, "C-s"},
|
||||
{XCTRL ('u'), CK_Undo, "C-u"},
|
||||
{ALT ('r'), CK_Redo, "M-r"},
|
||||
{ALT ('e'), CK_SelectCodepage, "M-e"},
|
||||
{XCTRL ('q'), CK_Insert_Literal, "C-q"},
|
||||
{XCTRL ('r'), CK_Begin_End_Macro, "C-r"},
|
||||
{XCTRL ('r'), CK_Begin_Record_Macro, "C-r"},
|
||||
{XCTRL ('r'), CK_End_Record_Macro, "C-r"},
|
||||
{XCTRL ('f'), CK_Save_Block, "C-f"},
|
||||
/* Spell check */
|
||||
{XCTRL ('p'), CK_Pipe_Block (1), "C-p"},
|
||||
{XCTRL ('y'), CK_Delete_Line, "C-y"},
|
||||
|
||||
/* Shift */
|
||||
{KEY_M_SHIFT | KEY_NPAGE, CK_Page_Down_Highlight, "S-PgDn"},
|
||||
{KEY_M_SHIFT | KEY_PPAGE, CK_Page_Up_Highlight, "S-PgUp"},
|
||||
{KEY_M_SHIFT | KEY_LEFT, CK_Left_Highlight, "S-Left"},
|
||||
{KEY_M_SHIFT | KEY_RIGHT, CK_Right_Highlight, "S-Right"},
|
||||
{KEY_M_SHIFT | KEY_UP, CK_Up_Highlight, "S-Up"},
|
||||
{KEY_M_SHIFT | KEY_DOWN, CK_Down_Highlight, "S-Down"},
|
||||
{KEY_M_SHIFT | KEY_HOME, CK_Home_Highlight, "S-Home"},
|
||||
{KEY_M_SHIFT | KEY_END, CK_End_Highlight, "S-End"},
|
||||
{KEY_M_SHIFT | KEY_IC, CK_XPaste, "S-Insert"},
|
||||
{KEY_M_SHIFT | KEY_DC, CK_XCut, "S-Delete"},
|
||||
/* useful for pasting multiline text */
|
||||
{KEY_M_SHIFT | '\n', CK_Return, "S-Enter"},
|
||||
|
||||
/* Ctrl + Shift */
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_NPAGE, CK_End_Of_Text_Highlight, "C-S-PgDn"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_PPAGE, CK_Beginning_Of_Text_Highlight, "C-S-PgUp"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_LEFT, CK_Word_Left_Highlight, "C-S-Left"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_RIGHT, CK_Word_Right_Highlight, "C-S-Right"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_UP, CK_Scroll_Up_Highlight, "C-S-Up"},
|
||||
{KEY_M_SHIFT | KEY_M_CTRL | KEY_DOWN, CK_Scroll_Down_Highlight, "C-S-Down"},
|
||||
|
||||
/* Alt */
|
||||
{KEY_M_ALT | KEY_NPAGE, CK_Page_Down_Alt_Highlight, "M-PgDn"},
|
||||
{KEY_M_ALT | KEY_PPAGE, CK_Page_Up_Alt_Highlight, "M-PgUp"},
|
||||
{KEY_M_ALT | KEY_LEFT, CK_Left_Alt_Highlight, "M-Left"},
|
||||
{KEY_M_ALT | KEY_RIGHT, CK_Right_Alt_Highlight, "M-Right"},
|
||||
{KEY_M_ALT | KEY_UP, CK_Up_Alt_Highlight, "M-Up"},
|
||||
{KEY_M_ALT | KEY_DOWN, CK_Down_Alt_Highlight, "M-Down"},
|
||||
{KEY_M_ALT | KEY_HOME, CK_Home_Highlight, "M-Home"},
|
||||
{KEY_M_ALT | KEY_END, CK_End_Alt_Highlight, "M-End"},
|
||||
|
||||
{ALT ('\n'), CK_Find_Definition, "M-Enter"},
|
||||
{ALT ('\t'), CK_Complete_Word, "M-Tab"},
|
||||
{ALT ('l'), CK_Goto, "M-l"},
|
||||
{ALT ('L'), CK_Goto, "M-L"},
|
||||
{ALT ('p'), CK_Paragraph_Format, "M-p"},
|
||||
{ALT ('t'), CK_Sort, "M-t"},
|
||||
{ALT ('u'), CK_ExtCmd, "M-u"},
|
||||
{ALT ('<'), CK_Beginning_Of_Text, "M-<"},
|
||||
{ALT ('>'), CK_End_Of_Text, "M->"},
|
||||
{ALT ('-'), CK_Load_Prev_File, "M--"},
|
||||
{ALT ('+'), CK_Load_Next_File, "M-+"},
|
||||
{ALT ('d'), CK_Delete_Word_Right, "M-d"},
|
||||
{ALT (KEY_BACKSPACE), CK_Delete_Word_Left, "M-BackSpace"},
|
||||
{ALT ('n'), CK_Toggle_Line_State, "M-n"},
|
||||
{ALT ('_'), CK_Toggle_Tab_TWS, "M-_"},
|
||||
{ALT ('k'), CK_Toggle_Bookmark, "M-k"},
|
||||
{ALT ('i'), CK_Prev_Bookmark, "M-i"},
|
||||
{ALT ('j'), CK_Next_Bookmark, "M-j"},
|
||||
{ALT ('o'), CK_Flush_Bookmarks, "M-o"},
|
||||
{ALT ('b'), CK_Match_Bracket, "M-b"},
|
||||
{ALT ('m'), CK_Mail, "M-m"},
|
||||
|
||||
{XCTRL ('x'), CK_Ext_Mode, "C-x"},
|
||||
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* emacs keyboard layout emulation */
|
||||
const global_keymap_t default_editor_x_keymap[] = {
|
||||
{'k', CK_New, "k"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
#endif /* USE_INTERNAL_EDIT */
|
||||
|
||||
/* dialog */
|
||||
const global_keymap_t default_dialog_keymap[] = {
|
||||
{'\n', CK_DialogOK, "Enter"},
|
||||
{KEY_ENTER, CK_DialogOK, "Enter"},
|
||||
{ESC_CHAR, CK_DialogCancel, "Esc"},
|
||||
{XCTRL ('g'), CK_DialogCancel, "C-g"},
|
||||
{KEY_F (10), CK_DialogCancel, "F10"},
|
||||
{KEY_LEFT, CK_DialogPrevItem, "Left"},
|
||||
{KEY_UP, CK_DialogPrevItem, "Up"},
|
||||
{KEY_RIGHT, CK_DialogNextItem, "Right"},
|
||||
{KEY_DOWN, CK_DialogNextItem, "Down"},
|
||||
{KEY_F (1), CK_DialogHelp, "F1"},
|
||||
{XCTRL ('z'), CK_DialogSuspend, "C-z"},
|
||||
{XCTRL ('l'), CK_DialogRefresh, "C-l"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* tree */
|
||||
const global_keymap_t default_tree_keymap[] = {
|
||||
{KEY_F (1), CK_TreeHelp, "F1"},
|
||||
{KEY_F (2), CK_TreeRescan, "F2"},
|
||||
{KEY_F (3), CK_TreeForget, "F3"},
|
||||
{KEY_F (4), CK_TreeToggleNav, "F4"},
|
||||
{KEY_F (5), CK_TreeCopy, "F5"},
|
||||
{KEY_F (6), CK_TreeMove, "F6"},
|
||||
#if 0
|
||||
{KEY_F (7), CK_TreeMake, "F7"},
|
||||
#endif
|
||||
{KEY_F (8), CK_TreeRemove, "F8"},
|
||||
{KEY_UP, CK_TreeMoveUp, "Up"},
|
||||
{XCTRL ('p'), CK_TreeMoveUp, "C-p"},
|
||||
{KEY_DOWN, CK_TreeMoveDown, "Down"},
|
||||
{XCTRL ('n'), CK_TreeMoveDown, "C-n"},
|
||||
{KEY_LEFT, CK_TreeMoveLeft, "Left"},
|
||||
{KEY_RIGHT, CK_TreeMoveRight, "Right"},
|
||||
{KEY_HOME, CK_TreeMoveHome, "Home"},
|
||||
{ALT ('<'), CK_TreeMoveHome, "M-<"},
|
||||
{KEY_A1, CK_TreeMoveHome, "A1"},
|
||||
{KEY_END, CK_TreeMoveEnd, "End"},
|
||||
{ALT ('>'), CK_TreeMoveEnd, "M->"},
|
||||
{KEY_C1, CK_TreeMoveEnd, "C1"},
|
||||
{KEY_PPAGE, CK_TreeMovePgUp, "PgUp"},
|
||||
{ALT ('v'), CK_TreeMovePgUp, "M-v"},
|
||||
{KEY_NPAGE, CK_TreeMovePgDn, "PnDn"},
|
||||
{XCTRL ('v'), CK_TreeMovePgDn, "C-v"},
|
||||
{'\n', CK_TreeOpen, "Enter"},
|
||||
{KEY_ENTER, CK_TreeOpen, "Enter"},
|
||||
{XCTRL ('r'), CK_TreeRescan, "C-r"},
|
||||
{XCTRL ('s'), CK_TreeStartSearch, "C-s"},
|
||||
{ALT ('s'), CK_TreeStartSearch, "M-s"},
|
||||
{KEY_DC, CK_TreeRemove, "Delete"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* help */
|
||||
const global_keymap_t default_help_keymap[] = {
|
||||
{KEY_F (1), CK_HelpHelp, "F1"},
|
||||
{KEY_F (2), CK_HelpIndex, "F2"},
|
||||
{KEY_F (3), CK_HelpBack, "F3"},
|
||||
{KEY_F (10), CK_HelpQuit, "F10"},
|
||||
{KEY_LEFT, CK_HelpBack, "Left"},
|
||||
{'l', CK_HelpBack, "l"},
|
||||
{KEY_DOWN, CK_HelpMoveDown, "Down"},
|
||||
{XCTRL ('n'), CK_HelpMoveDown, "C-n"},
|
||||
{KEY_UP, CK_HelpMoveUp, "Up"},
|
||||
{XCTRL ('p'), CK_HelpMoveUp, "C-p"},
|
||||
{KEY_NPAGE, CK_HelpMovePgDn, "PgDn"},
|
||||
{XCTRL ('v'), CK_HelpMovePgDn, "C-v"},
|
||||
{'f', CK_HelpMovePgDn, "f"},
|
||||
{' ', CK_HelpMovePgDn, "Space"},
|
||||
{KEY_PPAGE, CK_HelpMovePgUp, "PgUp"},
|
||||
{ALT ('v'), CK_HelpMovePgUp, "M-v"},
|
||||
{'b', CK_HelpMovePgUp, "b"},
|
||||
{KEY_BACKSPACE, CK_HelpMovePgUp, "BackSpace"},
|
||||
{'d', CK_HelpMoveHalfPgDn, "d"},
|
||||
{'u', CK_HelpMoveHalfPgUp, "u"},
|
||||
{KEY_HOME, CK_HelpMoveTop, "Home"},
|
||||
{KEY_M_CTRL | KEY_HOME, CK_HelpMoveTop, "C-Home"},
|
||||
{KEY_M_CTRL | KEY_PPAGE, CK_HelpMoveTop, "C-PgUp"},
|
||||
{KEY_A1, CK_HelpMoveTop, "A1"},
|
||||
{ALT ('<'), CK_HelpMoveTop, "M-<"},
|
||||
{'g', CK_HelpMoveTop, "g"},
|
||||
{KEY_END, CK_HelpMoveBottom, "End"},
|
||||
{KEY_M_CTRL | KEY_END, CK_HelpMoveBottom, "C-End"},
|
||||
{KEY_M_CTRL | KEY_NPAGE, CK_HelpMoveBottom, "C-PgDn"},
|
||||
{KEY_C1, CK_HelpMoveBottom, "C1"},
|
||||
{ALT ('>'), CK_HelpMoveBottom, "M->"},
|
||||
{'G', CK_HelpMoveBottom, "G"},
|
||||
{KEY_RIGHT, CK_HelpSelectLink, "Right"},
|
||||
{KEY_ENTER, CK_HelpSelectLink, "Enter"},
|
||||
{'\n', CK_HelpSelectLink, "Enter"},
|
||||
{'\t', CK_HelpNextLink, "Tab"},
|
||||
{ALT ('\t'), CK_HelpPrevLink, "M-Tab"},
|
||||
{'n', CK_HelpNextNode, "n"},
|
||||
{'p', CK_HelpPrevNode, "p"},
|
||||
{ESC_CHAR, CK_HelpQuit, "Esc"},
|
||||
{XCTRL ('g'), CK_HelpQuit, "C-g"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* panel */
|
||||
const global_keymap_t default_panel_keymap[] = {
|
||||
{ALT ('o'), CK_PanelChdirOtherPanel, "M-o"},
|
||||
{ALT ('l'), CK_PanelChdirToReadlink, "M-l"},
|
||||
{KEY_F (15), CK_PanelCmdCopyLocal, "S-F5"},
|
||||
{KEY_F (18), CK_PanelCmdDeleteLocal, "S-F8"},
|
||||
{KEY_ENTER, CK_PanelCmdDoEnter, "Enter"},
|
||||
{'\n', CK_PanelCmdDoEnter, "Enter"},
|
||||
{KEY_F (14), CK_PanelCmdEditNew, "S-F4"},
|
||||
{KEY_F (16), CK_PanelCmdRenameLocal, "S-F6"},
|
||||
{ALT ('*'), CK_PanelCmdReverseSelection, "M-*"},
|
||||
{KEY_KP_ADD, CK_PanelCmdSelect, "M-+"},
|
||||
{KEY_KP_SUBTRACT, CK_PanelCmdUnselect, "M--"},
|
||||
{KEY_F (13), CK_PanelCmdViewSimple, "S-F3"},
|
||||
{KEY_M_CTRL | KEY_NPAGE, CK_PanelGotoChildDir, "C-PgDn"},
|
||||
{KEY_M_CTRL | KEY_PPAGE, CK_PanelGotoParentDir, "C-PgUp"},
|
||||
{ALT ('H'), CK_PanelDirectoryHistoryList, "M-H"},
|
||||
{ALT ('u'), CK_PanelDirectoryHistoryNext, "M-u"},
|
||||
{ALT ('y'), CK_PanelDirectoryHistoryPrev, "M-y"},
|
||||
{ALT ('j'), CK_PanelGotoBottomFile, "M-j"},
|
||||
{ALT ('r'), CK_PanelGotoMiddleFile, "M-r"},
|
||||
{ALT ('g'), CK_PanelGotoTopFile, "M-g"},
|
||||
{KEY_IC, CK_PanelMarkFile, "Insert"},
|
||||
{KEY_UP, CK_PanelMoveUp, "Up"},
|
||||
{KEY_DOWN, CK_PanelMoveDown, "Down"},
|
||||
{KEY_LEFT, CK_PanelMoveLeft, "Left"},
|
||||
{KEY_RIGHT, CK_PanelMoveRight, "Right"},
|
||||
{KEY_END, CK_PanelMoveEnd, "End"},
|
||||
{KEY_C1, CK_PanelMoveEnd, "C1"},
|
||||
{KEY_HOME, CK_PanelMoveHome, "Home"},
|
||||
{KEY_A1, CK_PanelMoveHome, "A1"},
|
||||
{KEY_NPAGE, CK_PanelNextPage, "PgDn"},
|
||||
{KEY_PPAGE, CK_PanelPrevPage, "PgUp"},
|
||||
{ALT ('e'), CK_PanelSetPanelEncoding, "M-e"},
|
||||
{XCTRL ('s'), CK_PanelStartSearch, "C-s"},
|
||||
{ALT ('s'), CK_PanelStartSearch, "M-s"},
|
||||
{ALT ('i'), CK_PanelSyncOtherPanel, "M-i"},
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
/* main.c */
|
||||
const global_keymap_t default_main_map[] = {
|
||||
{KEY_F (1), CK_HelpCmd, "F1"},
|
||||
{KEY_F (2), CK_UserMenuCmd, "F2"},
|
||||
{KEY_F (3), CK_ViewCmd, "F3"},
|
||||
{KEY_F (4), CK_EditCmd, "F4"},
|
||||
{KEY_F (5), CK_CopyCmd, "F5"},
|
||||
{KEY_F (6), CK_RenameCmd, "F6"},
|
||||
{KEY_F (7), CK_MkdirCmd, "F7"},
|
||||
{KEY_F (8), CK_DeleteCmd, "F8"},
|
||||
{KEY_F (9), CK_MenuCmd, "F9"},
|
||||
{KEY_F (10), CK_QuitCmd, "F10"},
|
||||
{KEY_F (13), CK_ViewFileCmd, "S-F3"},
|
||||
{KEY_F (19), CK_MenuLastSelectedCmd, "S-F9"},
|
||||
{KEY_F (20), CK_QuietQuitCmd, "S-10"},
|
||||
{ALT ('h'), CK_HistoryCmd, "M-h"},
|
||||
{XCTRL ('@'), CK_SingleDirsizeCmd, "C-Space"},
|
||||
/* Copy useful information to the command line */
|
||||
{ALT ('a'), CK_CopyCurrentPathname, "M-a"},
|
||||
{ALT ('A'), CK_CopyOtherPathname, "M-A"},
|
||||
{ALT ('c'), CK_QuickCdCmd, "M-c"},
|
||||
/* To access the directory hotlist */
|
||||
{XCTRL ('\\'), CK_QuickChdirCmd, "C-\\"},
|
||||
/* Suspend */
|
||||
{XCTRL ('z'), CK_SuspendCmd, "C-z"},
|
||||
/* The filtered view command */
|
||||
{ALT ('!'), CK_FilteredViewCmd, "M-!"},
|
||||
/* Find file */
|
||||
{ALT ('?'), CK_FindCmd, "M-?"},
|
||||
/* Panel refresh */
|
||||
{XCTRL ('r'), CK_RereadCmd, "C-r"},
|
||||
/* Toggle listing between long, user defined and full formats */
|
||||
{ALT ('t'), CK_ToggleListingCmd, "M-t"},
|
||||
/* Swap panels */
|
||||
{XCTRL ('u'), CK_SwapCmd, "C-u"},
|
||||
/* View output */
|
||||
{XCTRL ('o'), CK_ShowCommandLine, "C-o"},
|
||||
{ALT ('.'), CK_ToggleShowHidden, "M-."},
|
||||
{ALT (','), CK_TogglePanelsSplit, "M-,"},
|
||||
{XCTRL ('x'), CK_StartExtMap1, "C-x"},
|
||||
/* Select/unselect group */
|
||||
{KEY_KP_ADD, CK_SelectCmd, "+"},
|
||||
{KEY_KP_SUBTRACT, CK_UnselectCmd, "-"},
|
||||
{ALT ('*'), CK_ReverseSelectionCmd, "*"},
|
||||
|
||||
{ALT ('`'), CK_DialogListCmd, "M-`"},
|
||||
{ALT ('}'), CK_DialogNextCmd, "M-}"},
|
||||
{ALT ('{'), CK_DialogPrevCmd, "M-{"},
|
||||
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
const global_keymap_t default_main_x_map[] = {
|
||||
{'d', CK_CompareDirsCmd, "d"},
|
||||
#ifdef USE_DIFF_VIEW
|
||||
{XCTRL ('d'), CK_DiffViewCmd, "C-d"},
|
||||
#endif /* USE_DIFF_VIEW */
|
||||
#ifdef ENABLE_VFS
|
||||
{'a', CK_ReselectVfs, "a"},
|
||||
#endif /* ENABLE_VFS */
|
||||
{'p', CK_CopyCurrentPathname, "p"},
|
||||
{XCTRL ('p'), CK_CopyOtherPathname, "C-p"},
|
||||
{'t', CK_CopyCurrentTagged, "t"},
|
||||
{XCTRL ('t'), CK_CopyOtherTagged, "C-t"},
|
||||
{'c', CK_ChmodCmd, "c"},
|
||||
{'o', CK_ChownCmd, "o"},
|
||||
{'r', CK_CopyCurrentReadlink, "r"},
|
||||
{XCTRL ('r'), CK_CopyOtherReadlink, "C-r"},
|
||||
{'l', CK_LinkCmd, "l"},
|
||||
{'s', CK_SymlinkCmd, "s"},
|
||||
{'v', CK_RelativeSymlinkCmd, "v"},
|
||||
{XCTRL ('s'), CK_EditSymlinkCmd, "C-s"},
|
||||
{'i', CK_InfoCmd, "i"},
|
||||
{'q', CK_QuickViewCmd, "q"},
|
||||
{'h', CK_AddHotlist, "h"},
|
||||
{'!', CK_ExternalPanelize, "!"},
|
||||
#ifdef WITH_BACKGROUND
|
||||
{'j', CK_JobsCmd, "j"},
|
||||
#endif /* WITH_BACKGROUND */
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
const global_keymap_t default_input_keymap[] = {
|
||||
/* Motion */
|
||||
{XCTRL ('a'), CK_InputBol, "C-a"},
|
||||
{KEY_HOME, CK_InputBol, "Home"},
|
||||
{KEY_A1, CK_InputBol, "A1"},
|
||||
{ALT ('<'), CK_InputBol, "M-<"},
|
||||
{XCTRL ('e'), CK_InputEol, "C-e"},
|
||||
{KEY_END, CK_InputEol, "End"},
|
||||
{ALT ('>'), CK_InputEol, "M->"},
|
||||
{KEY_C1, CK_InputEol, "C1"},
|
||||
{KEY_LEFT, CK_InputMoveLeft, "Left"},
|
||||
{KEY_M_CTRL | KEY_LEFT, CK_InputWordLeft, "C-Left"},
|
||||
{KEY_RIGHT, CK_InputMoveRight, "Right"},
|
||||
{KEY_M_CTRL | KEY_RIGHT, CK_InputWordRight, "C-Right"},
|
||||
|
||||
{XCTRL ('b'), CK_InputBackwardChar, "C-b"},
|
||||
{ALT ('b'), CK_InputBackwardWord, "M-b"},
|
||||
{XCTRL ('f'), CK_InputForwardChar, "C-f"},
|
||||
{ALT ('f'), CK_InputForwardWord, "M-f"},
|
||||
|
||||
/* Editing */
|
||||
{KEY_BACKSPACE, CK_InputBackwardDelete, "BackSpace"},
|
||||
{KEY_BACKSPACE, CK_InputBackwardDelete, "C-h"},
|
||||
{KEY_DC, CK_InputDeleteChar, "Delete"},
|
||||
{KEY_DC, CK_InputDeleteChar, "C-d"},
|
||||
{ALT ('d'), CK_InputKillWord, "M-d"},
|
||||
{ALT (KEY_BACKSPACE), CK_InputBackwardKillWord, "M-BackSpace"},
|
||||
|
||||
/* Region manipulation */
|
||||
{XCTRL ('w'), CK_InputKillRegion, "C-w"},
|
||||
{ALT ('w'), CK_InputKillSave, "M-w"},
|
||||
{XCTRL ('y'), CK_InputYank, "C-y"},
|
||||
{XCTRL ('k'), CK_InputKillLine, "C-k"},
|
||||
|
||||
/* History */
|
||||
{ALT ('p'), CK_InputHistoryPrev, "M-p"},
|
||||
{ALT ('n'), CK_InputHistoryNext, "M-n"},
|
||||
{ALT ('h'), CK_InputHistoryShow, "M-h"},
|
||||
|
||||
/* Completion */
|
||||
{ALT ('\t'), CK_InputComplete, "M-tab"},
|
||||
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
const global_keymap_t default_listbox_keymap[] = {
|
||||
{KEY_UP, CK_ListboxMoveUp, "Up"},
|
||||
{XCTRL ('p'), CK_ListboxMoveUp, "C-p"},
|
||||
{KEY_DOWN, CK_ListboxMoveDown, "Down"},
|
||||
{XCTRL ('n'), CK_ListboxMoveDown, "C-n"},
|
||||
{KEY_HOME, CK_ListboxMoveHome, "Home"},
|
||||
{ALT ('<'), CK_ListboxMoveHome, "M-<"},
|
||||
{KEY_A1, CK_ListboxMoveHome, "A1"},
|
||||
{KEY_END, CK_ListboxMoveEnd, "End"},
|
||||
{ALT ('>'), CK_ListboxMoveEnd, "M->"},
|
||||
{KEY_C1, CK_ListboxMoveEnd, "C1"},
|
||||
{KEY_PPAGE, CK_ListboxMovePgUp, "PgUp"},
|
||||
{ALT ('v'), CK_ListboxMovePgUp, "M-v"},
|
||||
{KEY_NPAGE, CK_ListboxMovePgDn, "PgDn"},
|
||||
{XCTRL ('v'), CK_ListboxMovePgDn, "C-v"},
|
||||
{KEY_DC, CK_ListboxDeleteItem, "Delete"},
|
||||
{'d', CK_ListboxDeleteItem, "d"},
|
||||
{KEY_M_SHIFT | KEY_DC, CK_ListboxDeleteAll, "S-Delete"},
|
||||
{'D', CK_ListboxDeleteAll, "D"},
|
||||
|
||||
{0, CK_Ignore_Key, ""}
|
||||
};
|
||||
|
||||
#ifdef USE_DIFF_VIEW
|
||||
/* diff viewer */
|
||||
const global_keymap_t default_diff_keymap[] = {
|
||||
|
||||
{'s', CK_DiffDisplaySymbols, "s"},
|
||||
{'l', CK_DiffDisplayNumbers, "l"},
|
||||
{'f', CK_DiffFull, "f"},
|
||||
|
|
|
@ -12,70 +12,64 @@
|
|||
|
||||
/*** global variables defined in .c file *********************************************************/
|
||||
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
extern GArray *editor_keymap;
|
||||
extern GArray *editor_x_keymap;
|
||||
|
||||
extern const global_keymap_t *editor_map;
|
||||
extern const global_keymap_t *editor_x_map;
|
||||
#endif
|
||||
|
||||
extern GArray *viewer_keymap;
|
||||
extern GArray *viewer_hex_keymap;
|
||||
extern GArray *main_keymap;
|
||||
extern GArray *main_x_keymap;
|
||||
extern GArray *panel_keymap;
|
||||
extern GArray *dialog_keymap;
|
||||
extern GArray *input_keymap;
|
||||
extern GArray *listbox_keymap;
|
||||
extern GArray *tree_keymap;
|
||||
extern GArray *help_keymap;
|
||||
extern GArray *dialog_keymap;
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
extern GArray *editor_keymap;
|
||||
extern GArray *editor_x_keymap;
|
||||
#endif
|
||||
extern GArray *viewer_keymap;
|
||||
extern GArray *viewer_hex_keymap;
|
||||
#ifdef USE_DIFF_VIEW
|
||||
extern GArray *diff_keymap;
|
||||
#endif
|
||||
|
||||
|
||||
extern const global_keymap_t *main_map;
|
||||
extern const global_keymap_t *main_x_map;
|
||||
extern const global_keymap_t *panel_map;
|
||||
extern const global_keymap_t *dialog_map;
|
||||
extern const global_keymap_t *input_map;
|
||||
extern const global_keymap_t *listbox_map;
|
||||
extern const global_keymap_t *tree_map;
|
||||
extern const global_keymap_t *help_map;
|
||||
extern const global_keymap_t *dialog_map;
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
extern const global_keymap_t *editor_map;
|
||||
extern const global_keymap_t *editor_x_map;
|
||||
#endif
|
||||
#ifdef USE_DIFF_VIEW
|
||||
extern const global_keymap_t *diff_map;
|
||||
#endif
|
||||
|
||||
/* viewer/actions_cmd.c */
|
||||
extern const global_keymap_t default_viewer_keymap[];
|
||||
extern const global_keymap_t default_viewer_hex_keymap[];
|
||||
|
||||
/* main.c */
|
||||
extern const global_keymap_t default_main_map[];
|
||||
extern const global_keymap_t default_main_x_map[];
|
||||
/* screen.c */
|
||||
extern const global_keymap_t default_panel_keymap[];
|
||||
/* dialog.c */
|
||||
extern const global_keymap_t default_dialog_keymap[];
|
||||
/* widget.c */
|
||||
extern const global_keymap_t default_input_keymap[];
|
||||
extern const global_keymap_t default_listbox_keymap[];
|
||||
/* tree.c */
|
||||
extern const global_keymap_t default_tree_keymap[];
|
||||
/* help.c */
|
||||
extern const global_keymap_t default_help_keymap[];
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
/* ../edit/editkey.c */
|
||||
extern const global_keymap_t default_editor_keymap[];
|
||||
extern const global_keymap_t default_editor_x_keymap[];
|
||||
#endif
|
||||
|
||||
/* screen.c */
|
||||
extern const global_keymap_t default_panel_keymap[];
|
||||
|
||||
/* widget.c */
|
||||
extern const global_keymap_t default_input_keymap[];
|
||||
extern const global_keymap_t default_listbox_keymap[];
|
||||
|
||||
/* main.c */
|
||||
extern const global_keymap_t default_main_map[];
|
||||
extern const global_keymap_t default_main_x_map[];
|
||||
|
||||
/* tree.c */
|
||||
extern const global_keymap_t default_tree_keymap[];
|
||||
|
||||
/* help.c */
|
||||
extern const global_keymap_t default_help_keymap[];
|
||||
|
||||
/* dialog.c */
|
||||
extern const global_keymap_t default_dialog_keymap[];
|
||||
|
||||
/* viewer/actions_cmd.c */
|
||||
extern const global_keymap_t default_viewer_keymap[];
|
||||
extern const global_keymap_t default_viewer_hex_keymap[];
|
||||
#ifdef USE_DIFF_VIEW
|
||||
/* ydiff.c */
|
||||
extern const global_keymap_t default_diff_keymap[];
|
||||
|
|
70
src/setup.c
70
src/setup.c
|
@ -1167,18 +1167,6 @@ load_keymap_defs (void)
|
|||
|
||||
if (mc_global_keymap != NULL)
|
||||
{
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
editor_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("editor", editor_keymap, mc_global_keymap);
|
||||
editor_x_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("editor:xmap", editor_x_keymap, mc_global_keymap);
|
||||
#endif
|
||||
|
||||
viewer_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("viewer", viewer_keymap, mc_global_keymap);
|
||||
viewer_hex_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("viewer:hex", viewer_hex_keymap, mc_global_keymap);
|
||||
|
||||
main_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("main", main_keymap, mc_global_keymap);
|
||||
main_x_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
|
@ -1187,6 +1175,9 @@ load_keymap_defs (void)
|
|||
panel_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("panel", panel_keymap, mc_global_keymap);
|
||||
|
||||
dialog_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("dialog", dialog_keymap, mc_global_keymap);
|
||||
|
||||
input_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("input", input_keymap, mc_global_keymap);
|
||||
|
||||
|
@ -1199,13 +1190,23 @@ load_keymap_defs (void)
|
|||
help_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("help", help_keymap, mc_global_keymap);
|
||||
|
||||
dialog_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("dialog", dialog_keymap, mc_global_keymap);
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
editor_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("editor", editor_keymap, mc_global_keymap);
|
||||
editor_x_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("editor:xmap", editor_x_keymap, mc_global_keymap);
|
||||
#endif
|
||||
|
||||
viewer_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("viewer", viewer_keymap, mc_global_keymap);
|
||||
viewer_hex_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("viewer:hex", viewer_hex_keymap, mc_global_keymap);
|
||||
|
||||
#ifdef USE_DIFF_VIEW
|
||||
diff_keymap = g_array_new (TRUE, FALSE, sizeof (global_keymap_t));
|
||||
load_keymap_from_section ("diffviewer", diff_keymap, mc_global_keymap);
|
||||
#endif
|
||||
|
||||
mc_config_deinit (mc_global_keymap);
|
||||
}
|
||||
|
||||
|
@ -1221,6 +1222,10 @@ load_keymap_defs (void)
|
|||
if (panel_keymap && panel_keymap->len > 0)
|
||||
panel_map = (global_keymap_t *) panel_keymap->data;
|
||||
|
||||
dialog_map = default_dialog_keymap;
|
||||
if (dialog_keymap && dialog_keymap->len > 0)
|
||||
dialog_map = (global_keymap_t *) dialog_keymap->data;
|
||||
|
||||
input_map = default_input_keymap;
|
||||
if (input_keymap && input_keymap->len > 0)
|
||||
input_map = (global_keymap_t *) input_keymap->data;
|
||||
|
@ -1237,16 +1242,11 @@ load_keymap_defs (void)
|
|||
if (help_keymap && help_keymap->len > 0)
|
||||
help_map = (global_keymap_t *) help_keymap->data;
|
||||
|
||||
dialog_map = default_dialog_keymap;
|
||||
if (dialog_keymap && dialog_keymap->len > 0)
|
||||
dialog_map = (global_keymap_t *) dialog_keymap->data;
|
||||
|
||||
#ifdef USE_DIFF_VIEW
|
||||
diff_map = default_diff_keymap;
|
||||
if (diff_keymap && diff_keymap->len > 0)
|
||||
diff_map = (global_keymap_t *) diff_keymap->data;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
/* --------------------------------------------------------------------------------------------- */
|
||||
|
@ -1254,6 +1254,22 @@ load_keymap_defs (void)
|
|||
void
|
||||
free_keymap_defs (void)
|
||||
{
|
||||
if (main_keymap != NULL)
|
||||
g_array_free (main_keymap, TRUE);
|
||||
if (main_x_keymap != NULL)
|
||||
g_array_free (main_x_keymap, TRUE);
|
||||
if (panel_keymap != NULL)
|
||||
g_array_free (panel_keymap, TRUE);
|
||||
if (dialog_keymap != NULL)
|
||||
g_array_free (dialog_keymap, TRUE);
|
||||
if (input_keymap != NULL)
|
||||
g_array_free (input_keymap, TRUE);
|
||||
if (listbox_keymap != NULL)
|
||||
g_array_free (listbox_keymap, TRUE);
|
||||
if (tree_keymap != NULL)
|
||||
g_array_free (tree_keymap, TRUE);
|
||||
if (help_keymap != NULL)
|
||||
g_array_free (help_keymap, TRUE);
|
||||
#ifdef USE_INTERNAL_EDIT
|
||||
if (editor_keymap != NULL)
|
||||
g_array_free (editor_keymap, TRUE);
|
||||
|
@ -1264,22 +1280,6 @@ free_keymap_defs (void)
|
|||
g_array_free (viewer_keymap, TRUE);
|
||||
if (viewer_hex_keymap != NULL)
|
||||
g_array_free (viewer_hex_keymap, TRUE);
|
||||
if (main_keymap != NULL)
|
||||
g_array_free (main_keymap, TRUE);
|
||||
if (main_x_keymap != NULL)
|
||||
g_array_free (main_x_keymap, TRUE);
|
||||
if (panel_keymap != NULL)
|
||||
g_array_free (panel_keymap, TRUE);
|
||||
if (input_keymap != NULL)
|
||||
g_array_free (input_keymap, TRUE);
|
||||
if (listbox_keymap != NULL)
|
||||
g_array_free (listbox_keymap, TRUE);
|
||||
if (tree_keymap != NULL)
|
||||
g_array_free (tree_keymap, TRUE);
|
||||
if (help_keymap != NULL)
|
||||
g_array_free (help_keymap, TRUE);
|
||||
if (dialog_keymap != NULL)
|
||||
g_array_free (dialog_keymap, TRUE);
|
||||
#ifdef USE_DIFF_VIEW
|
||||
if (diff_keymap != NULL)
|
||||
g_array_free (diff_keymap, TRUE);
|
||||
|
|
Loading…
Reference in New Issue