From 34036e6259f90d7c4b7e4b92e547460196c434ef Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Mon, 27 Jan 2014 20:30:38 +1000 Subject: Fix up and change some MC edit keys. --- boxes.c | 14 +++++++++----- 1 file 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[] = {"Left", "leftChar"}, {"Return", "executeLine"}, {"Right", "rightChar"}, - {"Shift F2", "switchMode"}, + {"^[", "switchMode"}, {"Up", "upLine"}, {NULL, NULL} }; @@ -2306,7 +2306,9 @@ struct keyCommand simpleMceditKeys[] = {"Down", "downLine"}, {"End", "endOfLine"}, {"F10", "quit"}, + {"^[0", "quit"}, {"F2", "save"}, + {"^[2", "save"}, {"Home", "startOfLine"}, {"Left", "leftChar"}, {"PgDn", "downPage"}, @@ -2314,10 +2316,12 @@ struct keyCommand simpleMceditKeys[] = {"Return", "splitLine"}, {"Right", "rightChar"}, {"Shift F2", "switchMode"}, - {"Shift F3", "splitV"}, - {"Shift F4", "splitH"}, - {"Shift F6", "switchBoxes"}, - {"Shift F9", "deleteBox"}, + {"^[x", "switchMode"}, // Emacs like. + {"^[:", "switchMode"}, // Sorta vi like. + {"^O|", "splitV"}, // MC doesn't have a split window concept, so make these up to match tmux more or less. + {"^O-", "splitH"}, + {"^Oo", "switchBoxes"}, + {"^Ox", "deleteBox"}, {"Up", "upLine"}, {NULL, NULL} }; -- cgit v1.1