Insert Mode
Closed this issue · 1 comments
bkthomps commented
Add insert mode, which allows: typing; special actions such as space, backspace, enter, and tab. Do not yet implement copy-and-pasting.
This will require creating a buffer to store the file being manipulated. There are three possibilities:
- Using a linked list of slices
- This is easy to implement, but inefficient
- Using a gap buffer
- This is harder to implement but more efficient
- Less efficient that a rope for searching
- Using a rope
- This is the hardest to implement but better for searching than a gap buffer
Will implement option 2 since it's the best efficiency-simplicity tradeoff.
bkthomps commented
Done