From d4ecd179e4498c4b01b83ba28ad5c1c9b70df752 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 1 Feb 2014 15:24:31 +1000 Subject: Rejig the joe commands a little. Now we have a quit. --- boxes.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'boxes.c') 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 = struct function simpleJoeCommands[] = { {"backs", "Back space last character.", 0, {backSpaceChar}}, - {"abort", "Delete a box.", 0, {deleteBox}}, + {"abort", "Delete a box.", 0, {deleteBox}}, // TODO - Should do quit if it's the last window. {"delch", "Delete current character.", 0, {deleteChar}}, {"dnarw", "Move cursor down one line.", 0, {downLine}}, {"pgdn", "Move cursor down one page.", 0, {downPage}}, @@ -1908,7 +1908,7 @@ struct keyCommand simpleJoeKeys[] = {"Down", "dnarw"}, {"^N", "dnarw"}, {"^E", "eol"}, -// {"F10", "killjoe"}, // "deleteBox" should do this if it's the last window. + {"^C", "killjoe"}, {"^Kd", "save"}, {"^K^D" "save"}, {"^A", "bol"}, @@ -1926,8 +1926,8 @@ struct keyCommand simpleJoeKeys[] = {"^K^O", "splitw"}, {"^Kn", "nextw"}, {"^K^N", "nextw"}, - {"^Kx", "abort"}, // Should ask if it should save if it's been modified. A good generic thing to do anyway. - {"^K^X", "abort"}, + {"^Kx", "killjoe"}, // TODO - Should ask if it should save if it's been modified. A good generic thing to do anyway. + {"^K^X", "abort"}, // TODO - These two both close a window, and quit if that was the last window. {"Up", "uparw"}, {"^P", "uparw"}, {NULL, NULL} -- cgit v1.1