mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-11-23 16:45:42 +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. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| archive.go | ||
| archive_test.go | ||
| calibre.go | ||
| cmd_preview.go | ||
| collection.go | ||
| ffmpeg.go | ||
| filters.go | ||
| footer.go | ||
| graphics.go | ||
| image_preview.go | ||
| image_preview_test.go | ||
| main.go | ||
| main.py | ||
| main_test.go | ||
| preview.go | ||
| preview_test.go | ||
| results.go | ||
| results_test.go | ||
| save-file.go | ||
| scan.go | ||
| scan_test.go | ||
| search-bar.go | ||