summaryrefslogtreecommitdiff
path: root/src/tui
AgeCommit message (Collapse)Author
2024-12-31Add --list-border for additional border around the list sectionJunegunn Choi
Close #4148
2024-12-14Remove unused interfaceJunegunn Choi
2024-12-14Fix redundant clearing of the windows with non-default bg colorJunegunn Choi
2024-12-12RefactorJunegunn Choi
2024-12-12Use Has{Top,Right,Bottom,Left}() where possibleJulian Prein
De-duplicate code and reduce the amount of code that has to be changed when new BorderShapes are being added. This also adds and uses the missing HasBottom().
2024-12-02Fix line wrap toggle when switching between screensJunegunn Choi
Fix #4099
2024-11-03Fix characters from previous preview not being clearedJunegunn Choi
Fix #4075
2024-08-14Support hyperlinks (OSC 8) in the main windowJunegunn Choi
Close #2557
2024-08-14Add support for hyperlinks in preview windowJunegunn Choi
Close #2165
2024-07-01Fill background color in padding areaJunegunn Choi
fzf --color bg:blue --border --padding 1,2
2024-06-20Code cleanupJunegunn Choi
2024-06-17Improved --sync behaviorJunegunn Choi
When --sync is provided, fzf will not render the interface until the initial filtering and associated actions (bound to any of 'start', 'load', or 'result') are complete.
2024-06-12Fix invalid mouse offset for --height on WindowsJunegunn Choi
2024-06-02Fix invalid default of selected-hl (--color)Junegunn Choi
It should default to 'hl' instead of 'current-hl'
2024-06-01Fix --height on WindowsJunegunn Choi
2024-05-24Fix incorrect colors for selected-{fg,bg,hl}Junegunn Choi
When a non-default base color scheme is specified, fzf would choose incorrect colors for selected-*. fzf --color 'light,fg:238,bg:255,bg+:253' -m
2024-05-23execute: Open separate handles to /dev/tty (in, out, err)Junegunn Choi
# This will no longer cause 'Vim: Warning: Output is not to a terminal' fzf --bind 'enter:execute:vim {}' > /tmp/foo
2024-05-22Add print(...) actionJunegunn Choi
2024-05-18Add --tmux option to replace fzf-tmux scriptJunegunn Choi
2024-05-18chore: use strings.ReplaceAll (#3801)Zhizhen He
2024-05-15Refactor tui.TtyIn()Junegunn Choi
2024-05-15Revert "Close handles to /dev/tty", instead reuse handlesJunegunn Choi
2024-05-14Close handles to /dev/ttyJunegunn Choi
2024-05-14Render UI directly to /dev/ttyJunegunn Choi
See https://github.com/junegunn/fzf/discussions/3792 This allows us to separately capture the standard error from fzf and its child processes, and there's less chance of user errors of redirecting the error stream and hiding fzf.
2024-05-07Add color names: selected-{fg,bg,hl}Junegunn Choi
2024-05-07Refactor the code so that fzf can be used as a library (#3769)Junegunn Choi
2024-05-05Add click-header event for reporting clicks within header (#3768)Kuremu
Sets $FZF_CLICK_HEADER_LINE and $FZF_CLICK_HEADER_COLUMN env vars with coordinates of the last click inside and relative to the header and fires click-header event. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2024-05-05Fix rendering of preview window border of tcell rendererJunegunn Choi
(sleep 1; find .) | go run -tags tcell main.go --bind 'space:change-preview-window(60%|70%|80%|90%|border-left|border-right|border-vertical|border-top|border-horizontal|border-bottom|border-sharp|border-double|border-block|hidden|left|up|down|right|up|down|)' \ --preview 'cat {}' --color bg:red,preview-bg:blue \ --border --margin 3
2024-05-05Reduce flicking when changing the size of the preview window with --borderJunegunn Choi
(sleep 1; find .) | fzf --bind 'space:change-preview-window(60%|70%|80%|90%|border-left|border-right|border-vertical|border-top|border-horizontal|border-bottom|border-sharp|border-double|border-block|hidden|left|up|down|right|up|down|)' \ --preview 'cat {}' --color bg:red,preview-bg:blue \ --border --margin 3
2024-04-13Enable profiling options when 'pprof' tag is set (#2813)Charlie Vieth
This commit enables cpu, mem, block, and mutex profling of the FZF executable. To support flushing the profiles at program exit it adds util.AtExit to register "at exit" functions and mandates that util.Exit is used instead of os.Exit to stop the program. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2024-04-13Fix tcell buildJunegunn Choi
2024-04-13Export $FZF_KEY environment variable to child processesJunegunn Choi
It's the name of the last key pressed. Related #3412
2024-04-10Add jump and jump-cancel eventsJunegunn Choi
Close #3412 # Default behavior fzf --bind space:jump # Same as jump-accept action fzf --bind space:jump,jump:accept # Accept on jump, abort on cancel fzf --bind space:jump,jump:accept,jump-cancel:abort # Change header on jump-cancel fzf --bind 'space:change-header(Type jump label)+jump,jump-cancel:change-header:Jump cancelled'
2024-04-09Disable line wrapping during renderingJunegunn Choi
Prevent unwanted line wraps that break the layout when the actual display width of a character is different than expected.
2024-03-09Fix preview area not being cleared when using certain types of border stylesJunegunn Choi
fzf --preview 'sleep 3; date' --preview-window hidden \ --bind ctrl-/:change-preview-window:up,border-bottom
2024-02-010.46.1Junegunn Choi
2024-02-01Fix tests for tcell buildJunegunn Choi
2024-01-27junegunn/uniseg -> rivo/unisegJunegunn Choi
https://github.com/rivo/uniseg/pull/47
2024-01-24Fix Windows buildJunegunn Choi
Fix #3598
2024-01-21Change mattn/go-runewidth dependency to rivo/uniseg for accurate resultsJunegunn Choi
Related #3588 #3588 #3567
2024-01-14Remove 'replace' directive for 'go install' compatibilityJunegunn Choi
Close #3577
2024-01-07Add 'result' event that is triggered when the result list is readyJunegunn Choi
Close #3560
2023-11-120.44.0Junegunn Choi
2023-11-12Fix Home, End on rxvt-unicode (#3507)Tomáš Janoušek
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-02Fix regression where tcell renderer not clearing the preview windowJunegunn 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-11-02sixel: Better handling of animated GIFs (#2544)Junegunn Choi
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