Commit Graph

15 Commits

Author SHA1 Message Date
Matthew Gordon 41e9c197cd Refactor EditorBuffer and TextBuffer to be immutable 2025-11-15 21:11:47 -04:00
Matthew Gordon 1934af8b72 Add ability to insert at line and column 2025-11-15 19:55:44 -04:00
Matthew Gordon a8ce6e8e59 Add very basic cursor control 2025-11-14 20:32:03 -04:00
Matthew Gordon 304bf4da6c Fix bug in TextBufferWriter with multibyte chars
Fixed a UTF-8 decoding error that would occur if the `buf` argument to
`TextBufferWriter` ended in the middle of a multibyte character.
2025-11-10 19:52:31 -04:00
Matthew Gordon 36ab1b1769 Add EditorBuffer and Command; stubs for a few commands 2025-11-10 15:40:35 -04:00
Matthew Gordon 1de9569beb Add some documentation 2025-11-10 13:34:05 -04:00
Matthew Gordon 00e4959055 Remove unused code 2025-11-10 13:24:14 -04:00
Matthew Gordon e01210f679 Add TextBufferWriter 2025-11-10 13:24:04 -04:00
Matthew Gordon d95ab09180 Create io::Reader instance for TextBuffer 2025-11-10 12:33:07 -04:00
Matthew Gordon 01b1ed1591 Test adding strings at end of TextBuffer 2025-11-10 12:32:15 -04:00
Matthew Gordon 4ca32decc9 Remove unused function Rope::is_leaf() 2025-10-30 21:49:37 -03:00
Matthew Gordon ef375f6472 Remove old dbg!() 2025-10-30 21:49:07 -03:00
Matthew Gordon 529ac555ec Expose some Rope functions through TextBuffer
This is mostly just to silence unused code warnings for now.
2025-10-30 21:48:10 -03:00
Matthew Gordon 7b7e307a51 Add `impl Default` for TextBuffer 2025-10-21 22:13:56 -03:00
Matthew Gordon a621985347 Finding shape of things after leaving rope unfinished 2025-10-21 22:12:25 -03:00