summaryrefslogtreecommitdiff
path: root/src/tui/dummy.go
AgeCommit message (Collapse)Author
2025-10-09Revise color configurationJunegunn Choi
2025-06-25Support full-line background color in the list sectionJunegunn Choi
Close #4432
2025-05-30Fix ANSI attributes lost when 'regular' attribute is set to fg or nthJunegunn Choi
Examples: echo -e "\x1b[33;3mfoo \x1b[mbar" | fzf --ansi --color fg:regular echo -e "\x1b[33;3mfoo \x1b[mbar" | fzf --ansi --color nth:regular
2025-02-01Add {show,hide,toggle}-input and expose $FZF_INPUT_STATEJunegunn Choi
2025-01-30Add --no-input to hide the input section (#4210)Junegunn Choi
Close #2890 Close #1396 You can't type in queries in this mode, and the only way to trigger an fzf search is to use `search(...)` action. # Click header to trigger search fzf --header '[src] [test]' --no-input --layout reverse \ --header-border bottom --input-border \ --bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}'
2025-01-25Add 'bell' action to ring the terminal bellJunegunn Choi
2025-01-20Make 'current-fg' inherit from 'fg' to simplify configurationJunegunn Choi
If you do not want 'current-fg' to inherit attributes of 'fg', prefix it with 'regular:' to reset them. # italic and underline fzf --color fg:italic,current-fg:underline # only underline fzf --color fg:italic,current-fg:regular:underline
2025-01-16Allow displaying --nth parts in a different text styleJunegunn Choi
Close #4183
2024-12-31Add --list-border for additional border around the list sectionJunegunn Choi
Close #4148
2024-05-07Refactor the code so that fzf can be used as a library (#3769)Junegunn Choi
2024-01-24Fix Windows buildJunegunn Choi
Fix #3598
2023-11-10Revert "Sixel and Kitty image support on Windows binary (#2544)"Junegunn Choi
This reverts commit 68db9cb499ab32190edae6c285942c5fb7cf39ed.
2023-11-03Sixel and Kitty image support on Windows binary (#2544)Junegunn Choi
2023-11-02sixel: Export $FZF_PREVIEW_TOP to the preview command (#2544)Junegunn Choi
So that it can determine if it should subtract 1 from $FZF_PREVIEW_LINES to avoid scrolling issue of Sixel image that touches the bottom of the screen.
2023-10-26(Experimental) Improve Sixel graphics support (#2544)Junegunn Choi
Progress: * Sixel image can now be displayed with other text, and is scrollable * If an image can't be displayed entirely due to the scroll offset, fzf will render a wireframe to indicate that an image should be displayed * Renamed $FZF_PREVIEW_{WIDTH,HEIGHT} to $FZF_PREVIEW_PIXEL_{WIDTH,HEIGHT} for clarity * Added bin/fzf-preview.sh script to demonstrate how to display an image using Kitty or Sixel protocol An example: ls *.jpg | fzf --preview='seq $((FZF_PREVIEW_LINES*9/10)); fzf-preview.sh {}; seq 100' A known issue: * If you reduce the size of the preview window, the image may extend beyond the preview window
2023-10-23Experimental Sixel support (#2544)Junegunn Choi
2023-10-07Experimental support for Kitty image protocol in preview windowJunegunn Choi
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 '
2023-01-16Better support for Windows terminalsJunegunn Choi
* Default border style on Windows is changed to `sharp` because some Windows terminals are not capable of displaying `rounded` border characters correctly. * If your terminal emulator renders each box-drawing character with 2 columns, set `RUNEWIDTH_EASTASIAN` environment variable to `1`.
2022-09-28Implement height range (--height ~[VALUE][%])Junegunn Choi
Close #2953
2022-08-26Add support for ANSI strike-through (#2932)Emil Vanherp
Close #2932 Co-authored-by: Emil Vanherp <emil@vanherp.me>
2022-03-29Modernize build tagsJunegunn Choi
2020-11-25Support ANSI code for clearing the rest of the line (ESC[0K)Junegunn Choi
Some programs use it to set the background color for the whole line. fzf --preview "printf 'normal \x1b[42mgreen\x1b[0K \x1b[43myellow\x1b[m\nnormal again'" fzf --preview 'delta <(echo foo) <(echo bar) < /dev/tty' Fix #2249
2020-10-31Revert "Prefer LightRenderer on Windows if it's available"Junegunn Choi
This reverts commit 7915e365b364af4c4287e35f4697f6e3cfe33284 due to https://github.com/junegunn/fzf.vim/issues/1152#issuecomment-719696495.
2020-10-31Prefer LightRenderer on Windows if it's availableJunegunn Choi
Fix #1766
2020-10-25Add support for text styling using --colorJunegunn Choi
Close #1663
2020-10-18Implement streaming preview window (#2215)Junegunn Choi
Fix #2212 # Will start rendering after 200ms, update every 100ms fzf --preview 'for i in $(seq 100); do echo $i; sleep 0.01; done' # Should print "Loading .." message after 500ms fzf --preview 'sleep 1; for i in $(seq 100); do echo $i; sleep 0.01; done' # The first line should appear after 200ms fzf --preview 'date; sleep 2; date' # Should not render before enough lines for the scroll offset are ready rg --line-number --no-heading --color=always ^ | fzf --delimiter : --ansi --preview-window '+{2}-/2' \ --preview 'sleep 1; bat --style=numbers --color=always --pager=never --highlight-line={2} {1}'
2020-05-18Do not disable mouse after execute(-silent) when --height option is usedJunegunn Choi
The action takes place in the alternate screen so the offsets should still be correct.
2019-12-12Add preview-fg and preview-bg for --colorJunegunn Choi
Close #1776
2017-09-09Clean up renderer codeJunegunn Choi
Remove code that is no longer relevant after the removal of ncurses renderer. This commit also fixes background color issue on tcell-based FullscreenRenderer (Windows).
2017-04-28Support CTRL-Z (SIGSTOP)Junegunn Choi
2017-02-04Add --border option to draw horizontal lines above and below the finderJunegunn Choi
Goes well with --height
2017-01-22Drop ncurses dependencyJunegunn Choi
Close #818