Commit graph

21 commits

Author SHA1 Message Date
ce61c1765a
refactor: use changes_when_lowercased consistently in toggle_case
switch_case already uses changes_when_lowercased to detect uppercase
characters. toggle_case was using is_lowercase with inverted branch
order, which is functionally equivalent but inconsistent.
2026-04-13 22:21:34 +02:00
Danylo Kondratiev
b2cb003d82
feat: add toggle_case 2026-04-13 22:21:34 +02:00
a81f5c61d0
refactor: de-duplicate utf8_write_transform & utf8_partial_write_transform 2026-02-15 21:52:58 +01:00
7471848ef2
fix: switch_case does nothing if there are non-cased chars in range 2026-02-15 21:52:29 +01:00
74e7406034
fix: guarantee progress in find_all_ranges when pattern is shorter than a utf8 sequence 2025-11-26 10:22:04 +01:00
99f9f95dbc
fix: use a partial write capable case folding writer in Buffer.find_all_ranges
This fixes case insensitive search. Previously the case folding would fail on
input slices that contain partial utf8 sequences, which is normal in the
buffer write process design. Now these partial utf8 sequences are not consumed
and instead pushed to the next write call where they will be completed from the
main buffer contents.
2025-11-26 09:56:39 +01:00
68b17301cd
refactor: use unchecked Utf8View in utf8 transformation
Internally we use only validated utf8 and unchecked performs much better
and reduces unused error values.
2025-11-26 09:33:04 +01:00
abee93d366
refactor: add unicode.is_lowercase 2025-11-25 22:35:14 +01:00
37428bd698
refactor: add unicode.case_folded_write 2025-11-25 21:42:51 +01:00
e35a0555f1
feat: port to_upper and to_lower to uucode 2025-11-25 21:14:59 +01:00
2ff0521040
refactor: move all zg LetterCasing usage to Buffer.unicode 2025-11-25 17:16:53 +01:00
8b9cc87cab
fix: add back german quotes to char_pairs 2025-11-18 10:55:36 +01:00
Igor Támara
b4b44ec906 refactor: additional characters for smart_insert 2025-11-18 10:50:47 +01:00
Igor Támara
56ea0138a5 feat: goto_bracket goes to the pair bracket under cursor
Uses simple matching nesting, as a complement to tree-sitter approach.

Flow mode shorcut ctrl+shit+\ ala Code
2025-11-17 18:43:42 +01:00
5cfe2f6be4
feat: add some braile spinners to unicode.zig
Might be useful somewhere...
2025-10-07 20:56:55 +02:00
717bef9c61
build: update to latest libvaxis and zg api 2025-06-04 22:22:52 +02:00
e70972f357
refactor: remove duplicate char_pairs entries 2025-03-06 17:11:03 +01:00
c984f3c392
feat: add smart_delete_backward command for improved smart pair handling 2025-03-04 19:51:31 +01:00
9f2e3bf4b4
fix: load case data early on startup instead of on demand
This is to avoid an issue with the decompressor causing heap
corruption on macos.

closes #169
2025-02-12 18:13:07 +01:00
c0a9be21f5
feat: sanitize non utf-8 and display a status bar warning 2024-12-18 15:52:57 +01:00
6bab2e6cda refactor: move buffer module to a subdirectory 2024-03-02 20:14:48 +01:00
Renamed from src/unicode.zig (Browse further)