mirror of
https://github.com/junegunn/fzf.git
synced 2026-08-20 13:37:31 +02:00
Close #3228 * Works inside and outside of tmux * There is a problem where fzf unnecessarily displays the scroll offset indicator at the topbright of the screen when the image just fits the preview window. This is because `kitty icat` generates an extra line after the image area. # A 5-row images; an extra row at the end confuses fzf ["\e_Ga ... \e[9C̅̅ࠪ̅̍ࠪ̅̎ࠪ̅̐ࠪ̅̒ࠪ̅̽ࠪ̅̾ࠪ̅̿ࠪ̅͆ࠪ̅͊ࠪ̅͋ࠪ\n", "\r\e[9C̍̅ࠪ̍̍ࠪ̍̎ࠪ̍̐ࠪ̍̒ࠪ̍̽ࠪ̍̾ࠪ̍̿ࠪ̍͆ࠪ̍͊ࠪ̍͋ࠪ\n", "\r\e[9C̎̅ࠪ̎̍ࠪ̎̎ࠪ̎̐ࠪ̎̒ࠪ̎̽ࠪ̎̾ࠪ̎̿ࠪ̎͆ࠪ̎͊ࠪ̎͋ࠪ\n", "\r\e[9C̐̅ࠪ̐̍ࠪ̐̎ࠪ̐̐ࠪ̐̒ࠪ̐̽ࠪ̐̾ࠪ̐̿ࠪ̐͆ࠪ̐͊ࠪ̐͋ࠪ\n", "\r\e[9C̒̅ࠪ̒̍ࠪ̒̎ࠪ̒̐ࠪ̒̒ࠪ̒̽ࠪ̒̾ࠪ̒̿ࠪ̒͆ࠪ̒͊ࠪ̒͋ࠪ\n", "\r\e[39m\e8"] * Example: fzf --preview=' if file --mime-type {} | grep -qF 'image/'; then # --transfer-mode=memory is the fastest option but if you want fzf to be able # to redraw the image on terminal resize or on 'change-preview-window', # you need to use --transfer-mode=stream. kitty icat --clear --transfer-mode=memory --stdin=no --place=${FZF_PREVIEW_COLUMNS}x${FZF_PREVIEW_LINES}@0x0 {} else bat --color=always {} fi ' |
||
|---|---|---|
| .. | ||
| algo | ||
| protector | ||
| tui | ||
| util | ||
| ansi.go | ||
| ansi_test.go | ||
| cache.go | ||
| cache_test.go | ||
| chunklist.go | ||
| chunklist_test.go | ||
| constants.go | ||
| core.go | ||
| history.go | ||
| history_test.go | ||
| item.go | ||
| item_test.go | ||
| LICENSE | ||
| matcher.go | ||
| merger.go | ||
| merger_test.go | ||
| options.go | ||
| options_test.go | ||
| pattern.go | ||
| pattern_test.go | ||
| reader.go | ||
| reader_test.go | ||
| result.go | ||
| result_others.go | ||
| result_test.go | ||
| result_x86.go | ||
| server.go | ||
| terminal.go | ||
| terminal_test.go | ||
| terminal_unix.go | ||
| terminal_windows.go | ||
| tokenizer.go | ||
| tokenizer_test.go | ||