aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-02-01 20:51:04 +1000
committerDavid Walter Seikel2014-02-01 20:51:04 +1000
commit67023179b6d68dab46167474b02f935fcdee4457 (patch)
treeabad7781baa5e925299822e35c4dcbfe99817df5
parentFix dumb off by one error in dumbsh. (diff)
downloadboxes-67023179b6d68dab46167474b02f935fcdee4457.zip
boxes-67023179b6d68dab46167474b02f935fcdee4457.tar.gz
boxes-67023179b6d68dab46167474b02f935fcdee4457.tar.bz2
boxes-67023179b6d68dab46167474b02f935fcdee4457.tar.xz
Various key mapping fixes for the editors.
-rw-r--r--boxes.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/boxes.c b/boxes.c
index c486746..ef3dcc5 100644
--- a/boxes.c
+++ b/boxes.c
@@ -1819,7 +1819,6 @@ struct keyCommand simpleEmacsKeys[] =
1819 {"^F", "forward-char"}, 1819 {"^F", "forward-char"},
1820 {"Escx", "execute-extended-command"}, // M-x 1820 {"Escx", "execute-extended-command"}, // M-x
1821 {"^X2", "split-window-vertically"}, 1821 {"^X2", "split-window-vertically"},
1822 {"^X3", "split-window-horizontally"}, // TODO - Just making this up for now.
1823 {"^XP", "other-window"}, 1822 {"^XP", "other-window"},
1824 {"^X0", "delete-window"}, 1823 {"^X0", "delete-window"},
1825 {"Up", "previous-line"}, 1824 {"Up", "previous-line"},
@@ -1839,6 +1838,8 @@ struct keyCommand simpleEmacsCommandKeys[] =
1839 {"^A", "beginning-of-line"}, 1838 {"^A", "beginning-of-line"},
1840 {"Left", "backward-char"}, 1839 {"Left", "backward-char"},
1841 {"^B", "backward-char"}, 1840 {"^B", "backward-char"},
1841 {"Right", "forward-char"},
1842 {"^F", "forward-char"},
1842 {"Up", "previous-line"}, 1843 {"Up", "previous-line"},
1843 {"^P", "previous-line"}, 1844 {"^P", "previous-line"},
1844 {"Enter", "accept-line"}, 1845 {"Enter", "accept-line"},
@@ -2070,7 +2071,7 @@ struct keyCommand simpleMceditKeys[] =
2070 {"Enter", "splitLine"}, 2071 {"Enter", "splitLine"},
2071 {"Return", "splitLine"}, 2072 {"Return", "splitLine"},
2072 {"Right", "rightChar"}, 2073 {"Right", "rightChar"},
2073{"Shift F2", "switchMode"}, // MC doesn't have a command mode. 2074 {"Shift F2", "switchMode"}, // MC doesn't have a command mode.
2074 {"Esc:", "switchMode"}, // Sorta vi like, and coz tmux is screwing with the shift function keys somehow. 2075 {"Esc:", "switchMode"}, // Sorta vi like, and coz tmux is screwing with the shift function keys somehow.
2075 {"Esc|", "splitV"}, // MC doesn't have a split window concept, so make these up to match tmux more or less. 2076 {"Esc|", "splitV"}, // MC doesn't have a split window concept, so make these up to match tmux more or less.
2076 {"Esc-", "splitH"}, 2077 {"Esc-", "splitH"},
@@ -2134,7 +2135,7 @@ struct keyCommand simpleNanoKeys[] =
2134 {"^E", "end"}, 2135 {"^E", "end"},
2135 {"End", "end"}, 2136 {"End", "end"},
2136 {"^X", "exit"}, 2137 {"^X", "exit"},
2137 {"F2", "quit"}, 2138 {"F2", "exit"},
2138 {"^O", "writeout"}, 2139 {"^O", "writeout"},
2139 {"F3", "writeout"}, 2140 {"F3", "writeout"},
2140 {"^A", "home"}, 2141 {"^A", "home"},