diff options
author | pommicket <pommicket@gmail.com> | 2023-08-04 23:53:26 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2023-08-04 23:53:26 -0400 |
commit | 3816db2083421222b59ecb1b9f5cedbead6d1fc7 (patch) | |
tree | fab3847116e5add027b808de6b5c906abcec5e6f /command.c | |
parent | fa4c4fcb7f215dd2d63318c3aef6dd0794a44548 (diff) |
start renmae symbol
Diffstat (limited to 'command.c')
-rw-r--r-- | command.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } } |