Commit Graph

65 Commits

Author SHA1 Message Date
mars ae45c3392f Refactor State into submodule 2023-04-18 19:28:59 -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
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 3020d14081 Migrate keybind handling to State::on_key() 2023-04-14 14:11:36 -04:00
Emma Tebibyte 5c3a21e35e fixed writing buffer to file 2023-04-14 14:08:00 -04:00
mars c914787f47 Use line wrapping config for cursor movement 2023-04-13 00:27:17 -04:00
mars 5f1e76e912 Add simple keybinds system 2023-04-13 00:04:21 -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 8141f35cdc Correct typo in unsaved quit error message 2023-04-12 19:48:17 -04:00
mars f04b0ecaab Add error on unsaved quit 2023-04-12 19:40:07 -04:00
mars 742ed97819 Defer stdout flush until end of draw 2023-04-12 17:50:14 -04:00
mars afaf3ab0fe Add line command 2023-04-12 17:39:46 -04:00
mars 1f33402a42 Parse commands as strings + wq 2023-04-12 17:27:01 -04:00
mars 5bf1212b2a Import Path in main.rs 2023-04-12 17:16:07 -04:00
mars 6f81bab277 Merge branch 'main' of https://git.tebibyte.media/mars/breed 2023-04-12 17:14:51 -04:00
mars 7d46cbcf9b Live theme reload 2023-04-12 17:13:20 -04:00
mars b7f9c8ba2e pub mode-related types 2023-04-12 15:46:34 -04:00
mars 7fff70ce84 Move (some) actions to separate module 2023-04-12 15:36:38 -04:00
Emma Tebibyte 4d79d7b946 Merge remote-tracking branch 'upstream/main' 2023-04-12 12:58:48 -04:00
mars 3d03c90c7b WIP syntax highlighting 2023-04-12 12:52:46 -04:00
Emma Tebibyte 6ef5182cea fixed file path resolution 2023-04-12 12:44:37 -04:00
Emma Tebibyte c06b39239c Merge remote-tracking branch 'upstream/main' 2023-04-12 11:55:36 -04:00
Emma Tebibyte 0ff694c6c1 better command parsing with file name argument for :w 2023-04-12 11:52:21 -04:00
Emma Tebibyte aee17365c6 basic file handling 2023-04-12 01:22:16 -04:00
Roux 8cb37a7820 Capital O insert mode 2023-04-12 00:19:01 -04:00
Roux badd6a0b71 fixed outdated code 2023-04-12 00:10:32 -04:00
Roux 36bbb3b77b resolve merge conflict 2023-04-12 00:04:50 -04:00
mars 5022408e65 Make Cursor and Direction pub to avoid warnings 2023-04-12 00:01:53 -04:00
mars cc1debc051 Merge branch 'main' of https://git.tebibyte.media/mars/breed 2023-04-11 23:57:29 -04:00
mars 31a1cf961e Move Buffer to new module 2023-04-11 23:55:56 -04:00
Roux f5ea473328 cargo fmt 2023-04-11 23:55:33 -04:00
Roux 8a110c5b01 Insert: add o-insert with newline 2023-04-11 23:54:42 -04:00
mars 1f9ba13620 Add basic theming 2023-04-11 23:34:24 -04:00
mars 9c633b4c72 Merge pull request 'Handling redirects/pipes and no stdin' (#4) from emma/breed:arg-parsing into main
Reviewed-on: #4
2023-04-11 23:26:50 +00:00
Emma Tebibyte 6ed8a04c24 It now opens to an empty buffer when there is no stdin 2023-04-11 19:15:38 -04:00
mars d7f8ccad2a Merge pull request 'Argument parsing' (#3) from emma/breed:arg-parsing into main
Reviewed-on: #3
2023-04-11 22:55:52 +00:00
Emma Tebibyte 31d9cdf266 Added comment explaining stdin as a file descriptor 2023-04-11 18:54:33 -04:00
Emma Tebibyte 6bde2a1eec Changed wording 2023-04-11 18:51:33 -04:00
Emma Tebibyte 1ef228faa2 EVEN BETTER argument parsing 2023-04-11 18:49:11 -04:00
mars 1d22ad1dc3 Status line, commands, and normal mode errors 2023-04-11 18:44:13 -04:00
Emma Tebibyte 1e69ae5e98 better argument parsing 2023-04-11 18:26:02 -04:00
Emma Tebibyte 71490f7421 basic argument parsing 2023-04-11 18:12:56 -04:00
mars 31adade996 Merge branch 'main' into append 2023-04-11 21:48:21 +00:00
mars 0192cbbc6b Fix bad EOF behavior 2023-04-11 17:44:10 -04:00
Emma Tebibyte f67a0ea567 Merge remote-tracking branch 'upstream/main' into append 2023-04-11 17:34:46 -04:00