summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-30 13:21:53 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-30 13:21:53 -0500
commitb35a780479bbf5038a825d415f9ca49c92f6b425 (patch)
tree44e71007552714b03ae812e466495ec5c8a7e27b /command.h
parenta61d90c32d4d6448148894872ebd91eb8f10fc2e (diff)
ctrl+q to quit (with unsaved changes dialog)
Diffstat (limited to 'command.h')
-rw-r--r--command.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/command.h b/command.h
index 9c2fba3..63afdb2 100644
--- a/command.h
+++ b/command.h
@@ -41,6 +41,7 @@ ENUM_U16 {
CMD_OPEN, // open a file
CMD_SAVE, // save current buffer
CMD_SAVE_AS,
+ CMD_SAVE_ALL, // save all open buffers with unsaved changes
CMD_NEW,
CMD_UNDO,
CMD_REDO,
@@ -101,6 +102,7 @@ static CommandName const command_names[CMD_COUNT] = {
{"new", CMD_NEW},
{"save", CMD_SAVE},
{"save-as", CMD_SAVE_AS},
+ {"save-all", CMD_SAVE_ALL},
{"quit", CMD_QUIT},
{"undo", CMD_UNDO},
{"redo", CMD_REDO},