summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-08-04 23:53:26 -0400
committerpommicket <pommicket@gmail.com>2023-08-04 23:53:26 -0400
commit3816db2083421222b59ecb1b9f5cedbead6d1fc7 (patch)
treefab3847116e5add027b808de6b5c906abcec5e6f /command.c
parentfa4c4fcb7f215dd2d63318c3aef6dd0794a44548 (diff)
start renmae symbol
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 65d2072..cce923d 100644
--- a/command.c
+++ b/command.c
@@ -104,6 +104,7 @@ static CommandName command_names[] = {
{"macro-execute", CMD_MACRO_EXECUTE},
{"increment-number", CMD_INCREMENT_NUMBER},
{"decrement-number", CMD_DECREMENT_NUMBER},
+ {"rename-symbol", CMD_RENAME_SYMBOL},
};
static_assert_if_possible(arr_count(command_names) == CMD_COUNT)
@@ -679,5 +680,9 @@ void command_execute_ex(Ted *ted, Command c, CommandArgument full_argument, Comm
case CMD_MACRO_EXECUTE:
macro_execute(ted, (u32)argument);
break;
+ case CMD_RENAME_SYMBOL:
+ if (buffer && buffer_lsp(buffer))
+ menu_open(ted, MENU_RENAME_SYMBOL);
+ break;
}
}