- 02 Feb, 2017 8 commits
-
-
Matthew Nicholson authored
This function deletes all the characters between the cursor and the given position.
-
Matthew Nicholson authored
This also properly marks the start and end of undo groups in order to properly support undoing and redoing commands with counts and insert commands.
-
Matthew Nicholson authored
-
Matthew Nicholson authored
This is necessary to support proper undoing in insert mode.
-
Matthew Nicholson authored
This command repeats the last normal command or the last insert command. It also supports counts.
-
Matthew Nicholson authored
This will repeat the last insert `count` times.
-
Matthew Nicholson authored
-
Matthew Nicholson authored
This will be used later. Right now we just properly track the count.
-
- 31 Jan, 2017 4 commits
-
-
Matthew Nicholson authored
-
Matthew Nicholson authored
-
Matthew Nicholson authored
-
Matthew Nicholson authored
This includes support for basic vi movements and insert and normal mode.
-
- 23 Jan, 2017 2 commits
-
-
Matthew Nicholson authored
This release includes support for detecting Esc key presses.
-
Matthew Nicholson authored
This is necessary for vi normal mode.
-
- 19 Jan, 2017 18 commits
-
-
MovingtoMars authored
-
MovingtoMars authored
-
MovingtoMars authored
-
Matthew Nicholson authored
-
Matthew Nicholson authored
This code should be shared across all key mappings.
-
Matthew Nicholson authored
It is now unused.
-
Matthew Nicholson authored
-
Matthew Nicholson authored
Right now this is just a simple passthrough to Editor, but this will change.
-
Matthew Nicholson authored
-
Matthew Nicholson authored
This was done by splitting the key handling loop out of read_line. Eventually this will be made into a generic function that can accept any type of Editor.
-
Matthew Nicholson authored
Eventually this will be replaced by an emacs specific key mapper and all key handling will be removed from Editor. We need this implementation to aid in the transition though.
-
Matthew Nicholson authored
The intention is for this class to wrap an instance of Editor and call into it to modify the buffer according to the user's key presses. This way editing operations and key presses are decoupled.
-
Matthew Nicholson authored
This will be used by vi mode.
-
Matthew Nicholson authored
-
Matthew Nicholson authored
-
Matthew Nicholson authored
-
Matthew Nicholson authored
-
Liam authored
support undo/redo with truncate
-
- 13 Jan, 2017 2 commits
-
-
Matthew Nicholson authored
Prior to this patch, typing some text, moving to the start of the line, then deleting until the end of the line and attempting to undo will cause a panic. This is because the truncate() operation did not update the undo list. This has been corrected.
-
Matthew Nicholson authored
When testing on travis, the terminal width is returned as 0 which leads to a divide-by-zero error. Hardcoding the size when testing avoids this issue.
-
- 09 Sep, 2016 6 commits
-
-
Liam authored
fix must_use warning in example
-
Liam authored
add some tests to editor
-
Matthew Nicholson authored
-
Matthew Nicholson authored
-
Matthew Nicholson authored
-
Matthew Nicholson authored
-