kitty/kittens
Kovid Goyal a1085a78c3
Some checks are pending
CI / Linux (python=3.14 cc=clang sanitize=1) (push) Waiting to run
CI / Linux (python=3.12 cc=gcc sanitize=0) (push) Waiting to run
CI / Linux (python=3.13 cc=gcc sanitize=1) (push) Waiting to run
CI / Linux package (push) Waiting to run
CI / Bundle test (macos-latest) (push) Waiting to run
CI / Bundle test (ubuntu-latest) (push) Waiting to run
CI / macOS Brew (push) Waiting to run
CI / Test ./dev.sh and benchmark (push) Waiting to run
CodeQL / CodeQL-Build (actions, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, macos-latest) (push) Waiting to run
CodeQL / CodeQL-Build (c, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (go, ubuntu-latest) (push) Waiting to run
CodeQL / CodeQL-Build (python, ubuntu-latest) (push) Waiting to run
Depscan / Scan dependencies for vulnerabilities (push) Waiting to run
ask kitten: Fix clicks hitting the wrong choice when the dialog does not fit
The dialog was drawn by writing newlines and relying on the terminal to
wrap long lines, recording clickable ranges assuming nothing scrolled or
wrapped. When the content was taller than the window, the screen
scrolled and every clickable range was off by the scroll amount.

Now the full layout is computed up front, with clickable ranges relative
to it, and rows are drawn with absolute cursor positioning and line
wrapping disabled, so the terminal never scrolls or wraps. The boxed
choice layout is used only if it fits entirely, otherwise the compact
one is used, and if even that does not fit, the content is bottom
aligned so the choices remain visible. Choices too wide for the screen
are truncated with an ellipsis.

Also fix:
 - The hidden text placeholder not being clickable when it wraps over
   multiple lines, its clickable range going stale after a resize, and
   its range including one cell too many.
 - Compact choice ranges being computed by iterating over a map, putting
   them in random order when several choices share a line.
 - An empty box row or compact row being output when the first choice is
   wider than the screen.
 - truncate_at_space using a cell width as a byte offset, splitting
   multi-byte characters, and looping forever when a character is wider
   than the available width.

Closes #10883
2026-11-17 19:26:38 +05:30
..
ask ask kitten: Fix clicks hitting the wrong choice when the dialog does not fit 2026-11-17 19:26:38 +05:30
broadcast Merge origin/master into go-kitten-ports 2026-08-18 16:18:54 +05:30
choose_files Cleanup previous PR 2026-11-17 19:11:40 +05:30
choose_fonts choose-fonts: Fix style ordering for negative axis values 2026-10-27 22:52:24 +08:00
clipboard Docs: Correct protocol references, examples and generated help 2026-10-28 13:24:43 +08:00
command_palette Fix #10711 2026-10-21 10:45:01 +05:30
desktop_ui Cleanup previous PR 2026-10-31 09:28:45 +05:30
diff Apply deferred directory permissions children first when extracting tar 2026-10-16 19:12:51 +05:30
dnd dnd kitten: Fix failure to start in a non-writable directory 2026-11-12 18:54:46 +05:30
hints hints: Migrate from regexp2 v1 to v2 2026-11-07 05:54:16 +05:30
hyperlinked_grep Cleanup previous PR 2026-11-01 08:23:00 +05:30
icat icat: Write unicode placeholders in a single write 2026-10-08 12:00:20 -04:00
notify Fix notification close mode 2026-08-28 11:20:05 +05:00
pager autoformat 2026-08-05 05:32:56 +05:30
panel Fix #10603 2026-10-05 04:16:54 +05:30
query_terminal autoformat 2026-08-05 05:32:56 +05:30
quick_access_terminal Fix #10603 2026-10-05 04:16:54 +05:30
remote_file remote_file: Only reset the terminal when stdout is a tty 2026-11-01 12:00:40 +05:30
resize_window Cleanup previous PR 2026-10-09 19:51:38 +05:30
show_key autoformat 2026-08-05 05:32:56 +05:30
ssh ssh kitten: Resolve HOME when using --symlink-strategy=resolve 2026-10-25 19:09:11 +05:30
themes Cleanup previous PR 2026-10-31 08:33:43 +05:30
transfer Transfer kitten: Replace existing links when receiving files 2026-10-21 20:35:07 +05:30
tui Make ty 79 happy 2026-09-08 09:35:54 +05:30
unicode_input autoformat 2026-08-05 05:32:56 +05:30
__init__.py
runner.py autoformat 2026-08-05 05:32:56 +05:30