aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-01-27 20:30:38 +1000
committerDavid Walter Seikel2014-01-27 20:30:38 +1000
commit34036e6259f90d7c4b7e4b92e547460196c434ef (patch)
tree16118a0248c09a838eb50b0842dd01318165c179
parentRemove that part of the README that says I've not looked at it recently. B-) (diff)
downloadboxes-34036e6259f90d7c4b7e4b92e547460196c434ef.zip
boxes-34036e6259f90d7c4b7e4b92e547460196c434ef.tar.gz
boxes-34036e6259f90d7c4b7e4b92e547460196c434ef.tar.bz2
boxes-34036e6259f90d7c4b7e4b92e547460196c434ef.tar.xz
Fix up and change some MC edit keys.
Diffstat (limited to '')
-rw-r--r--boxes.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/boxes.c b/boxes.c
index 467ed19..0004c2f 100644
--- a/boxes.c
+++ b/boxes.c
@@ -2004,7 +2004,7 @@ struct keyCommand simpleCommandKeys[] =
2004 {"Left", "leftChar"}, 2004 {"Left", "leftChar"},
2005 {"Return", "executeLine"}, 2005 {"Return", "executeLine"},
2006 {"Right", "rightChar"}, 2006 {"Right", "rightChar"},
2007 {"Shift F2", "switchMode"}, 2007 {"^[", "switchMode"},
2008 {"Up", "upLine"}, 2008 {"Up", "upLine"},
2009 {NULL, NULL} 2009 {NULL, NULL}
2010}; 2010};
@@ -2306,7 +2306,9 @@ struct keyCommand simpleMceditKeys[] =
2306 {"Down", "downLine"}, 2306 {"Down", "downLine"},
2307 {"End", "endOfLine"}, 2307 {"End", "endOfLine"},
2308 {"F10", "quit"}, 2308 {"F10", "quit"},
2309 {"^[0", "quit"},
2309 {"F2", "save"}, 2310 {"F2", "save"},
2311 {"^[2", "save"},
2310 {"Home", "startOfLine"}, 2312 {"Home", "startOfLine"},
2311 {"Left", "leftChar"}, 2313 {"Left", "leftChar"},
2312 {"PgDn", "downPage"}, 2314 {"PgDn", "downPage"},
@@ -2314,10 +2316,12 @@ struct keyCommand simpleMceditKeys[] =
2314 {"Return", "splitLine"}, 2316 {"Return", "splitLine"},
2315 {"Right", "rightChar"}, 2317 {"Right", "rightChar"},
2316 {"Shift F2", "switchMode"}, 2318 {"Shift F2", "switchMode"},
2317 {"Shift F3", "splitV"}, 2319 {"^[x", "switchMode"}, // Emacs like.
2318 {"Shift F4", "splitH"}, 2320 {"^[:", "switchMode"}, // Sorta vi like.
2319 {"Shift F6", "switchBoxes"}, 2321 {"^O|", "splitV"}, // MC doesn't have a split window concept, so make these up to match tmux more or less.
2320 {"Shift F9", "deleteBox"}, 2322 {"^O-", "splitH"},
2323 {"^Oo", "switchBoxes"},
2324 {"^Ox", "deleteBox"},
2321 {"Up", "upLine"}, 2325 {"Up", "upLine"},
2322 {NULL, NULL} 2326 {NULL, NULL}
2323}; 2327};