Commit graph

184 commits

Author SHA1 Message Date
15b582243c
fix: ignore modifiers on all modifier keys
This allows combining of modifier key event keybindings without having
to bind all modifier combinations. ie. with this we can use fast_scroll
and jump_mode at the same time by holding both modifiers down.
2026-01-14 11:03:46 +01:00
2d5288aa6f
refactor: remove unused error return in Plane.put_yx and Plane.cursor_move_yx 2026-01-13 16:19:47 +01:00
52dfc1e706
fix: broken cursor movement in cursor_move_yx causes info view to miss render 2026-01-13 16:17:15 +01:00
25d5f80a4c
refactor: drop all c_(u)int usage in Plane
The use of c_int and c_uint comes from the days when flow supported
building agains notcurses has a c API.
2026-01-13 12:44:40 +01:00
35be98f95c
fix: Make absolute Plane writing functions update column correctly
Writing to an absolute plane position should update the plane's cursor
position before incrementing it even if it is not actually used.

closes #446
2026-01-13 12:44:40 +01:00
6633dd1c0e
refactor: add function to map kp_ movement keys to regular movement keys 2025-12-16 13:21:30 +01:00
13257888fd
fix: treat kp_ numerics and operators as input keys 2025-12-16 13:11:39 +01:00
ea46f6559d
refactor: add missing key names for keypad numeric keys 2025-12-16 12:33:29 +01:00
55b428cea6
fix: never use base layout keycodes
closes #389
2025-12-13 23:11:33 +01:00
1298ba3195
fix: don't overwrite shifted keycode with alternate text 2025-12-13 23:10:15 +01:00
42ddbe5f2f
refactor: add egc_chunk_col_pos function 2025-12-12 14:27:49 +01:00
ba8148a5c8
refactor: format unknown key event values in input module 2025-12-10 17:03:54 +01:00
672d92424d
fix: windows gui build 2025-12-09 20:51:16 +01:00
1c0e66d477
refactor: add Plane.print_right 2025-12-08 18:03:59 +01:00
19569fc18c
refactor: move Layer.cache_storage to Layer.View.cache_storage 2025-12-08 14:35:11 +01:00
b6b1f02565
fix: switch to a shared GraphemeCache and increase it's size to 512kb 2025-12-08 14:32:01 +01:00
4aecc983c0
fix: increase our GraphemeCache instead of libvaxis 2025-12-08 13:50:09 +01:00
090d27d890
refactor: use {t} format specifiers 2025-12-04 14:44:53 +01:00
42ce0e5a7a
fix: index out of range in vaxis.Layer.draw 2025-12-01 20:19:06 +01:00
11d6770913
fix: avoid setting the terminal background color until we know what the system color scheme is
This was in the hope that it might fix kitty's behavior with
enable_terminal_color_scheme enabled. Unfortunately it makes no
difference to kitty (kitty stops sending color scheme updates). I
am commiting these changes anyway as it seems a little cleaner to
avoid setting the background color twice on startup.
2025-11-29 11:05:31 +01:00
b3efc952ee
refactor: report OS error on vaxis.Tty.init failure 2025-11-25 10:17:33 +01:00
b2b34e4710
build: update to libvaxis with uucode support 2025-11-23 21:51:48 +01:00
c674f69a74
fix: button6 and button7 support 2025-11-16 18:11:15 +01:00
d3371d91e6
fix: windows gui build 2025-10-25 00:22:09 +02:00
ca05f24873
feat: add renderer.Layer 2025-10-25 00:09:35 +02:00
3c55ed876b
refactor: allow mocking of root module functions for easier unittesting 2025-10-08 14:18:03 +02:00
f29eac4f6f
fix: update win32 gui build for zig-0.15 2025-10-01 17:00:10 +02:00
6da6af22c8
fix: update win32 tui build for zig-0.15 2025-10-01 16:59:55 +02:00
92ca066dd1
refactor: drop useless comment 2025-09-29 22:46:09 +02:00
b8d2679cbc
Merge branch 'master' into zig-0.15 2025-09-27 23:29:42 +02:00
a5d3eb18f3
feat: add automatic dark/light mode support
This adds a new configuration option `light_theme` and support for automatically
switching the active dark/light theme from terminal events.

closes #302
2025-09-27 23:24:12 +02:00
bf0d4402ea
refactor: lots more writergate fixes - first successful build 2025-09-25 22:01:29 +02:00
e6b39c274c
refactor: lots and lots of writergate changes 2025-09-24 22:30:18 +02:00
96e8100373
Merge branch 'master' into zig-0.15 2025-09-24 18:33:33 +02:00
14dbc08bcf
feat: add string mappings for keypad key events 2025-09-23 22:31:12 +02:00
8903ca86b1
Merge branch 'master' into zig-0.15 2025-09-12 01:05:35 +02:00
251c74a23b
feat: set secondary cursors color from theme in multi cursor mode 2025-09-08 22:07:10 +02:00
44e19d2193
feat: update multi cursor support for latest kitty 2025-09-08 21:38:13 +02:00
15990b9dce
Merge branch 'master' into zig-0.15 2025-08-27 00:04:58 +02:00
6ac8ecd2f0
fix: run zig fmt 2025-08-25 21:16:12 +02:00
dd5bdfdf8a
fix(win32): add missing multi cursor function stubs 2025-08-25 21:13:33 +02:00
5caab36297
feat: add basic POC support for kitty multi cursor protocol 2025-08-25 21:02:53 +02:00
537464093a
Merge branch 'master' into zig-0.15 2025-08-25 19:21:59 +02:00
8454ebc9f4
feat: add check for kitty scaled text support 2025-08-24 16:45:46 +02:00
1afaa3be4f
fix(zig-0.15): more syntax changes 2025-08-22 14:39:20 +02:00
e558502ea2
refactor: port to writergate 2025-08-22 14:26:42 +02:00
55a862eac0
Merge branch 'master' into zig-0.15.0 2025-08-22 13:12:37 +02:00
9d127e4cc3
fix: add support for kitty mouse leave events
This prevents reporting kitty mouse leave events as spurious mouse clicks.
2025-08-18 15:14:50 +02:00
8c716fcf57
Merge branch 'master' into zig-0.15.0 2025-07-23 14:15:58 +02:00
0ce522828d
build: update thespian for new cbor 2025-07-23 12:25:43 +02:00