mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-16 13:08:25 +00:00
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. |
||
|---|---|---|
| .. | ||
| ask | ||
| broadcast | ||
| choose_files | ||
| choose_fonts | ||
| clipboard | ||
| command_palette | ||
| desktop_ui | ||
| diff | ||
| dnd | ||
| hints | ||
| hyperlinked_grep | ||
| icat | ||
| notify | ||
| pager | ||
| panel | ||
| query_terminal | ||
| quick_access_terminal | ||
| remote_file | ||
| resize_window | ||
| show_key | ||
| ssh | ||
| themes | ||
| transfer | ||
| tui | ||
| unicode_input | ||
| __init__.py | ||
| runner.py | ||