added nomi spirel

This commit is contained in:
2025-10-31 16:53:27 -07:00
parent 36d2be362e
commit 5df8a30070
8 changed files with 190 additions and 5 deletions

View File

@@ -2,6 +2,9 @@
#define EDITOR_H
#include <tart.h>
#include "editor.h"
struct tart_window window;
@@ -15,6 +18,14 @@ struct commandMode {
char* input;
};
struct bottomBar {
struct tart_cstring mode_cstr;
struct tart_cstring file_cstr;
struct tart_cstring branch_cstr;
struct tart_cell bottomBar_cell;
};
struct InsertMode {
};
@@ -31,12 +42,12 @@ void InitNormalMode();
void InitNomiMode();
void CommandMode(struct CommandMode cmdm) {
void CommandMode(struct commandMode cmdm) {
tart_draw_cstring_position(tart_get_buffer(&window, 0),
commandInput_cstr,
cmdm.input_cstr,
(struct tart_vec2){16,10});
tart_draw_cstring_position(tart_get_buffer(&window, 0),
commandPrompt_cstr,
cmdm.prompt_cstr,
(struct tart_vec2){0,10});
}
void InsertMode();