Commit Graph

7 Commits

Author SHA1 Message Date
b803358ea3
editor: Fix creation of new files
The editor is supposed to create files if they don't exist, however before this commit stat() would fail and exit load_file() before we even got to File::open_or_create().
2024-03-29 20:50:14 +01:00
2e53f9999f
editor: Display only the basename of the current file in the window title 2024-03-29 20:50:14 +01:00
cc3be43633
editor: Use TextInput as a base class 2024-03-29 20:50:14 +01:00
5dc23d1a09
editor: Refuse to load non-regular file types 2024-03-29 20:50:13 +01:00
47538b16fd
editor: Remove insert mode and use the arrow keys to navigate, plus Ctrl+S to save 2024-03-29 20:50:13 +01:00
77737c2cd8
editor: Add basic loading and saving 2024-03-29 20:50:13 +01:00
622a044244
editor: Add a basic text editor 2024-03-29 20:50:13 +01:00