summaryrefslogtreecommitdiffstats
path: root/src
AgeCommit message (Collapse)Author
2024-05-19Change default pointer and marker characterJunegunn Choi
* Pointer: '▌' * Marker: '▏' They will still be set to '>' if `--no-unicode` is given. Reasons: * They look okay * They work better with multi-line items (WIP)
2024-05-18Do not 'become' inside a tmux popupJunegunn Choi
fzf --tmux center --bind 'enter:become:vim {}'
2024-05-18Add --tmux option to replace fzf-tmux scriptJunegunn Choi
2024-05-18chore: use strings.ReplaceAll (#3801)Zhizhen He
2024-05-15Fix tcell test caseJunegunn Choi
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-140.52.10.52.1Junegunn Choi
2024-05-09chore: Update flags to include long-form options for case (#3785)LangLangBart
2024-05-07Add color names: selected-{fg,bg,hl}Junegunn Choi
2024-05-07Rename --cursor-line to --highlight-lineJunegunn Choi
2024-05-07Refactor the code to remove global variablesJunegunn Choi
2024-05-07Add --cursor-line to highlight the whole current lineJunegunn Choi
Similar to 'set cursorline' of Vim.
2024-05-07Add current-{fg,bg,hl} as synonyms for {fg,bg,hl}+Junegunn Choi
2024-05-07Refactor the code so that fzf can be used as a library (#3769)Junegunn Choi
2024-05-06Do not enable delayed expansion mode when running cmd.exeJunegunn Choi
And simplify the argument escaping code. Fix #3764. This may breaks some existing use cases, but the mode causes too much trouble when escaping arguments and it makes some things not possible. # Now you can pass special characters to rg process without any escaping problems: &|<>()@^%! fzf --ansi --disabled --bind "change:reload:rg --column --line-number --no-heading --color=always --smart-case -- {q}" # No sudden expansion of the arguments on '!' fzf --disabled --preview "echo {q} {n} {}" --query "&|<>()@^%!" --prompt "&|<>()@^%!"
2024-05-06Fix `change-preview` reset by `change-preview-window`Junegunn Choi
Fix #3770
2024-05-06Count $FZF_CLICK_HEADER_LINE from top to bottomJunegunn Choi
Regardless of `--layout`. https://github.com/junegunn/fzf/pull/3768#issuecomment-2094806558
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-05-05Remove unnecessary flicking when changing the size of the preview windowJunegunn Choi
fzf --bind 'space:change-preview-window(60%|70%|80%|90%|hidden|)' --preview 'cat {}'
2024-05-05Clear characters on 1-column margin after the preview window on the leftJunegunn Choi
2024-05-03Fix --info inline-right not properly clearing the previous outputJunegunn Choi
(seq 100000; sleep 1) | fzf --info inline-right --bind load:change-query:x
2024-04-28Escaping for cmd.exe: always use double quotesJunegunn Choi
2024-04-28Fix escaping for cmd.exeJunegunn Choi
Close #3651 Close #2609
2024-04-28Determine shell type once by the basenameJunegunn Choi
2024-04-28Restore CmdLine parameter when running commands using cmd.exeJunegunn Choi
2024-04-27Add $FZF_POS environment variableJunegunn Choi
Close #2175 Close #3753
2024-04-27Add --with-shell for shelling out with different command and flags (#3746)Junegunn Choi
Close #3732
2024-04-27Add 'change-multi' actionJunegunn Choi
Close #3754
2024-04-25Fix 'reload' not terminating closed standard input streamJunegunn Choi
Fix #3750
2024-04-25Merge identical case clausesJunegunn Choi
2024-04-22Replace fmt.Errorf with no parameters with errors.New (#3747)Cheng
2024-04-20Remove invalid 'result' event when using --sync optionJunegunn Choi
When the search for the initial query doesn't finish immediately fzf would trigger an invalid 'result' event for an empty query. seq 100 | fzf --query 99 --bind result:accept --sync # Prints 99 seq 1000000 | fzf --query 99 --bind result:accept --sync # Should print 99, but fzf would print 1
2024-04-17Fix typo in comment (#3734)hidewrong
Signed-off-by: hidewrong <hidewrong@outlook.com>
2024-04-14Fix streaming filter mode by not running reader callback concurrentlyJunegunn Choi
Close #3728
2024-04-14Improve search performance by limiting the search scopeJunegunn Choi
Find the last occurrence of the last character in the pattern and perform the search algorithm only up to that point. The effectiveness of this mechanism depends a lot on the shape of the input and the pattern.
2024-04-14Improve search performance by pre-calculating bonus matrixJunegunn Choi
This gives yet another 5% boost.
2024-04-14Improve search performance by pre-calculating character classesJunegunn Choi
This simple optmization can give more than 15% performance boost in some scenarios.
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-13Fix unit testsJunegunn 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-04-04Do not trim CR on Windows when --read0 is setJunegunn Choi
2024-04-04Do not hide separator by default on --info=inline-right|hiddenJunegunn Choi