summaryrefslogtreecommitdiff
path: root/ted.h
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-31 23:28:03 -0500
committerpommicket <pommicket@gmail.com>2022-12-31 23:28:03 -0500
commit57834dc0b116a62b806781ddec101bca4cda3abb (patch)
treee93e85b8cd2de7198cabe11abe1a779dbdf7b7cb /ted.h
parent993d4f50d13c3a703d634d989af7dd8b96ae8c3d (diff)
start moving things around
Diffstat (limited to 'ted.h')
-rw-r--r--ted.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/ted.h b/ted.h
index ecf592b..29f2a15 100644
--- a/ted.h
+++ b/ted.h
@@ -1,3 +1,12 @@
+#ifndef TED_H_
+#define TED_H_
+
+#include "lsp.h"
+#include "base.h"
+#include "text.h"
+#include "colors.h"
+#include "command.h"
+
#define TED_VERSION "2.0"
#define TED_VERSION_FULL "ted v. " TED_VERSION
#define TED_PATH_MAX 256
@@ -578,6 +587,9 @@ typedef struct Ted {
} Ted;
char *buffer_contents_utf8_alloc(TextBuffer *buffer);
Command command_from_str(char const *str);
+const char *command_to_str(Command command);
+// Returns string representation of command
+const char *command_to_str(Command c);
void command_execute(Ted *ted, Command c, i64 argument);
void ted_switch_to_buffer(Ted *ted, TextBuffer *buffer);
// the settings of the active buffer, or the default settings if there is no active buffer
@@ -620,3 +632,5 @@ void definitions_selector_open(Ted *ted);
void definitions_selector_update(Ted *ted);
void definitions_selector_render(Ted *ted, Rect bounds);
void definitions_selector_close(Ted *ted);
+
+#endif