Commit Graph

126 Commits

Author SHA1 Message Date
mars 4dd6307c12 Window drawing 2023-09-14 17:41:42 -06:00
mars cce42ef240 Refactor text rendering 2023-09-14 17:19:51 -06:00
mars 15b6739586 Add README 2023-04-29 19:34:32 -04:00
mars ca2d97adb7 Add backspace_start_of_buffer unit test 2023-04-19 23:51:30 -04:00
mars 6f643b1750 Merge pull request 'New keybinds `$`, `0`, and `^`' (#15) from emma/breed:keybinds into main
Reviewed-on: #15
2023-04-20 03:47:26 +00:00
mars adb5e444b6 Merge branch 'main' into keybinds 2023-04-20 03:47:02 +00:00
mars 8b90eb647a Merge pull request 'Better way to attain config & theme directories' (#14) from emma/breed:main into main
Reviewed-on: #14
2023-04-20 03:46:49 +00:00
mars 6049ee6136 Merge branch 'main' into main 2023-04-20 03:46:34 +00:00
mars d6138d5986 Fixed get_*_dir() result handling 2023-04-19 23:46:08 -04:00
mars 344b3b5145 Add placeholder word movement actions 2023-04-18 20:19:32 -04:00
mars 9ab272823d Implement rudimentary undo/redo support 2023-04-18 20:05:28 -04:00
mars ae45c3392f Refactor State into submodule 2023-04-18 19:28:59 -04:00
Emma Tebibyte ece0976813 fixed minor issue 2023-04-15 17:38:12 -04:00
Emma Tebibyte 2766539622 added $, ^, and 0 keybinds 2023-04-15 17:34:53 -04:00
Emma Tebibyte 487b8e4580 removed println macro used for testing 2023-04-15 17:22:32 -04:00
Emma Tebibyte 4b6e5edbd3 Revert "removed println macro used for testing"
This reverts commit ddbdc3f7a7.
2023-04-15 17:21:55 -04:00
Emma Tebibyte ddbdc3f7a7 removed println macro used for testing 2023-04-15 17:21:17 -04:00
Emma Tebibyte 70f242f8f6 fall back to $HOME/.config and $HOME/.local/share 2023-04-15 16:25:20 -04:00
Emma Tebibyte a3ba320016 changed themes directory to $XDG_DATA_HOME and config directory to $XDG_CONFIG_HOME 2023-04-15 16:20:07 -04:00
mars 5aed7766c9 Add open_below_at_eof() test 2023-04-15 11:57:28 -04:00
mars bde9c9987a Add d keybind 2023-04-14 22:19:05 -04:00
mars 042ea6d420 Better handling of EOF 2023-04-14 22:15:48 -04:00
mars e910608805 Add panic handler hook to exit alternative screen and raw mode 2023-04-14 21:25:42 -04:00
mars b2b69bf7b3 Remove NormalState + simplify event-handling 2023-04-14 20:59:59 -04:00
mars e47275cb88 Add goto_file_start and goto_file_end 2023-04-14 17:29:19 -04:00
mars a7e121ba18 Merge pull request 'minor fixes to main()' (#12) from emma/breed:main into main
Reviewed-on: #12
2023-04-14 19:47:22 +00:00
mars 65b8986d30 Merge branch 'main' into main 2023-04-14 19:47:17 +00:00
mars 075b74afca Add goto_first_nonwhitespace + impl insert_at_line_start and end 2023-04-14 15:43:22 -04:00
mars 74e1bd88c6 Fix Buffer::goto_first_whitespace 2023-04-14 15:41:19 -04:00
mars 9558cdadb4 Remove unused imports 2023-04-14 15:34:54 -04:00
mars 5fd2620121 Implement goto_line_start and goto_line_end 2023-04-14 15:31:31 -04:00
Emma Tebibyte 64249e0f67 minor fixes to main() 2023-04-14 15:14:21 -04:00
mars d68a719a90 Merge branch 'main' of https://git.tebibyte.media/mars/breed 2023-04-14 15:10:15 -04:00
mars da33dcce1d Handle and render submodes 2023-04-14 15:10:11 -04:00
mars 1496a39a1a Add initial goto keybinds 2023-04-14 15:09:55 -04:00
mars 7f46721caf Better hardcoded keybind semantics 2023-04-14 14:51:46 -04:00
mars c03991f110 Rename minor modes to submodes in keybinds 2023-04-14 14:31:29 -04:00
mars 3020d14081 Migrate keybind handling to State::on_key() 2023-04-14 14:11:36 -04:00
mars 9f6eecfa26 Merge pull request 'fixed writing buffer to file' (#11) from emma/breed:main into main
Reviewed-on: #11
2023-04-14 18:09:52 +00:00
Emma Tebibyte 5c3a21e35e fixed writing buffer to file 2023-04-14 14:08:00 -04:00
mars 878f47c7e9 Add some actions unit tests 2023-04-13 01:05:45 -04:00
mars e9c8cd7a06 Fix append_mode action 2023-04-13 00:43:21 -04:00
mars c914787f47 Use line wrapping config for cursor movement 2023-04-13 00:27:17 -04:00
mars 60fd94ed34 Load all actions by name 2023-04-13 00:09:10 -04:00
mars 5f1e76e912 Add simple keybinds system 2023-04-13 00:04:21 -04:00
mars 18604f3ddd Add command_mode action 2023-04-13 00:04:01 -04:00
mars a40ef42ed6 Add a bunch more actions 2023-04-12 23:40:17 -04:00
mars 2d3c15e571 Rename queue_command() to execute_command() 2023-04-12 21:32:46 -04:00
mars 547dea6ac0 Selected line# and cursorline styling 2023-04-12 21:25:12 -04:00
mars b29891571b Sane default theme 2023-04-12 20:31:51 -04:00