diff options
author | Rory Dudley | 2024-12-12 17:59:32 -0700 |
---|---|---|
committer | Rory Dudley | 2024-12-12 18:05:00 -0700 |
commit | fa9ec0c377305126f4c810be198bdca68d71a275 (patch) | |
tree | bdcd76287cf46384762454aad4ae841ac7a2539b /src/poem/anthology/cd.rs | |
parent | 07e75b3f63001ca509df8d5b5a33336ab994814f (diff) | |
download | dwarvish-fa9ec0c377305126f4c810be198bdca68d71a275.tar.gz |
Rewrite of the buffer code + proper UTF-8 support
This patch rewrites much of the code in src/buffer.rs to (utlimately),
be less buggy. It also changed getchar() to have proper support for
UTF-8 characters. The autocomplete function was also enhanced to support
completions with filenames that have spaces in their paths. It handles
these by placing a backslash ('\') before each space in the filename.
There is not yet any completion support with quote ('), nor double-quote
characters ("). The buffer is still navigable with arrow keys, so
arbitrary deletions and insertions are still possible. Deletions and
insertions with multi-width UTF-8 characters work as expected.
Signed-off-by: Rory Dudley <rory@netc.lu>
Notes
Notes:
The complection function only works if the cursor is at the end of the
buffer. Pressing tab anywhere else will result in functionally a no op.
Diffstat (limited to 'src/poem/anthology/cd.rs')
0 files changed, 0 insertions, 0 deletions