cc1debc051
Merge branch 'main' of https://git.tebibyte.media/mars/breed
31a1cf961e
Move Buffer to new module
1f9ba13620
Add basic theming
9c633b4c72
Merge pull request 'Handling redirects/pipes and no stdin' (#4) from emma/breed:arg-parsing into main
6ed8a04c24
It now opens to an empty buffer when there is no stdin
Handling redirects/pipes and no stdin
d7f8ccad2a
Merge pull request 'Argument parsing' (#3) from emma/breed:arg-parsing into main
31d9cdf266
Added comment explaining stdin as a file descriptor
6bde2a1eec
Changed wording
1ef228faa2
EVEN BETTER argument parsing
1e69ae5e98
better argument parsing
7821969324
Merge pull request 'Add `a` entering Insert mode with appending cursor instead' (#2) from emma/breed:append into main
31adade996
Merge branch 'main' into append
f67a0ea567
Merge remote-tracking branch 'upstream/main' into append
1be955dc11
fixed append
e06d61317f
small formatting issue
Add `a` entering Insert mode with appending cursor instead
Add
a
entering Insert mode with appending cursor instead
We can give the Mode::Insert
variant some data. Let's make a new struct named InsertState
which contains a boolean field named append
, then add it to Mode::Insert
. Then, on_insert_event()
…
Add
a
entering Insert mode with appending cursor instead
None of the new Mode::Append
code is necessary if you just set self.mode
to Mode::Insert
instead.