summaryrefslogtreecommitdiffstats
path: root/test
AgeCommit message (Collapse)Author
2020-06-21Add preview action for --bindJunegunn Choi
Fix #2010 Fix #1638
2020-06-07Add backward-eof event for --bindJunegunn Choi
2020-04-21Improve error messages (#1962)Jack Bates
* Add RuboCop Minitest extension * Improve error messages * Use chomp option
2020-04-18Make flaky tests reliable (#1978)Jack Bates
2020-04-13[zsh-completion] Fix error with backslash-prefixed commandsJunegunn Choi
Fix #1973 Fix #1974 Fix #1975
2020-04-13Run rubocop --auto-correct --disable-uncorrectable (#1967)Jack Bates
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2020-04-03[fzf-tmux] Fall back to plain fzf when split failedJunegunn Choi
2020-04-03[fzf-tmux] Add option to start fzf in tmux popup windowJunegunn Choi
Requires latest tmux built from source (e.g. brew install tmux --HEAD) Examples: # 50%/50% width and height on the center of the screen fzf-tmux -p # 80%/80% fzf-tmux -p80% # 80%/40% fzf-tmux -p80%,40% # Separate -w and -h fzf-tmux -w80% -h40% # 80%/40% at position (0, 0) fzf-tmux -w80% -h40% -x0 -y0 You can configure key bindings and fuzzy completion to open in tmux popup window like so: FZF_TMUX_OPTS='-p 80%'
2020-03-29Fix failing test caseJunegunn Choi
2020-03-29[shell] Update CTRL-R to remove duplicate commandsJunegunn Choi
Close #1940 Related: #1363 #749 #270 #49 #88 #492 #600
2020-03-24[zsh-completion] Fix a bug where _fzf_complete did not iterate through args ↵Chitoku
(#1936)
2020-03-11Add --keep-right option to keep the right end of the line visibleJunegunn Choi
Close #1652
2020-03-11Fix completion testJunegunn Choi
2020-03-11Change custom fuzzy completion APIJunegunn Choi
To make it easier to write more complex fzf options. Although this does not break backward compatibility, users are encouraged to update their code accordingly. # Before _fzf_complete "FZF_ARG1 FZF_ARG2..." "$@" < <( # Print candidates ) # After _fzf_complete FZF_ARG1 FZF_ARG2... -- "$@" < <( # Print candidates )
2020-03-07Add retries to CTRL-R tests to avoid intermittent errors on Travis CIJunegunn Choi
- https://travis-ci.org/junegunn/fzf/jobs/659496745#L676 Related #1900
2020-03-04Fix flaky test caseJunegunn Choi
Make sure that the shell is ready before hitting CTRL-R 1) Error: TestFish#test_ctrl_r_multiline: RuntimeError: timeout test/test_go.rb:50:in `wait' test/test_go.rb:125:in `until' test/test_go.rb:1857:in `test_ctrl_r_multiline'
2020-03-03Ignore xterm OSC control sequencesJunegunn Choi
- OSC Ps ; Pt BEL - OSC Ps ; Pt ST Fix #1415
2020-02-29[bash] Fix --query argument of CTRL-RJunegunn Choi
Fix #1898
2020-02-28Test multi-line C-r (#1892)Jack Bates
2020-02-28[bash] Start C-r search with current command line (#1886)Jack Bates
Restore the original line when search is aborted. Add --query "$READLINE_LINE" and fall back to the current behavior pre Bash 4. Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2020-02-28Clean up test shell initializationJunegunn Choi
- Fix 'make docker-test' - Set fish_history to an empty string since 'fish --private' is not available prior to fish 3.0
2020-02-28Use a more robust way to check if the shell is readyJunegunn Choi
2020-02-28Add backward-delete-char/eof action (#1891)James Wright
'backward-delete-char/eof' will either abort if query is empty or delete one character backwards.
2020-02-21[bash] Put C-t items at point in vi mode (#1876)Jack Bates
Be consistent with emacs mode and put the items at the point vs. the end of the command line.
2020-02-17Make pointer and multi-select marker customizable (#1844)Hiroki Konishi
Add --pointer and --marker option which can provide additional context to the user
2019-12-07Add clear-query and clear-selectionJunegunn Choi
Close #1787 Related #1364
2019-12-06Properly clear list when --header-lines not filled on reloadJunegunn Choi
2019-12-06'reload' action should be allowed even where there's no matchJunegunn Choi
If the command template doesn't have any placeholder expressions. : | fzf --bind 'space:reload:seq 10'
2019-11-15Add --info=STYLE [default|inline|hidden]Junegunn Choi
Close #1738
2019-11-12'reload' action should reset multi-selectionJunegunn Choi
2019-11-12'reload' action should reset --header-linesJunegunn Choi
2019-11-10Add test cases for --phony and reload actionJunegunn Choi
2019-11-02Fix behavior of 'deselect-all' to only deselect matchesJunegunn Choi
To make it consistent with select-all and toggle-all. Close #1364
2019-11-02Fix flaky test caseJunegunn Choi
2019-11-02--multi to take optional argument to limit the number of selectionJunegunn Choi
Close #1718 Related #688
2019-11-02Fix flaky test caseJunegunn Choi
2019-10-27Add 'f' flag for placeholder expression (#1733)Simon Fraser
If present the contents of the selection will be placed in a temporary file, and the filename will be placed into the string instead.
2019-02-22Export FZF_PREVIEW_LINES and FZF_PREVIEW_COLUMNS to preview processJunegunn Choi
fzf will still override LINES and COLUMNS as before but they may not hold the correct values depending on the default shell. Close #1314
2019-02-19Add placeholder expression for zero-based item index: {n} and {+n}Junegunn Choi
Close #1482
2018-12-22Fix tab width after ANSI reset code in preview windowJunegunn Choi
Close #1423
2018-12-19Inverse-only matches should not reorder the remaining resultsJunegunn Choi
Fix #1458
2018-12-05Render preview window when the initial query fails to matchJunegunn Choi
Only if preview template contains {q} Fix #1452 Related #1307
2018-08-10[vim] Clear temporary window-local working directoryJunegunn Choi
Close #1085 Close #1086 Close https://github.com/junegunn/fzf.vim/issues/678
2018-06-10Provide an option to reverse items only (#1267)Akinori MUSHA
2018-06-10Improve preview window update eventsJunegunn Choi
- Update preview window even if there is no match for the query string if any of the placeholder expressions evaluates to a non-empty string. - Also, if the command template contains {q}, preview window will be updated if the query string changes even though the focus remains on the same item. An example: git log --oneline --color=always | fzf --reverse --ansi --preview \ '[ -n {1} ] && git show --color=always {1} || git show --color=always {q}' Close #1307
2018-06-01Fix flaky test casesJunegunn Choi
2017-12-03Fix assertions in test_dynamic_completion_loaderJunegunn Choi
2017-12-03[bash-completion] Fix custom completion with dynamic loader enabledJunegunn Choi
After _completion_loader is called, instead of loading the entire completion.bash file, just restore the fzf completion for the current command. `_fzf_orig_completion_$cmd` is only set if _completion_loader actually changed the completion options to avoid infinite loop. Close #1170
2017-12-02Add accept-non-empty actionJunegunn Choi
'accept-non-empty' is similar to 'accept' (which is bound to 'enter' and 'double-click' by default) but it prevents fzf from exiting without any selection. Close #1162
2017-12-01Add replace-query actionJunegunn Choi
replace-query action replaces the query string with the current selection. If the selection is too long, it will be truncated. If the line contains meta-characters of fzf search syntax, it is possible that the line is no longer included in the updated result. e.g. echo '!hello' | fzf --bind ctrl-v:replace-query Close #1137