summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-03-02 18:29:41 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-03-02 18:29:41 -0500
commitdd349c6c7e0eba659afc2149fd214f9972826052 (patch)
tree3fb212c34d31fbc9e6ee4415be9218448a45fc2f /command.c
parent68066ad410368b0e5d66d7fa983bea882eba1eb6 (diff)
:open-config
Diffstat (limited to 'command.c')
-rw-r--r--command.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/command.c b/command.c
index e2673a6..b0b9df3 100644
--- a/command.c
+++ b/command.c
@@ -215,6 +215,11 @@ void command_execute(Ted *ted, Command c, i64 argument) {
case CMD_PASTE:
if (buffer) buffer_paste(buffer);
break;
+ case CMD_OPEN_CONFIG: {
+ char local_config_filename[TED_PATH_MAX];
+ strbuf_printf(local_config_filename, "%s" PATH_SEPARATOR_STR TED_CFG, ted->local_data_dir);
+ ted_open_file(ted, local_config_filename);
+ } break;
case CMD_COMMAND_SELECTOR:
menu_open(ted, MENU_COMMAND_SELECTOR);
break;