summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-22 12:36:50 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-22 12:36:50 -0500
commit1631f38d4dba64577c8f064225599273148ad83d (patch)
tree740747615e12e0d45681875cdb2e2d4f9f681e77 /ted.h
parent37ce64c167e12c0d652442b2ff3deb9327d1317d (diff)
go to definition menu
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index 0ad4887..18c8d15 100644
--- a/ted.h
+++ b/ted.h
@@ -167,6 +167,7 @@ ENUM_U16 {
MENU_SAVE_AS,
MENU_WARN_UNSAVED, // warn about unsaved changes
MENU_ASK_RELOAD, // prompt about whether to reload file which has ben changed by another program
+ MENU_GOTO_DEFINITION,
} ENUM_U16_END(Menu);
typedef struct {
@@ -248,6 +249,7 @@ typedef struct Ted {
int scroll_total_x, scroll_total_y; // total amount scrolled in the x and y direction this frame
Menu menu;
FileSelector file_selector;
+ Selector tag_selector; // for "go to definition of..." menu
TextBuffer line_buffer; // general-purpose line buffer for inputs -- used for menus
TextBuffer find_buffer; // use for "find" term in find/find+replace
TextBuffer replace_buffer; // "replace" for find+replace
@@ -271,6 +273,8 @@ typedef struct Ted {
BuildError *build_errors; // dynamic array of build errors
u32 build_error; // build error we are currently "on"
+ char **tag_selector_entries; // an array of all tags (see tag_selector_open)
+
// points to a selector if any is open, otherwise NULL.
Selector *selector_open;