kitty/kittens
Kovid Goyal 0dfd9a832e
choose-files: Cleanup handling of special files in previews
Follow up to the previous commit fixing hangs when previewing named pipes:

- Skip previewing anything that is not a regular file (or a symlink to
  one) in preview_for, before any previewer opens it. This avoids
  unblocking and then breaking writers waiting on a FIFO and covers the
  non-text previewers (images, video, archives, calibre, commands) too.
- Apply the text preview size limit to the symlink target instead of the
  symlink itself, and enforce it while reading so that files growing
  after stat() are also handled.
- Pre-allocate the read buffer based on the file size, as os.ReadFile does.
- Read ignore files during scanning with the same non-blocking reader, so
  a FIFO named .ignore or .gitignore cannot stall the scan.
- Unblock goroutines stuck on FIFOs when tests time out.
2026-11-09 08:42:30 +05:30
..
ask autoformat 2026-08-05 05:32:56 +05:30
broadcast Merge origin/master into go-kitten-ports 2026-08-18 16:18:54 +05:30
choose_files choose-files: Cleanup handling of special files in previews 2026-11-09 08:42:30 +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 Cleanup previous PR 2026-10-30 18:28:40 +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