aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/boxes.c
diff options
context:
space:
mode:
authorDavid Walter Seikel2014-02-01 15:24:31 +1000
committerDavid Walter Seikel2014-02-01 15:24:31 +1000
commitd4ecd179e4498c4b01b83ba28ad5c1c9b70df752 (patch)
treeacac8b2d3ca2bcd2b4dcfd1bb67d2cbc28600f1d /boxes.c
parentTerminal resize now does the right thing in boxes. (diff)
downloadboxes-d4ecd179e4498c4b01b83ba28ad5c1c9b70df752.zip
boxes-d4ecd179e4498c4b01b83ba28ad5c1c9b70df752.tar.gz
boxes-d4ecd179e4498c4b01b83ba28ad5c1c9b70df752.tar.bz2
boxes-d4ecd179e4498c4b01b83ba28ad5c1c9b70df752.tar.xz
Rejig the joe commands a little. Now we have a quit.
Diffstat (limited to 'boxes.c')
-rw-r--r--boxes.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/boxes.c b/boxes.c
index 048c7c8..c486746 100644
--- a/boxes.c
+++ b/boxes.c
@@ -1878,7 +1878,7 @@ struct context simpleEmacs =
1878struct function simpleJoeCommands[] = 1878struct function simpleJoeCommands[] =
1879{ 1879{
1880 {"backs", "Back space last character.", 0, {backSpaceChar}}, 1880 {"backs", "Back space last character.", 0, {backSpaceChar}},
1881 {"abort", "Delete a box.", 0, {deleteBox}}, 1881 {"abort", "Delete a box.", 0, {deleteBox}}, // TODO - Should do quit if it's the last window.
1882 {"delch", "Delete current character.", 0, {deleteChar}}, 1882 {"delch", "Delete current character.", 0, {deleteChar}},
1883 {"dnarw", "Move cursor down one line.", 0, {downLine}}, 1883 {"dnarw", "Move cursor down one line.", 0, {downLine}},
1884 {"pgdn", "Move cursor down one page.", 0, {downPage}}, 1884 {"pgdn", "Move cursor down one page.", 0, {downPage}},
@@ -1908,7 +1908,7 @@ struct keyCommand simpleJoeKeys[] =
1908 {"Down", "dnarw"}, 1908 {"Down", "dnarw"},
1909 {"^N", "dnarw"}, 1909 {"^N", "dnarw"},
1910 {"^E", "eol"}, 1910 {"^E", "eol"},
1911// {"F10", "killjoe"}, // "deleteBox" should do this if it's the last window. 1911 {"^C", "killjoe"},
1912 {"^Kd", "save"}, 1912 {"^Kd", "save"},
1913 {"^K^D" "save"}, 1913 {"^K^D" "save"},
1914 {"^A", "bol"}, 1914 {"^A", "bol"},
@@ -1926,8 +1926,8 @@ struct keyCommand simpleJoeKeys[] =
1926 {"^K^O", "splitw"}, 1926 {"^K^O", "splitw"},
1927 {"^Kn", "nextw"}, 1927 {"^Kn", "nextw"},
1928 {"^K^N", "nextw"}, 1928 {"^K^N", "nextw"},
1929 {"^Kx", "abort"}, // Should ask if it should save if it's been modified. A good generic thing to do anyway. 1929 {"^Kx", "killjoe"}, // TODO - Should ask if it should save if it's been modified. A good generic thing to do anyway.
1930 {"^K^X", "abort"}, 1930 {"^K^X", "abort"}, // TODO - These two both close a window, and quit if that was the last window.
1931 {"Up", "uparw"}, 1931 {"Up", "uparw"},
1932 {"^P", "uparw"}, 1932 {"^P", "uparw"},
1933 {NULL, NULL} 1933 {NULL, NULL}