summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-01-29 18:33:56 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-01-29 18:33:56 -0500
commit90ffcaad047caa55e65a6bf858a7b976e062007a (patch)
treec76eb58d233fab1a70fe49253ebaa639fe23ca65 /command.h
parenta0b84cc8f40e19a506332be3a05222b87e6ed617 (diff)
tabs working pretty well (not done yet)
Diffstat (limited to 'command.h')
-rw-r--r--command.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/command.h b/command.h
index 9793d2a..04a24f8 100644
--- a/command.h
+++ b/command.h
@@ -41,12 +41,17 @@ ENUM_U16 {
CMD_OPEN, // open a file
CMD_SAVE, // save current buffer
CMD_SAVE_AS,
+ CMD_NEW,
CMD_UNDO,
CMD_REDO,
CMD_COPY,
CMD_CUT,
CMD_PASTE,
+ CMD_TAB_CLOSE,
+ CMD_TAB_NEXT,
+ CMD_TAB_PREV,
+
CMD_TEXT_SIZE_INCREASE,
CMD_TEXT_SIZE_DECREASE,
@@ -92,6 +97,7 @@ static CommandName const command_names[CMD_COUNT] = {
{"backspace-word", CMD_BACKSPACE_WORD},
{"delete-word", CMD_DELETE_WORD},
{"open", CMD_OPEN},
+ {"new", CMD_NEW},
{"save", CMD_SAVE},
{"save-as", CMD_SAVE_AS},
{"undo", CMD_UNDO},
@@ -99,6 +105,9 @@ static CommandName const command_names[CMD_COUNT] = {
{"copy", CMD_COPY},
{"cut", CMD_CUT},
{"paste", CMD_PASTE},
+ {"tab-close", CMD_TAB_CLOSE},
+ {"tab-next", CMD_TAB_NEXT},
+ {"tab-prev", CMD_TAB_PREV},
{"increase-text-size", CMD_TEXT_SIZE_INCREASE},
{"decrease-text-size", CMD_TEXT_SIZE_DECREASE},
{"escape", CMD_ESCAPE}