diff options
author | pommicket <pommicket@gmail.com> | 2022-12-31 16:04:26 -0500 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2022-12-31 16:04:26 -0500 |
commit | ecca6666861f590ac17c68ea0b81ba0672667e65 (patch) | |
tree | 984e898163635e4fb5b8f81692d1d44946f15978 /command.h | |
parent | fd617d8d9723f76dcdb51b2fa54ef960be4edccc (diff) |
goto-definition-at-cursor command
Diffstat (limited to 'command.h')
-rw-r--r-- | command.h | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -64,6 +64,8 @@ ENUM_U16 { CMD_AUTOCOMPLETE, CMD_AUTOCOMPLETE_BACK, CMD_FIND_USAGES, + CMD_GOTO_DEFINITION, // "go to definition of..." menu + CMD_GOTO_DEFINITION_AT_CURSOR, CMD_COPY, CMD_CUT, @@ -89,7 +91,6 @@ ENUM_U16 { CMD_SHELL, CMD_GENERATE_TAGS, - CMD_GOTO_DEFINITION, // "go to definition of..." CMD_GOTO_LINE, // open "goto line..." menu CMD_SPLIT_HORIZONTAL, @@ -163,6 +164,8 @@ static CommandName const command_names[] = { {"autocomplete", CMD_AUTOCOMPLETE}, {"autocomplete-back", CMD_AUTOCOMPLETE_BACK}, {"find-usages", CMD_FIND_USAGES}, + {"goto-definition", CMD_GOTO_DEFINITION}, + {"goto-definition-at-cursor", CMD_GOTO_DEFINITION_AT_CURSOR}, {"find", CMD_FIND}, {"find-replace", CMD_FIND_REPLACE}, {"tab-close", CMD_TAB_CLOSE}, @@ -179,7 +182,6 @@ static CommandName const command_names[] = { {"build-next-error", CMD_BUILD_NEXT_ERROR}, {"shell", CMD_SHELL}, {"generate-tags", CMD_GENERATE_TAGS}, - {"goto-definition", CMD_GOTO_DEFINITION}, {"goto-line", CMD_GOTO_LINE}, {"split-horizontal", CMD_SPLIT_HORIZONTAL}, {"split-vertical", CMD_SPLIT_VERTICAL}, |