diff options
| author | WormHeamer | 2026-01-01 03:36:11 -0500 |
|---|---|---|
| committer | WormHeamer | 2026-01-01 03:36:11 -0500 |
| commit | 0db238251c580fa07e16e9063d96f2b074290941 (patch) | |
| tree | 3483da845fd7c75f4914b472e59b37f03632961b /main.c | |
| parent | 40691af331e1f9b77e16249337e33e184240f791 (diff) | |
stub for file selection
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -965,6 +965,14 @@ static TxtLoc indent_dedent_lines(TxtLoc start, TxtLoc end, int n) { return txt_at(start.t, ofs); } +Str select_file(void) { + /* TODO: implement */ + vui_clear(); + vui_blit(); + vui_key(); + return (Str) { 0 }; +} + int main(int argc, const char **argv) { ed_init(&e); @@ -1108,8 +1116,14 @@ int main(int argc, const char **argv) { err(1, "shell_replace"); } } break; + case ' ': switch ((u32)vui_key()) { + case 'f': { + Str s = select_file(); + if (s.n > 0) + e.bufi = ed_buf_open(&e, str_to_cstr(s, &e.scratch)); + } break; case 'm': build_file(eb->path, 1); break; |
