summaryrefslogtreecommitdiffstats
path: root/src/tui
AgeCommit message (Collapse)Author
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-23Simplify LightRenderer.Size()Junegunn Choi
2023-10-23Experimental Sixel support (#2544)Junegunn Choi
2023-10-11Add mouse events for --bindJunegunn Choi
Close #3473
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-07-16Fix deprecations of ioutil (#3370)Bart
2023-06-10Fix background color of spinner on the preview windowJunegunn Choi
2023-06-10Add new border style: 'thinblock' (#3327)Mike
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-05-21Add key combinations for ctrl-delete and shift-delete (#3284)Syphdias
Currently there is not option to bind ctrl-delete and shift-delete. As suggested by issue #3240, shift-delete could be used to bind "delete entry from history" as it is a common way to do so in other applications, e.g. browsers. This, however, does only implement to use the key combination itself and does not assign a default action to any of them. This does enable to call one's all predefined actions. With the exec action this can expanded like the issue #3240 suggested. If desirable, the key combinations could later get a default behavior. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2023-05-20Update tcell renderer to support block borderJunegunn Choi
2023-05-16Add new border style: 'block'Junegunn Choi
2023-05-16Allow customizing the color of preview scrollbar via 'preview-scrollbar'Junegunn Choi
2023-05-01Fix the background color of the scrollbar inside the preview windowJunegunn Choi
2023-04-26Add 'zero' eventJunegunn Choi
Close #3263
2023-04-01Add 'one' eventJunegunn Choi
Close #2629 Close #2494 Close #459
2023-03-26Respect 'regular' attribute in 'bw' base themeJunegunn Choi
Don't make the text bold if an element is explicitly specified as 'regular'. Fix #3222
2023-03-25Render CR and LF as ␍ and ␊Junegunn Choi
Close #2529
2023-01-24No need to touch mouse flag if it's already falseJunegunn Choi
2023-01-24Temporarily disable mouse mode when switching to an external commandJunegunn Choi
2023-01-24Reenable mouse mode when coming back from an external programJunegunn Choi
Close #3141
2023-01-23Add 'focus' eventJunegunn Choi
Can we find a better name? I have considered the followings. * 'point', because "the pointer" points to the current item. * 'shift', 'switch', 'move', etc. These are not technically correct because the current item can change without cursor movement (--tac, reload, search update) * 'change' is already taken. 'change-current' feels a bit wordy and sounds wrong, 'current-changed' is wordy and doesn't go well with the other event names * 'target', not straightforward Close #3053
2023-01-22Add 'transform-border-label' and 'transform-preview-label'Junegunn Choi
2023-01-16Fix rendering of double-column borders on light rendererJunegunn Choi
2023-01-16Fix rendering of double-column bordersJunegunn Choi
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`.
2023-01-06Add scrollbar to the preview windowJunegunn Choi
2023-01-04Fix preview border on tcell rendererJunegunn Choi
2023-01-03Fix double-click on light rendererJunegunn Choi
2023-01-03Make sure two consecutive double clicks require four clicksJunegunn Choi
2023-01-03Clicks with different x coordinates shouldn't be seen as a double-clickJunegunn Choi
2023-01-01Restore mouse drag mode (#3096)Junegunn Choi
2023-01-01Colors for 'separator' and 'scrollbar' will default to that for 'border'Junegunn Choi
2023-01-01Add scrollbarJunegunn Choi
Close #3096
2022-12-29Add 'load' event that is triggered when the input stream is completeJunegunn Choi
and the first search (with or without query) is complete
2022-12-10Fix uninitialized colors in base themesJunegunn Choi
Fix #3079
2022-12-09Add color name 'preview-label' (#3053)Junegunn Choi
2022-11-18Fix mouse event above fzf finderJunegunn Choi
Fix #2949
2022-11-06Add --border=[bold|double] and --preview-window=border-[bold|double]Junegunn Choi
2022-11-06Fix --border-label and --preview-label on tcell rendererJunegunn Choi
2022-11-01Add horizontal separator after info panel (counter)Junegunn Choi
Close #3029
2022-11-01Add --border-label and --border-label-posJunegunn Choi
Close #3022
2022-10-27Add 'start' event that is triggered once when fzf finder startsJunegunn Choi
Close #1622
2022-09-28Implement height range (--height ~[VALUE][%])Junegunn Choi
Close #2953
2022-09-26Fix tcell rendererJunegunn Choi
Fix #2954
2022-08-26Add support for ANSI strike-through (#2932)Emil Vanherp
Close #2932 Co-authored-by: Emil Vanherp <emil@vanherp.me>
2022-07-29Fix mouse location in --height modeJunegunn Choi
Fix #2900
2022-06-17Use SGR mouse mode for larger terminalsJunegunn Choi
Fix #2840
2022-04-04Hide cursor while rendering the screenJunegunn Choi
Fix #2781 Fix #2588 Fix #1805 Fix https://github.com/junegunn/fzf.vim/issues/1370 Fix https://github.com/junegunn/fzf.vim/issues/1060
2022-03-29Modernize build tagsJunegunn Choi
2022-03-09Increase TTY buffer limitJunegunn Choi
Kitty's shell intergration generates a long sequence of key presses in certain cases. As long as the length of the sequence is finite, fzf can process it. Close #2748