summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2021-10-150.27.30.27.3Junegunn Choi
2021-10-15Add more tests of placeholder flags and simplify its logic (#2624)Vlastimil Ovčáčík
* [tests] Test fzf's placeholders and escaping on practical commands This tests some reasonable commands in fzf's templates (for commands, previews, rebinds etc.), how are those commands escaped (backslashes, double quotes), and documents if the output is executable in cmd.exe. Both on Unix and Windows. * [tests] Add testing of placeholder parsing and matching Adds tests and bit of docs for the curly brackets placeholders in fzf's template strings. Also tests the "placeholder" regex. * [tests] Add more test cases of replacing placeholders focused on flags Replacing placeholders in templates is already tested, this adds tests that focus more on the parameters of placeholders - e.g. flags, token ranges. There is at least one test for each flag, not all combinations are tested though. * [refactoring] Split OS-specific function quoteEntry() to corresponding source file This is minor refactoring, and also the function's test was made crossplatform. * [refactoring] Simplify replacePlaceholder function Should be equivalent to the original, but has simpler structure.
2021-10-15Render spinner on info line during "reload"Junegunn Choi
Fix #2637
2021-10-10Add riscv64 build target (#2626)Xeonacid
Build successfully on Arch Linux RISC-V.
2021-10-10[vim] Empty out $FZF_DEFAULT_COMMAND before unletting itJunegunn Choi
For Vim 8.0.1831 and below * https://github.com/vim/vim/issues/1116 Fix https://github.com/junegunn/fzf.vim/issues/1301
2021-10-04Enable manually trigger on GitHub Workflows (#2620)Vlastimil Ovčáčík
2021-10-04Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 (#2612)dependabot[bot]
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty) from 0.0.12 to 0.0.14. - [Release notes](https://github.com/mattn/go-isatty/releases) - [Commits](https://github.com/mattn/go-isatty/compare/v0.0.12...v0.0.14) --- updated-dependencies: - dependency-name: github.com/mattn/go-isatty dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-04Bump github.com/mattn/go-shellwords from 1.0.11 to 1.0.12 (#2592)dependabot[bot]
Bumps [github.com/mattn/go-shellwords](https://github.com/mattn/go-shellwords) from 1.0.11 to 1.0.12. - [Release notes](https://github.com/mattn/go-shellwords/releases) - [Commits](https://github.com/mattn/go-shellwords/compare/v1.0.11...v1.0.12) --- updated-dependencies: - dependency-name: github.com/mattn/go-shellwords dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-04Bump github.com/mattn/go-runewidth from 0.0.12 to 0.0.13 (#2591)dependabot[bot]
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth) from 0.0.12 to 0.0.13. - [Release notes](https://github.com/mattn/go-runewidth/releases) - [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.12...v0.0.13) --- updated-dependencies: - dependency-name: github.com/mattn/go-runewidth dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-03Minor refactoring tcell library from tui.go to tcell.goVlastimil Ovčáčík
To prevent including tcell library in non-windows builds.
2021-10-03Add mouse support to the FullscreenRendererVlastimil Ovčáčík
2021-10-03Fix Backspace key to emit BSpace and AltBS events instead of CtrlHVlastimil Ovčáčík
CtrlH events are still sent when appropriate. I have adjusted FullscreenRenderer to match the LightRenderer's behaviour, which seems to be correct.
2021-10-03Add CtrlCaret keyboard event to FullscreenRendererVlastimil Ovčáčík
2021-10-03Fix Ctrl+Space key combination to emit CtrlSpace instead of Rune ' 'Vlastimil Ovčáčík
2021-10-03Add ability to type AltGr characters in FullscreenRenderer on Windows.Vlastimil Ovčáčík
2021-10-03[tests] Add testing of keyboard events in FullscreenRenderer.GetChar()Vlastimil Ovčáčík
This contains one test case of each tcell.Key* event type that can be sent to and subsequently processed in fzf's GetChar(). The test cases describe status quo, and all of them PASS. Small function util.ToTty() was added. It is similar to util.IsTty(), but for stdout (hence the To preposition).
2021-09-29Do not check for --height support on --versionJunegunn Choi
https://github.com/junegunn/fzf.vim/issues/1329
2021-09-28fix: replace broken links with archived onesHiroki Konishi
2021-09-28fix: spelling `Refence` -> `Reference`Hiroki Konishi
2021-09-24Minor changesVlastimil Ovčáčík
- obsolete todo removed, I tested the ev.ch for " " char and it works just fine
2021-09-24[tests] Change tests to output to stdout only with verbose flagVlastimil Ovčáčík
This hides stdout output unless "go test -v" was run.
2021-09-24Change the tests to run on Windows (#2615)Vlastimil Ovčáčík
Most of the "expected" strings in terminal.go test were changed to "text/template" values. Quotes in those string were parametrized in the templates. Two functions handling templates were added for convenience. Templates has the advantage of: - parametrize repetitive strings inside "expected" values - inner and outer quotes were parametrized in templates - long and confusing test values are more readable - templates can be localized for other operating systems
2021-09-14Reset {n} after reloadJunegunn Choi
Fix #2611
2021-08-17Fix spelling error (Extention -> Extension) (#2589)Keating950
2021-08-17Add dependabot config for dependency updates (#2573)Daniel Bast
2021-08-15fix spellinga1346054
2021-08-15improve test logic and be explicit about the testa1346054
2021-08-15use proper bash-style notationa1346054
2021-08-15always use [[ ... ]] and not [ ... ] in bash completionsa1346054
2021-08-15use consistent style for bash [[ ... ]]a1346054
2021-08-15Restore VT hack for Windows (#2580)Michael Kelley
- restore VT enable hack - resolve an issue reported in https://github.com/kelleyma49/PSFzf
2021-08-15Minor readme change (#2578)Leon Tepe
`CTRL-K` moves up and `CTRL-J` moves down, not the other way around (same for `CTRL-P` and `CTRL-N`
2021-06-08Do not show preview window by default if `--preview` is emptyJunegunn Choi
Close #2516
2021-06-04[vim] Add 'sinklist' as a synonym to 'sink*'Junegunn Choi
So that it's easier to add a sinklist function to a spec dictionary. let spec = { 'source': source, 'options': ['--preview', preview] } function spec.sinklist(matches) echom string(a:matches) endfunction call fzf#run(fzf#wrap(spec))
2021-06-010.27.20.27.2Junegunn Choi
2021-06-01Fix bug where `--read0` not properly displaying long linesJunegunn Choi
Fix #2508
2021-05-26Allow specifying 16 base ANSI colors by their namesJunegunn Choi
Close #2502
2021-05-23Mention NetBSD package and how to install it (#2499)Thomas Klausner
Close #2487
2021-05-220.27.10.27.1Junegunn Choi
2021-05-22Add 'unbind' actionJunegunn Choi
Fix #2486
2021-05-22[man] Clarification on --select-1 and --exit-0Junegunn Choi
2021-05-21[vim] Workaround for Neovim bug of unconditionally evaluating `unlet $ENV_VAR`Junegunn Choi
See #2495
2021-05-19[vim] Update README-VIMJunegunn Choi
2021-05-19[vim] Use terminal buffer on 'down' layout on regular Vim on terminalJunegunn Choi
When 'down' layout was used on regular Vim on terminal, fzf would open below the editor using `--height` option. This was the only case where terminal buffer was not used (the code was written when Vim didn't have builtin terminal) and this exception has been a constant source of confusion. This commit makes fzf open in a terminal buffer even in that case.
2021-05-19[vim] Use FZF_DEFAULT_COMMAND instead of STDIN pipeJunegunn Choi
So that fzf can finish immediately even when the input process doesn't handle SIGPIPE and keeps running. Fix #2481
2021-05-14Replace RuneWidth to StringWidth to handle grapheme clustersJunegunn Choi
Fix #2482
2021-04-29ADVANCED.md: tmux 3.2 is officially releasedJunegunn Choi
2021-04-28[vim] Fix screen offset of relatively positioned popup windowJunegunn Choi
Fix #2461
2021-04-17[vim] Support relative-to-window positioning of popup (#2443)Tom Picton
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2021-04-10Fix goreleaser.ymlJunegunn Choi