[Howto] modify Midnight Commander keymap options (shortcuts)

posted in: computer | 0

the default keymap shortcuts in mc-4.8.18 are stored in the file ~/.config/mc/mc.keymap:

 1 [main]
 2 ChangePanel = tab
 3 Help = f1
 4 UserMenu = f2
 5 View = f3
 6 # ViewFile =
 7 Edit = f4
 8 # EditForceInternal =
 9 Copy = f5
 10 Move = f6
 11 MakeDir = f7
 12 Delete = f8
 13 Menu = f9
 14 Quit = f10
 15 MenuLastSelected = f19
 16 QuitQuiet = f20
 17 Find = alt-question
 18 CdQuick = alt-c
 19 HotList = ctrl-backslash
 20 Reread = ctrl-r
 21 DirSize = ctrl-space
 22 Suspend = ctrl-z
 23 Swap = ctrl-u
 24 History = alt-h
 25 # PanelListing =
 26 PanelListingSwitch = alt-t
 27 # PanelListingChange =
 28 ShowHidden = alt-dot
 29 SplitVertHoriz = alt-comma
 30 SplitEqual = alt-equal
 31 SplitMore = alt-shift-right
 32 SplitLess = alt-shift-left
 33 Shell = ctrl-o
 34 PutCurrentPath = alt-a
 35 PutOtherPath = alt-shift-a
 36 PutCurrentSelected = alt-enter; ctrl-enter
 37 PutCurrentFullSelected = ctrl-shift-enter
 38 ViewFiltered = alt-exclamation
 39 Select = kpplus
 40 Unselect = kpminus
 41 SelectInvert = kpasterisk
 42 ScreenList = alt-prime
 43 # OptionsLayout =
 44 # OptionsAppearance =
 45 # OptionsPanel =
 46 # OptionsConfirm =
 47 # OptionsDisplayBits =
 48 # OptionsVfs =
 49 # LearnKeys =
 50 # SaveSetup =
 51 # EditExtensionsFile =
 52 # EditFileHighlightFile =
 53 # Filter =
 54 # ConnectFish =
 55 # ConnectFtp =
 56 # ConnectSmb =
 57 # Undelete =
 58 ExtendedKeyMap = ctrl-x
 59
 60 [main:xmap]
 61 ChangeMode = c
 62 ChangeOwn = o
 63 CompareDirs = d
 64 CompareFiles = ctrl-d
 65 HotListAdd = h
 66 LinkSymbolicEdit = ctrl-s
 67 Link = l
 68 LinkSymbolic = s
 69 LinkSymbolicRelative = v
 70 PanelInfo = i
 71 PanelQuickView = q
 72 ExternalPanelize = exclamation
 73 VfsList = a
 74 Jobs = j
 75 PutCurrentPath = p
 76 PutOtherPath = ctrl-p
 77 PutCurrentTagged = t
 78 PutOtherTagged = ctrl-t
 79 PutCurrentLink = r
 80 PutOtherLink = ctrl-r
 81
 82 [panel]
 83 Search = ctrl-s; alt-s
 84 Mark = insert; ctrl-t
 85 MarkUp = shift-up
 86 MarkDown = shift-down
 87 # MarkLeft =
 88 # MarkRight =
 89 Down = down; ctrl-n
 90 Up = up; ctrl-p
 91 Left = left
 92 Right = right
 93 PageUp = pgup; alt-v
 94 PageDown = pgdn; ctrl-v
 95 Enter = enter
 96 PanelOtherCd = alt-o
 97 PanelOtherCdLink = alt-l
 98 ViewRaw = f13
 99 EditNew = f14
 100 CopySingle = f15
 101 MoveSingle = f16
 102 DeleteSingle = f18
 103 # SelectExt =
 104 Select = alt-plus
 105 Unselect = alt-minus
 106 SelectInvert = alt-asterisk
 107 CdChild = ctrl-pgdn
 108 CdParent = ctrl-pgup
 109 # CdParentSmart =
 110 # Panelize =
 111 History = alt-shift-h
 112 HistoryNext = alt-u
 113 HistoryPrev = alt-y
 114 BottomOnScreen = alt-j
 115 MiddleOnScreen = alt-r
 116 TopOnScreen = alt-g
 117 PanelOtherSync = alt-i
 118 SelectCodepage = alt-e
 119 Top = alt-lt; home; a1
 120 Bottom = alt-gt; end; c1
 121 # Sort =
 122 # SortPrev =
 123 # SortNext =
 124 # SortReverse =
 125 # SortByName =
 126 # SortByExt =
 127 # SortBySize =
 128 # SortByMTime =
 129 # ScrollLeft =
 130 # ScrollRight =
 131
 132 [dialog]
 133 Ok = enter
 134 Cancel = f10; esc; ctrl-g
 135 Up = left; up
 136 #Left = left; up
 137 Down = right; down
 138 #Right = right; down
 139 Help = f1
 140 Suspend = ctrl-z
 141 Refresh = ctrl-l
 142 ScreenList = alt-prime
 143 ScreenNext = alt-rbrace
 144 ScreenPrev = alt-lbrace
 145
 146 [input]
 147 Home = ctrl-a; alt-lt; home; a1
 148 End = ctrl-e; alt-gt; end; c1
 149 Left = left; alt-left; ctrl-b
 150 Right = right; alt-right; ctrl-f
 151 WordLeft = ctrl-left; alt-b
 152 WordRight = ctrl-right; alt-f
 153 Backspace = backspace; ctrl-h
 154 Delete = delete; ctrl-d
 155 DeleteToWordBegin = alt-backspace
 156 DeleteToWordEnd = alt-d
 157 # Mark =
 158 Remove = ctrl-w
 159 # Cut =
 160 Store = alt-w
 161 # Paste =
 162 Yank = ctrl-y
 163 DeleteToEnd = ctrl-k
 164 HistoryPrev = alt-p; ctrl-down
 165 HistoryNext = alt-n; ctrl-up
 166 History = alt-h
 167 Complete = alt-tab
 168 # Clear =
 169 MarkLeft = shift-left
 170 MarkRight = shift-right
 171 MarkToWordBegin = ctrl-shift-left
 172 MarkToWordEnd = ctrl-shift-right
 173 MarkToHome = shift-home
 174 MarkToEnd = shift-end
 175
 176 [listbox]
 177 Up = up; ctrl-p
 178 Down = down; ctrl-n
 179 Top = home; alt-lt; a1
 180 Bottom = end; alt-gt; c1
 181 PageUp = pgup; alt-v
 182 PageDown = pgdn; ctrl-v
 183 Delete = delete; d
 184 Clear = shift-delete; shift-d
 185
 186 [tree]
 187 Help = f1
 188 Reread = f2; ctrl-r
 189 Forget = f3
 190 ToggleNavigation = f4
 191 Copy = f5
 192 Move = f6
 193 Up = up; ctrl-p
 194 Down = down; ctrl-n
 195 Left = left
 196 Right = right
 197 Top = home; alt-lt; a1
 198 Bottom = end; alt-gt; c1
 199 PageUp = pgup; alt-v
 200 PageDown = pgdn; ctrl-v
 201 Enter = enter
 202 Search = ctrl-s; alt-s
 203 Delete = f8; delete
 204
 205 [help]
 206 Help = f1
 207 Index = f2; c
 208 Back = f3; left; l
 209 Quit = f10; esc
 210 Up = up; ctrl-p
 211 Down = down; ctrl-n
 212 PageDown = f; space; pgdn; ctrl-v
 213 PageUp = b; pgup; alt-v; backspace
 214 HalfPageDown = d
 215 HalfPageUp = u
 216 Top = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
 217 Bottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
 218 Enter = right; enter
 219 LinkNext = tab
 220 LinkPrev = alt-tab
 221 NodeNext = n
 222 NodePrev = p
 223
 224 [editor]
 225 Store = ctrl-insert
 226 Paste = shift-insert
 227 Cut = shift-delete
 228 Up = up
 229 Down = down
 230 Left = left
 231 Right = right
 232 WordLeft = ctrl-left; ctrl-z
 233 WordRight = ctrl-right; ctrl-x
 234 Enter = enter
 235 Return = shift-enter; ctrl-enter; ctrl-shift-enter
 236 BackSpace = backspace; ctrl-h
 237 Delete = delete; ctrl-d
 238 PageUp = pgup
 239 PageDown = pgdn
 240 Home = home
 241 End = end
 242 Tab = tab; shift-tab; ctrl-tab; ctrl-shift-tab
 243 Undo = ctrl-u
 244 Redo = alt-r
 245 Top = ctrl-home; alt-lt
 246 Bottom = ctrl-end; alt-gt
 247 ScrollUp = ctrl-up
 248 ScrollDown = ctrl-down
 249 TopOnScreen = ctrl-pgup
 250 BottomOnScreen = ctrl-pgdn
 251 DeleteToWordBegin = alt-backspace
 252 DeleteToWordEnd = alt-d
 253 DeleteLine = ctrl-y
 254 DeleteToEnd = ctrl-k
 255 # DeleteToHome =
 256 # ParagraphUp =
 257 # ParagraphDown =
 258 Save = f2
 259 # EditFile =
 260 EditNew = ctrl-n
 261 SaveAs = f12; ctrl-f2
 262 # Close =
 263 Mark = f3
 264 Copy = f5
 265 Move = f6
 266 Remove = f8
 267 # MarkLine =
 268 # MarkWord =
 269 # MarkAll =
 270 # Unmark =
 271 Search = f7
 272 SearchContinue = f17
 273 # BlockShiftLeft =
 274 # BlockShiftRight =
 275 MarkPageUp = shift-pgup
 276 MarkPageDown = shift-pgdn
 277 MarkLeft = shift-left
 278 MarkRight = shift-right
 279 MarkToWordBegin = ctrl-shift-left
 280 MarkToWordEnd = ctrl-shift-right
 281 MarkUp = shift-up
 282 MarkDown = shift-down
 283 MarkToHome = shift-home
 284 MarkToEnd = shift-end
 285 MarkToFileBegin = ctrl-shift-home
 286 MarkToFileEnd = ctrl-shift-end
 287 MarkToPageBegin = ctrl-shift-pgup
 288 MarkToPageEnd = ctrl-shift-pgdn
 289 MarkScrollUp = ctrl-shift-up
 290 MarkScrollDown = ctrl-shift-down
 291 # MarkParagraphUp =
 292 # MarkParagraphDown =
 293 MarkColumnPageUp = alt-pgup
 294 MarkColumnPageDown = alt-pgdn
 295 MarkColumnLeft = alt-left
 296 MarkColumnRight = alt-right
 297 MarkColumnUp = alt-up
 298 MarkColumnDown = alt-down
 299 # MarkColumnScrollUp =
 300 # MarkColumnScrollDown =
 301 # MarkColumnParagraphUp =
 302 # MarkColumnParagraphDown =
 303 BlockSave = ctrl-f
 304 MarkColumn = f13
 305 Replace = f4
 306 ReplaceContinue = f14
 307 Complete = alt-tab
 308 InsertFile = f15
 309 Quit = f10; esc
 310 InsertOverwrite = insert
 311 Help = f1
 312 # Date =
 313 Refresh = ctrl-l
 314 Goto = alt-l
 315 Sort = alt-t
 316 Mail = alt-m
 317 ParagraphFormat = alt-p
 318 MatchBracket = alt-b
 319 ExternalCommand = alt-u
 320 UserMenu = f11
 321 Menu = f9
 322 Bookmark = alt-k
 323 BookmarkFlush = alt-o
 324 BookmarkNext = alt-j
 325 BookmarkPrev = alt-i
 326 # History =
 327 Shell = ctrl-o
 328 InsertLiteral = ctrl-q
 329 # MacroStartRecord =
 330 # MacroStopRecord =
 331 MacroStartStopRecord = ctrl-r
 332 # MacroDelete =
 333 ShowNumbers = alt-n
 334 ShowTabTws = alt-underline
 335 SyntaxOnOff = ctrl-s
 336 # SyntaxChoose =
 337 # ShowMargin =
 338 Find = alt-enter
 339 FilePrev = alt-minus
 340 FileNext = alt-plus
 341 # RepeatStartStopRecord =
 342 SelectCodepage = alt-e
 343 # Options =
 344 # OptionsSaveMode =
 345 # SpellCheck =
 346 SpellCheckCurrentWord = ctrl-p
 347 # SpellCheckSelectLang =
 348 # LearnKeys =
 349 # WindowMove =
 350 # WindowResize =
 351 # WindowFullscreen =
 352 # WindowList =
 353 # WindowNext =
 354 # WindowPrev =
 355 # ExtendedKeyMap =
 356
 357 [viewer]
 358 Help = f1
 359 WrapMode = f2
 360 Quit = f3; f10; q; esc
 361 HexMode = f4
 362 Goto = f5
 363 Search = f7
 364 SearchForward = slash
 365 SearchBackward = question
 366 SearchContinue = f17; n
 367 SearchForwardContinue = ctrl-s
 368 SearchBackwardContinue = ctrl-r
 369 MagicMode = f8
 370 NroffMode = f9
 371 Home = ctrl-a
 372 End = ctrl-e
 373 Left = h; left
 374 Right = l; right
 375 LeftQuick = ctrl-left
 376 RightQuick = ctrl-right
 377 Up = k; y; insert; up; ctrl-p
 378 Down = j; e; delete; down; enter; ctrl-n
 379 PageDown = f; space; pgdn; ctrl-v
 380 PageUp = b; pgup; alt-v; backspace
 381 HalfPageDown = d
 382 HalfPageUp = u
 383 Top = home; ctrl-home; ctrl-pgup; a1; alt-lt; g
 384 Bottom = end; ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
 385 BookmarkGoto = m
 386 Bookmark = r
 387 FileNext = ctrl-f
 388 FilePrev = ctrl-b
 389 SelectCodepage = alt-e
 390 Shell = ctrl-o
 391 Ruler = alt-r
 392
 393 [viewer:hex]
 394 Help = f1
 395 HexEditMode = f2
 396 Quit = f3; f10; q; esc
 397 HexMode = f4
 398 Goto = f5
 399 Save = f6
 400 Search = f7
 401 SearchForward = slash
 402 SearchBackward = question
 403 SearchContinue = f17; n
 404 SearchForwardContinue = ctrl-s
 405 SearchBackwardContinue = ctrl-r
 406 MagicMode = f8
 407 NroffMode = f9
 408 ToggleNavigation = tab
 409 Home = ctrl-a; home
 410 End = ctrl-e; end
 411 Left = b; left
 412 Right = f; right
 413 Up = k; y; up
 414 Down = j; delete; down
 415 PageDown = pgdn; ctrl-v
 416 PageUp = pgup; alt-v
 417 Top = ctrl-home; ctrl-pgup; a1; alt-lt; g
 418 Bottom = ctrl-end; ctrl-pgdn; c1; alt-gt; shift-g
 419
 420 [diffviewer]
 421 ShowSymbols = alt-s; s
 422 ShowNumbers = alt-n; l
 423 SplitFull = f
 424 SplitEqual = equal
 425 SplitMore = gt
 426 SplitLess = lt
 427 Tab2 = 2
 428 Tab3 = 3
 429 Tab4 = 4
 430 Tab8 = 8
 431 Swap = ctrl-u
 432 Redo = ctrl-r
 433 HunkNext = n; enter; space
 434 HunkPrev = p; backspace
 435 Goto = g; shift-g
 436 Save = f2
 437 Edit = f4
 438 EditOther = f14
 439 Merge = f5
 440 MergeOther = f15
 441 Search = f7
 442 SearchContinue = f17
 443 Options = f9
 444 Top = ctrl-home
 445 Bottom = ctrl-end
 446 Down = down
 447 Up = up
 448 LeftQuick = ctrl-left
 449 RightQuick = ctrl-right
 450 Left = left
 451 Right = right
 452 PageDown = pgdn
 453 PageUp = pgup
 454 Home = home
 455 End = end
 456 Help = f1
 457 Quit = f10; q; shift-q; esc
 458 Shell = ctrl-o
 459 SelectCodepage = alt-e