Configurable settings with blisp

This commit is contained in:
Arthur Barraux
2025-06-02 10:31:31 +02:00
parent 19601a0078
commit bff3f84ecd
18 changed files with 446 additions and 119 deletions
+11
View File
@@ -3,6 +3,7 @@
#include <termios.h>
#include <time.h>
#include "../blisp/include/data.h"
/**
* \struct erow
@@ -31,10 +32,12 @@ struct editorConfig {
int numrows; /**< Number of rows contained */
erow *row; /**< Store all the rows printed */
int dirty;
int quit_times;
char *filename;
char status_msg[80];
time_t status_msg_time;
struct termios orig_termios; /**< Terminal communication interface */
config_t *config;
};
/**
@@ -47,4 +50,12 @@ struct abuf {
int len; /**< Length of the text */
};
// Enhanced key sequence handling for multi-key bindings like "CTRL-f o"
typedef struct {
char sequence[64];
int sequence_len;
int last_key_time; // You might want to add timing if needed
} key_sequence_t;
#endif