Junegunn Choi
e2401aca68
Add 'offset-middle' action
3 days ago
Junegunn Choi
59943cbb48
Fire 'result' even when input stream is not complete
...
Related: #3866
3 days ago
Junegunn Choi
02634d404d
Remove {fzf:query} from man page
3 days ago
Junegunn Choi
ed12925f7d
--sync: Suppress initial render also when focus event is bound
3 days ago
Junegunn Choi
e0ddb97ab4
Improved --sync behavior
...
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.
4 days ago
junegunn
b8c01af0fc
Deploying to master from @ junegunn/fzf@6de0a7ddc1 🚀
4 days ago
Junegunn Choi
6de0a7ddc1
--sync: Do not start TUI until initial filtering is complete
5 days ago
Junegunn Choi
79196c025d
Clean up GitHub Actions workflow
...
fzf does not uses tcell-based renderer on systems where light renderer
can be used since dca2262
. So this has become meaningless.
5 days ago
Junegunn Choi
94c33ac020
Fix panic when parent process is killed
...
Fix #3863
5 days ago
Junegunn Choi
b2ecb6352c
Make GET endpoint available from 'execute' and 'transform' actions
6 days ago
Junegunn Choi
9dc3ed638a
--walker-skip should also handle symlinks to directories
...
Fix #3858
7 days ago
dependabot[bot]
0acace1ace
Bump crate-ci/typos from 1.21.0 to 1.22.3 ( #3850 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.21.0 to 1.22.3.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.21.0...v1.22.3 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7 days ago
dependabot[bot]
1a2d37e1e6
Bump golang.org/x/term from 0.20.0 to 0.21.0 ( #3849 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.20.0 to 0.21.0.
- [Commits](https://github.com/golang/term/compare/v0.20.0...v0.21.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
7 days ago
LangLangBart
22adb6494f
chore(shell): Separate declaration and assignment for zsh legacy versions ( #3856 )
1 week ago
Samara Jinnah
e023736c30
[zsh] Prevent glob expansion in history widget ( #3855 )
1 week ago
Junegunn Choi
dca2262fe6
Prefer LightRenderer over tcell on Windows
...
For mouse support on mintty
Fix #3847
1 week ago
Junegunn Choi
0684a20ea3
Fix invalid mouse offset for --height on Windows
1 week ago
Junegunn Choi
a1a72bb8d1
Do not open tmux or winpty in `--filter` mode
1 week ago
ismay
144d55a5be
[fish] Merge history before searching ( #3852 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 week ago
Junegunn Choi
7fc13c5cfd
Less aggressive chunk cache invalidation for --tail
1 week ago
Junegunn Choi
dfee7af57b
Fix divide by zero error with --tiebreak=end for long items
...
Fix #3846
1 week ago
junegunn
9b0e2daf02
Deploying to master from @ junegunn/fzf@590060a16b 🚀
2 weeks ago
Junegunn Choi
590060a16b
Remove unused field
2 weeks ago
Junegunn Choi
368294edf6
Reduce flickering of the list when the list is truncated by --tail
2 weeks ago
Junegunn Choi
c4a9ccd6af
0.53.0
2 weeks ago
Junegunn Choi
cbf91f2ed3
ADVANCED.md: /dev/tty redirection no longer required
2 weeks ago
Junegunn Choi
b1460d4787
hasPreviewFlags should ignore escaped placeholder
...
This reload command wouldn't run before the fix:
: | fzf --bind 'start:reload:echo \{}'
2 weeks ago
Junegunn Choi
7dc9e14874
Update docs
2 weeks ago
Junegunn Choi
1616ed543d
Fix index out of bounds error caused by outdated offset
2 weeks ago
Junegunn Choi
dc73fba188
[man] Clarification on --scheme options
2 weeks ago
Junegunn Choi
ef148dfd37
Handle int32 overflow
...
yes | fzf --tail=10 --preview 'echo "{n}"'
2 weeks ago
Junegunn Choi
93bbb3032d
Add --tail=NUM to limit the number of items to keep in memory
2 weeks ago
Junegunn Choi
4c83d8596d
Add new options to bash completion
2 weeks ago
Junegunn Choi
d453e6d7db
Update ADVANCED.md: Use --tmux instead of fzf-tmux
2 weeks ago
Junegunn Choi
c29533994f
Fix invalid default of selected-hl (--color)
...
It should default to 'hl' instead of 'current-hl'
3 weeks ago
Junegunn Choi
1afe13b5b5
Merge remote-tracking branch 'origin/master' into devel
3 weeks ago
Junegunn Choi
36600eaaa9
Update CHANGELOG: clarification
3 weeks ago
junegunn
3ee1fc2034
Deploying to master from @ junegunn/fzf@124cd70710 🚀
3 weeks ago
Junegunn Choi
e2f93e5a2d
--tmux vs. --height: Last one wins
3 weeks ago
Junegunn Choi
cfdf2f1153
Update README
3 weeks ago
Junegunn Choi
e042143e3f
Immediately close standard output of the child process
...
Fix #3828
3 weeks ago
Junegunn Choi
7c613d0d9b
Do not disable --height on mintty (because it works)
3 weeks ago
Junegunn Choi
b00d46bc14
Fix --height on Windows
3 weeks ago
Junegunn Choi
555b0d235b
Ignore --height option if it's not supported on the platform
...
This is to make shell integration work out of the box on Git bash.
eval "$(fzf --bash)"
vim <CTRL-T>
# would print '--height option is currently not supported on this platform'
3 weeks ago
Junegunn Choi
564daf9a7d
Set standard input of 'man' process to os.Stdin
3 weeks ago
Junegunn Choi
41bcbe342f
Revert "An '--expect' key should execute actions bound to the key"
...
To be backward compatible.
Close #3829
3 weeks ago
LangLangBart
dbe8dc344e
[fish] Use builtins for cd and history ( #3830 )
...
Close #3826
3 weeks ago
Junegunn Choi
e33fb59da1
Update CHANGELOG
3 weeks ago
Junegunn Choi
7aa88aa115
Fix error message on invalid --tmux option
...
fzf --tmux foobar
# not a valid integer: foobar
# ->
# invalid tmux option: foobar (expected: [center|top|bottom|left|right][,SIZE[%]][,SIZE[%]])
3 weeks ago
LangLangBart
2b6d600879
[zsh] Enhance CTRL-R to display multi-line entires ( #3823 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
3 weeks ago
Junegunn Choi
05c765d442
[fish] Add --nth 2..,.. to allow anchored search against command
3 weeks ago
Junegunn Choi
49b496269c
Fix index out of bounds error on scroll-down action
3 weeks ago
Junegunn Choi
7405925952
[bash] Indent multi-line history entries
3 weeks ago
Junegunn Choi
3afd543a7e
[fish] Use perl instead of sed to strip leading tabs
...
https://github.com/junegunn/fzf/pull/3807#discussion_r1619520105
3 weeks ago
Junegunn Choi
b4f2cde5ac
[fish] Better multi-line support for CTRL-R
...
Prepend each entry with an index number so that multi-line entries can
be clearly distinguished.
3 weeks ago
Junegunn Choi
ed53ef7cee
[shell] Add --highlight-line to CTRL-R bindings
3 weeks ago
Junegunn Choi
12630b124d
Make --tmux argument optional
3 weeks ago
Junegunn Choi
1d59ac09d2
Pass-through error message from 'tmux display-popup'
...
fzf --tmux 9999
# height too large
3 weeks ago
Junegunn Choi
a8f3a0dd59
Merge branch 'master' into devel
3 weeks ago
Konstantin-Glukhov
124cd70710
[vim] Do not prepend CWD to path starting with a backslash on Windows ( #3820 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
3 weeks ago
Junegunn Choi
782de139c8
[vim] Native --tmux fix for Neovim
3 weeks ago
Junegunn Choi
32eb32ee5e
Add multi-line example to CHANGELOG
4 weeks ago
Junegunn Choi
2f51eb2b41
Different marker for the first and last line of multi-line entries
...
Can be configured via `--marker-multi-line`
4 weeks ago
Junegunn Choi
0ccbd79e10
Fix --help output: marker default
...
Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com>
4 weeks ago
junegunn
99bd6de541
Deploying to master from @ junegunn/fzf@daa602422d 🚀
4 weeks ago
Junegunn Choi
1fef36e4bc
Do not allow tabs in pointer and marker
4 weeks ago
Junegunn Choi
89375005b5
Fix option validation order
4 weeks ago
Junegunn Choi
88e78c9193
Update integration test to use named pipes
4 weeks ago
Junegunn Choi
29a19ad080
Update CHANGELOG
4 weeks ago
Junegunn Choi
2a039ab746
Describe exit code 126
4 weeks ago
Junegunn Choi
7e9a0fcdbd
Change default --scroll-off to 3
4 weeks ago
Junegunn Choi
7a97532547
Fix --scroll-off for multi-line mode
4 weeks ago
Junegunn Choi
996abb2831
Fix incorrect colors for selected-{fg,bg,hl}
...
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
4 weeks ago
Junegunn Choi
da500a358f
Use bold bar as the default marker
4 weeks ago
Junegunn Choi
c36b846acc
[vim] Open cmd.exe window only on mintty < 3.4.5 without winpty
4 weeks ago
Junegunn Choi
d9b5c9b2be
Address review comments by @Konfekt
...
d4216b0dcc
4 weeks ago
Junegunn Choi
3dee8778d0
execute: Open separate handles to /dev/tty (in, out, err)
...
# This will no longer cause 'Vim: Warning: Output is not to a terminal'
fzf --bind 'enter:execute:vim {}' > /tmp/foo
4 weeks ago
Junegunn Choi
d4216b0dcc
Use MSYS=enable_pcon instead of winpty on mintty 3.4.5 or later
4 weeks ago
Enno
bfe2bf4dce
[vim] Git Bash Mintty: only use cmd.exe if winpty missing ( #3811 )
...
* Git Bash Mintty: only use cmd.exe if winpty missing
Addresses https://github.com/junegunn/fzf/issues/3809
* preferably use term in Git Bash for popup window
See https://github.com/junegunn/fzf/pull/3811#issuecomment-2124241321
4 weeks ago
Junegunn Choi
561f9291fd
[vim] Replace backslashes with forward slashes on win32unix
4 weeks ago
Junegunn Choi
b5b0d6b3ea
Do not run as winpty proxy if winpty is not available
4 weeks ago
Junegunn Choi
a90426b7ca
Add print(...) action
4 weeks ago
Junegunn Choi
303c3bae7f
proxy: Pass SIGINT to the child fzf
4 weeks ago
Junegunn Choi
6b4358f641
An '--expect' key should execute actions bound to the key
...
Fix #3810
4 weeks ago
Junegunn Choi
552158f3ad
Ignore SIGINT when running as proxy
4 weeks ago
Junegunn Choi
7205203dc8
Update CHANGELOG
1 month ago
Junegunn Choi
0cadf70072
Update the summary
1 month ago
Junegunn Choi
076b3d0a9a
Embed man page in the binary and show it on 'fzf --man'
1 month ago
Junegunn Choi
7b0c9e04d3
Change default marker
1 month ago
Junegunn Choi
573df524fe
Use winpty to launch fzf in Git bash (mintty)
...
Close #3806
Known limitation:
* --height cannot be used
1 month ago
Junegunn Choi
aee417c46a
Respect $NO_COLOR environment variable
...
Close #1762
1 month ago
Junegunn Choi
04db44067d
Implement multi-line display of multi-line items
1 month ago
Junegunn Choi
5b204c54f9
Change default pointer and marker character
...
* 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)
1 month ago
junegunn
daa602422d
Deploying to master from @ junegunn/fzf@01e7668915 🚀
1 month ago
Junegunn Choi
04dfb14e32
Do not 'become' inside a tmux popup
...
fzf --tmux center --bind 'enter:become:vim {}'
1 month ago
Junegunn Choi
c24256cba3
Update README
...
* Tidy up
* Mention `--tmux`
1 month ago
Junegunn Choi
685fb71d89
[vim] Use native --tmux option instead of fzf-tmux when possible
1 month ago
Junegunn Choi
83b6033906
Add --tmux option to replace fzf-tmux script
1 month ago
Zhizhen He
01e7668915
chore: use strings.ReplaceAll ( #3801 )
1 month ago
Enno
0994d9c881
Make :FZF work in Vim from Git Bash ( #3798 )
...
* make :FZF work in Vim from Git Bash
Despite its title 'Calling fzf#run with a list as source fail (n)vim is used from git bash' the issue in
https://github.com/junegunn/fzf/issues/3777
of running `:FZF` in Vim in Git Bash was apparently only fixed for Neovim in Git Bash on Windows 11, but not for Vim from Git Bash.
In view of this, replacing /C by ///C might be considered a universal fix.
This PR just proposes the patch in https://github.com/junegunn/fzf/issues/1983 that still seems open.
In view of the fourth item in the most recent 2.45.0 https://github.com/git-for-windows/build-extra/blob/main/ReleaseNotes.md#known-issues little seems to have changed regarding path conversion of arguments containing forward slashes
* prefer doubling slashed instead of generic env. var
If MSYS_NO_PATHCONV=1 is used, then all arguments are preserved, in particular possibly paths passed in s:command.
Therefore, only avoid converting `/C` from `cmd` to a path.
1 month ago
LangLangBart
030428ba43
docs: update zsh integration instructions ( #3794 )
1 month ago
Junegunn Choi
8a110e02b9
Fix tcell test case
1 month ago
Junegunn Choi
86d92c17c4
Refactor tui.TtyIn()
1 month ago
Junegunn Choi
c4cc7891b4
Revert "Close handles to /dev/tty", instead reuse handles
1 month ago
Junegunn Choi
218843b9f1
Close handles to /dev/tty
1 month ago
Junegunn Choi
d274d093af
Render UI directly to /dev/tty
...
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.
1 month ago
Junegunn Choi
6432f00f0d
0.52.1
1 month ago
junegunn
4e9e842aa4
Deploying to master from @ junegunn/fzf@07880ca441 🚀
1 month ago
LangLangBart
07880ca441
chore: Update flags to include long-form options for case ( #3785 )
1 month ago
Junegunn Choi
bcda25a513
0.52.0
1 month ago
Junegunn Choi
8256fcde15
Minor fixup
1 month ago
Junegunn Choi
af65aa298a
Add color names: selected-{fg,bg,hl}
1 month ago
Junegunn Choi
6834d17844
[vim] Revert 7411da8d5a
...
Fix #3777
1 month ago
Junegunn Choi
ed511d7867
[install] tar --no-same-owner
...
Close #3776
1 month ago
Junegunn Choi
cd8d736a9f
[shell] Add $FZF_COMPLETION_{DIR,PATH}_OPTS
...
To allow separately overriding 'walker' options.
Close #3778
1 month ago
Junegunn Choi
0952b2dfd4
Rename --cursor-line to --highlight-line
1 month ago
Junegunn Choi
4bedd33c59
Refactor the code to remove global variables
1 month ago
Junegunn Choi
c5fb0c43f9
Add --cursor-line to highlight the whole current line
...
Similar to 'set cursorline' of Vim.
1 month ago
Junegunn Choi
9e4780510e
Add current-{fg,bg,hl} as synonyms for {fg,bg,hl}+
1 month ago
Junegunn Choi
e8405f40fe
Refactor the code so that fzf can be used as a library ( #3769 )
1 month ago
dependabot[bot]
065b9e6fb2
Bump golang.org/x/term from 0.19.0 to 0.20.0 ( #3774 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.19.0 to 0.20.0.
- [Commits](https://github.com/golang/term/compare/v0.19.0...v0.20.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
dependabot[bot]
98141ca7d8
Bump crate-ci/typos from 1.20.10 to 1.21.0 ( #3772 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.20.10 to 1.21.0.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.20.10...v1.21.0 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 month ago
Junegunn Choi
501577ab28
Fix flaky test case
2 months ago
Junegunn Choi
5669f48343
Do not enable delayed expansion mode when running cmd.exe
...
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 "&|<>()@^%!"
2 months ago
Junegunn Choi
24ff66d4a9
Fix `change-preview` reset by `change-preview-window`
...
Fix #3770
2 months ago
Junegunn Choi
bf184449bc
Count $FZF_CLICK_HEADER_LINE from top to bottom
...
Regardless of `--layout`.
https://github.com/junegunn/fzf/pull/3768#issuecomment-2094806558
2 months ago
Kuremu
7b98c2c653
Add click-header event for reporting clicks within header ( #3768 )
...
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>
2 months ago
Junegunn Choi
b6add2a257
Fix rendering of preview window border of tcell renderer
...
(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
2 months ago
Junegunn Choi
2bd41f1330
Reduce flicking when changing the size of the preview window with --border
...
(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
2 months ago
Junegunn Choi
c37cd11ca5
Remove unnecessary flicking when changing the size of the preview window
...
fzf --bind 'space:change-preview-window(60%|70%|80%|90%|hidden|)' --preview 'cat {}'
2 months ago
Junegunn Choi
9dee8edc0c
Clear characters on 1-column margin after the preview window on the left
2 months ago
Junegunn Choi
f6aa28c380
Fix --info inline-right not properly clearing the previous output
...
(seq 100000; sleep 1) | fzf --info inline-right --bind load:change-query:x
2 months ago
cyqsimon
dba1644518
Fix unreliable GOOS detection ( #3763 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 months ago
Junegunn Choi
260a65b0fb
0.51.0
2 months ago
Junegunn Choi
835d2fb98c
[vim] Fix argument escaping for Windows batch file
...
Fix #3620
2 months ago
Charlie Vieth
a9811addaa
Fix TestOSExitNotAllowed to handle empty GOROOT ( #3758 )
...
Fix #3748
2 months ago
dependabot[bot]
ee9d88b637
Bump crate-ci/typos from 1.20.9 to 1.20.10 ( #3757 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.20.9 to 1.20.10.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.20.9...v1.20.10 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
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>
2 months ago
Junegunn Choi
194a763c46
Escaping for cmd.exe: always use double quotes
2 months ago
Junegunn Choi
8d74446bef
Fix escaping for cmd.exe
...
Close #3651
Close #2609
2 months ago
Junegunn Choi
7ed6c7905c
Determine shell type once by the basename
2 months ago
Junegunn Choi
159a37fa37
Restore CmdLine parameter when running commands using cmd.exe
2 months ago
junegunn
f39ae0e7c1
Deploying to master from @ junegunn/fzf@4a68eac99b 🚀
2 months ago
Junegunn Choi
4a68eac99b
Suggest using toggle+up instead of toggle-up
2 months ago
Junegunn Choi
2665580120
Add $FZF_POS environment variable
...
Close #2175
Close #3753
2 months ago
Junegunn Choi
a4391aeedd
Add --with-shell for shelling out with different command and flags ( #3746 )
...
Close #3732
2 months ago
dependabot[bot]
b86a967ee2
Bump crate-ci/typos from 1.19.0 to 1.20.9 ( #3749 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.19.0 to 1.20.9.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.19.0...v1.20.9 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
Junegunn Choi
608232568b
Add 'change-multi' action
...
Close #3754
2 months ago
Junegunn Choi
7f85beccb5
[completion] Add undocumented bash variables for completion commands
...
And allow empty FZF_COMPLETION_DIR_COMMANDS
2 months ago
Junegunn Choi
767f1255ab
Make completion.bash load faster
...
* Reduce number of `__fzf_orig_completion < <(complete -p "$@" 2> /dev/null)`s
* Clean up options in fzf completion
* Remove telnet completion
2 months ago
Junegunn Choi
fddbfe7b0e
Fix 'reload' not terminating closed standard input stream
...
Fix #3750
2 months ago
Junegunn Choi
4ab7fdc28e
Merge identical case clauses
2 months ago
Junegunn Choi
e352b68878
Update Dockerfile to use Ubuntu 24.04
...
As we require Go 1.20 or above.
2 months ago
Junegunn Choi
207deeadba
Add -trimpath to build command
2 months ago
Cheng
d18d92f925
Replace fmt.Errorf with no parameters with errors.New ( #3747 )
2 months ago
junegunn
af3ce47c44
Deploying to master from @ junegunn/fzf@d8bfb6712d 🚀
2 months ago
Junegunn Choi
d8bfb6712d
Remove invalid 'result' event when using --sync option
...
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
2 months ago
Junegunn Choi
f864f8b5f7
Respect $FZF_DEFAULT_OPTS_FILE in key bindings and completion ( #3742 )
...
Fix #3740
2 months ago
Junegunn Choi
31d72efba7
Describe how to build fzf from the latest source using brew
2 months ago
LangLangBart
d169c951f3
fix: Move 'emulate' command outside interactive check ( #3736 )
2 months ago
Junegunn Choi
90d7e38909
[fzf-tmux] Replace `command -v` with `which`
...
`command -v fzf` prints `alias fzf=...` when `fzf` is an alias.
Fix #3730
2 months ago
hidewrong
938f23e429
Fix typo in comment ( #3734 )
...
Signed-off-by: hidewrong <hidewrong@outlook.com>
2 months ago
Junegunn Choi
f97d275413
0.50.0
2 months ago
Junegunn Choi
3acb4ca90e
Fix streaming filter mode by not running reader callback concurrently
...
Close #3728
2 months ago
Junegunn Choi
e86b81bbf5
Improve search performance by limiting the search scope
...
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.
2 months ago
Junegunn Choi
a5447b8b75
Improve search performance by pre-calculating bonus matrix
...
This gives yet another 5% boost.
2 months ago
Junegunn Choi
7ce6452d83
Improve search performance by pre-calculating character classes
...
This simple optmization can give more than 15% performance boost
in some scenarios.
2 months ago
junegunn
5643a306bd
Deploying to master from @ junegunn/fzf@3c877c504b 🚀
2 months ago
Charlie Vieth
3c877c504b
Enable profiling options when 'pprof' tag is set ( #2813 )
...
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>
2 months ago
Junegunn Choi
892d1acccb
Fix tcell build
2 months ago
Junegunn Choi
1a9c282f76
Fix unit tests
2 months ago
Junegunn Choi
fd1ba46f77
Export $FZF_KEY environment variable to child processes
...
It's the name of the last key pressed.
Related #3412
2 months ago
Junegunn Choi
a4745626dd
Add jump and jump-cancel events
...
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'
2 months ago
dependabot[bot]
17bb7ad278
Bump golang.org/x/term from 0.18.0 to 0.19.0 ( #3718 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.18.0 to 0.19.0.
- [Commits](https://github.com/golang/term/compare/v0.18.0...v0.19.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 months ago
Junegunn Choi
152988c17b
[shell] Revert interactiveness checks for eval
...
So that there's no error even when the scripts are mistakenly evaluated
in non-interactive sessions.
bash -c 'eval "$(fzf --bash)"; echo done'
zsh -c 'eval "$(fzf --zsh)"; echo done'
* https://github.com/junegunn/fzf/pull/3675#issuecomment-2044860901
* f103aa4753
2 months ago
Junegunn Choi
4cd37fc02b
Disable line wrapping during rendering
...
Prevent unwanted line wraps that break the layout when the actual
display width of a character is different than expected.
2 months ago
LangLangBart
69b9d674a3
chore: Add new option in issue checklist and modify requirements ( #3715 )
2 months ago
junegunn
bad8061547
Deploying to master from @ junegunn/fzf@62963dcefd 🚀
2 months ago
Junegunn Choi
62963dcefd
0.49.0
3 months ago
Junegunn Choi
68a35e4735
Do not trim CR on Windows when --read0 is set
3 months ago
Charlie Vieth
9b9ad77e1c
mod: update changes/fastwalk to v1.0.3 ( #3709 )
...
Update charlievieth/fastwalk to resolve issue #3706 .
3 months ago
Junegunn Choi
118b4d4a01
[bash] Add -o nospace to dir completion options ( #1987 )
3 months ago
Junegunn Choi
da14ab6f16
[bash] Remove -o default from dir completion options ( #1987 )
3 months ago
Junegunn Choi
09a4ca6ab5
[bash] Fix variable completion of directory-related commands
...
Fix #1987
3 months ago
Junegunn Choi
8a2df79711
Do not hide separator by default on --info=inline-right|hidden
3 months ago
Junegunn Choi
c30e486b64
Further performance improvements by removing unnecessary copies
3 months ago
Junegunn Choi
a575c0c54b
GitHub Actions: Use Go "1.20"
3 months ago
Junegunn Choi
77fe96ac0d
GitHub Actions: Use Go 1.20
3 months ago
Junegunn Choi
5234c3759a
Improve ingestion performance (by around 40%)
...
Summary
fzf --sync --bind load:accept < 27M-lines ran
1.16 ± 0.01 times faster than fzf-41b3511 --sync --bind load:accept < 27M-lines
1.44 ± 0.01 times faster than fzf-0.48.1 --sync --bind load:accept < 27M-lines
3 months ago
Junegunn Choi
41b3511ad9
Improve ingestion performance (by around 20%)
3 months ago
Junegunn Choi
128e4a2e8d
[fish] Fix $dir in FZF_{CTRL_T,ALT_C}_COMMAND not evaluated
...
Fix #3705
3 months ago
junegunn
07ac90d798
Deploying to master from @ junegunn/fzf@7de87a9b2c 🚀
3 months ago
Emilio Vesprini
7de87a9b2c
[shell] Make ALT-C use the absolute path to the selected directory ( #3688 )
...
Rationale: this way the resulting cd command that ends up in the shell
history can be reused to get to the same location regardless of
the current working directory.
Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com>
3 months ago
Junegunn Choi
dff865239a
[bash-completion] Make dynamic loader return 124 to retry completion
...
Close #3702
3 months ago
Junegunn Choi
07f8f70c5b
Fix flaky test case
3 months ago
Matthieu Cneude
f625c5aabe
Add environment variables: FZF_{BORDER,PREVIEW}_LABEL ( #3693 )
...
The environment variable get the value of the preview label, even if it
has been updated with an action. It can be useful to track the label of
the preview and be able to switch between previews using only one
binding.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
3 months ago
Junegunn Choi
8a74976c1f
Add track-current, untrack-current, and toggle-track-current ( #3699 )
...
Close #3691
3 months ago
Junegunn Choi
b6bfd4a5cb
Fix typo in comment
3 months ago
Junegunn Choi
008fb9d258
Fix reload and reload-sync behaviors
...
https://github.com/junegunn/fzf/discussions/3696#discussioncomment-8915593
3 months ago
Junegunn Choi
db6db49ed6
Increase the buffer size for POST requests
...
Close #3685
3 months ago
Junegunn Choi
05453881c3
Set a 2-second timeout for POST requests
...
Close #3685
3 months ago
Junegunn Choi
5e47ab9431
README: Mention that you can source individual script files
3 months ago
LangLangBart
ec70acd0b9
chore: transition from markdown to YAML for issue template ( #3687 )
3 months ago
zeertzjq
25e61056b6
[fish] Fix Ctrl-T and Alt-C not using last token as search root ( #3684 )
3 months ago
Junegunn Choi
d579e335b5
0.48.1
3 months ago
Junegunn Choi
7e344ceb85
Update README
3 months ago
Junegunn Choi
0145b82ea0
Update README
3 months ago
Junegunn Choi
b4efe7aab7
Show how to disable a key binding
3 months ago
Junegunn Choi
9ffe951f6d
Update Makefile target dependencies
...
Because shell integration scripts are now embedded in the binary
3 months ago
Brayden Hill
a5ea4f57bd
Updated link for highlight command ( #3680 )
3 months ago
Eli Barzilay
88f4c16755
Make it possible to disable `Ctrl+T` / `Alt+C` / completions ( #3678 )
...
This makes it possible to skip one of the above key bindings or
completions by setting a variable to an empty string. For example,
FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= \
eval "$(fzf --zsh)"
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
3 months ago
Junegunn Choi
c7ee071efa
Fix panic caused by invalid cursor index
...
Fix #3681
3 months ago
Junegunn Choi
0740ef7ceb
[bash] Fix default completion of unset, unalias, etc
...
Fix #3679
3 months ago
junegunn
b29bd809ac
Deploying to master from @ junegunn/fzf@8977c9257a 🚀
3 months ago
Junegunn Choi
8977c9257a
Limit the maximum number of focus events to process at once
3 months ago
Junegunn Choi
091b7eacba
0.48.0
3 months ago
Junegunn Choi
e74b1251c0
Embed shell integration scripts in fzf binary (`--bash` / `--zsh` / `--fish`) ( #3675 )
...
This simplifies the distribution, and the users are less likely to have
problems caused by using incompatible scripts and binaries.
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --bash)"
# Set up fzf key bindings and fuzzy completion
eval "$(fzf --zsh)"
# Set up fzf key bindings
fzf --fish | source
3 months ago
Junegunn Choi
d282a1649d
Add walker options and replace 'find' with the built-in walker ( #3649 )
3 months ago
Junegunn Choi
6ce8d49d1b
[bash] Fix regression in dynamic completion
...
Fix #3674
3 months ago
dependabot[bot]
c5b197078a
Bump golang.org/x/term from 0.17.0 to 0.18.0 ( #3670 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.17.0 to 0.18.0.
- [Commits](https://github.com/golang/term/compare/v0.17.0...v0.18.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 months ago
Junegunn Choi
0494f20d62
Revert "Fix CHANGELOG"
...
This reverts commit 73aff476dd
.
3 months ago
Junegunn Choi
73aff476dd
Fix CHANGELOG
3 months ago
Junegunn Choi
98ee5e651a
0.47.0
3 months ago
Koichi Murase
01871ea383
[bash] Update orig_complete after _completion_loader
3 months ago
Koichi Murase
1dbdb9438f
[bash] Refactor access to "_fzf_orig_complete_${cmd//[^A-Za-z0-9_]/_}"
...
In the current codebase, for the original completion settings, the
pieces of the codes to determine the variable name and to access the
stored data are scattered. In this patch, we define functions to
access these variables. Those functions will be used in a coming
patch.
* This patch also resolves an inconsistent escaping of "$cmd": $cmd is
escaped as ${...//[^A-Za-z0-9_]/_} in some places, but it is escaped
as ${...//[^A-Za-z0-9_=]/_} in some other places. The latter leaves
the character "=" in the command name, which causes an issue because
"=" cannot be a part of a variable name. For example, the following
test case produces an error message:
$ COMP_WORDBREAKS=${COMP_WORDBREAKS//=}
$ _test1() { COMPREPLY=(); }
$ complete -vF _test1 cmd.v=1.0
$ _fzf_setup_completion path cmd.v=1.0
$ cmd.v=1.0 [TAB]
bash: _fzf_orig_completion_cmd_v=1_0: invalid variable name
The behavior of leaving "=" was present from the beginning when
saving the original completion is introduced in commit 91401514
, and
this does not seem to be a specific reasoning. In this patch, we
replace "=" as well as the other non-identifier characters.
* Note: In this patch, the variable REPLY is used to return values
from functions. This design is to make it useful with the value
substitutions, a new Bash feature of the next release 5.3, which is
taken from mksh.
3 months ago
junegunn
c70f0eadb8
Deploying to master from @ junegunn/fzf@26244ad8c2 🚀
3 months ago
Junegunn Choi
26244ad8c2
Fix preview area not being cleared when using certain types of border styles
...
fzf --preview 'sleep 3; date' --preview-window hidden \
--bind ctrl-/:change-preview-window:up,border-bottom
3 months ago
Junegunn Choi
fa0aa5510d
Kill preview process when hiding the preview window
...
via toggle-preview, hide-preview, or change-preview-window
3 months ago
Junegunn Choi
eec557b6aa
Fix invalid memory access when the preview window becomes hidden
3 months ago
huajin tong
0cc27c3cc1
Fix typo ( #3661 )
4 months ago
dependabot[bot]
507089d7b2
Bump actions/checkout from 3 to 4 ( #3428 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago
dependabot[bot]
a6b3517b75
Bump github.com/gdamore/tcell/v2 from 2.7.1 to 2.7.4 ( #3658 )
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.7.1 to 2.7.4.
- [Release notes](https://github.com/gdamore/tcell/releases )
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md )
- [Commits](https://github.com/gdamore/tcell/compare/v2.7.1...v2.7.4 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
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>
4 months ago
dependabot[bot]
2d6beb7813
Bump crate-ci/typos from 1.18.2 to 1.19.0 ( #3657 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.18.2 to 1.19.0.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.18.2...v1.19.0 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago
onee-only
61bc129e1d
Update parseGetParams to call strconv.Atoi when params are valid
4 months ago
onee-only
52210a57f0
Update error return position according to convention
4 months ago
onee-only
8061a2f108
Remove duplicate code
4 months ago
junegunn
7444eff6d4
Deploying to master from @ junegunn/fzf@f35a9da99a 🚀
4 months ago
dependabot[bot]
f35a9da99a
Bump crate-ci/typos from 1.17.2 to 1.18.2 ( #3624 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.17.2 to 1.18.2.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.17.2...v1.18.2 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago
dependabot[bot]
c3098e9ab2
Bump github.com/mattn/go-isatty from 0.0.17 to 0.0.20 ( #3489 )
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.17 to 0.0.20.
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.17...v0.0.20 )
---
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>
4 months ago
Junegunn Choi
686f9288fc
Allow iTerm2 image data that ends with 'ESC \' ( #3646 )
4 months ago
Junegunn Choi
1833670fb9
Add $FZF_DEFAULT_OPTS_FILE ( #3618 )
...
For those who prefer to manage default options in a file.
If the file is not found, fzf will exit with an error.
We're not setting a default value for it because:
1. it's hard to find a default value that can be universally agreed upon
2. to avoid fzf having to check for the existence of the file even when it's not used
4 months ago
junegunn
3dd42f5aa2
Deploying to master from @ junegunn/fzf@99a7beba57 🚀
4 months ago
Junegunn Choi
99a7beba57
Fix missing bonus score on a delimiter character
...
Fix #3645
4 months ago
Junegunn Choi
edee2b753c
fzf-tmux: Workaround for tmux 3.4 bug
...
Close #3635
https://github.com/tmux/tmux/pull/3840
4 months ago
dependabot[bot]
545d5770be
Bump github.com/gdamore/tcell/v2 from 2.7.0 to 2.7.1 ( #3639 )
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/gdamore/tcell/releases )
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md )
- [Commits](https://github.com/gdamore/tcell/compare/v2.7.0...v2.7.1 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
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>
4 months ago
Junegunn Choi
ca747a2b54
Fix unit tests
4 months ago
Junegunn Choi
17da165cfe
CHANGELOG: charlievieth/fastwalk
4 months ago
Junegunn Choi
5e6788c679
Export FZF_* variables to 'reload' process as well
4 months ago
Charlie Vieth
425deadca9
dep: update github.com/charlievieth/fastwalk to v1.0.2 ( #3631 )
...
This fixes the build for solaris/illumos and removes the extraneous
godirwalk dependency.
4 months ago
junegunn
2c8e9dd3a5
Deploying to master from @ junegunn/fzf@7a72f1a253 🚀
4 months ago
Junegunn Choi
7a72f1a253
Code cleanup: Remove unused argument
4 months ago
Junegunn Choi
208e556332
Replace "default find command" with built-in directory traversal
4 months ago
Junegunn Choi
c65d11bfb5
Update README: warp.dev
4 months ago
Junegunn Choi
3b5b52d89a
Update README: warp.dev
4 months ago
dependabot[bot]
a4f6c8f990
Bump github.com/rivo/uniseg from 0.4.6 to 0.4.7 ( #3623 )
...
Bumps [github.com/rivo/uniseg](https://github.com/rivo/uniseg ) from 0.4.6 to 0.4.7.
- [Release notes](https://github.com/rivo/uniseg/releases )
- [Commits](https://github.com/rivo/uniseg/compare/v0.4.6...v0.4.7 )
---
updated-dependencies:
- dependency-name: github.com/rivo/uniseg
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>
4 months ago
dependabot[bot]
670c329852
Bump golang.org/x/term from 0.16.0 to 0.17.0 ( #3622 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/term/compare/v0.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago
dependabot[bot]
f3551c8422
Bump golang.org/x/sys from 0.16.0 to 0.17.0 ( #3621 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.16.0 to 0.17.0.
- [Commits](https://github.com/golang/sys/compare/v0.16.0...v0.17.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
4 months ago
Konstantin Podsvirov
90b8187882
Add info about MSYS2 distro to README.md ( #3610 )
5 months ago
junegunn
1a43259989
Deploying to master from @ junegunn/fzf@3c0a630475 🚀
5 months ago
Junegunn Choi
3c0a630475
0.46.1
5 months ago
Junegunn Choi
2a1e5a9729
More test fixes for tcell on GitHub Actions
5 months ago
Junegunn Choi
413c66beba
Fix tests for tcell build
5 months ago
Junegunn Choi
1416e696b1
Avoid full redraw on 'preview' action when preview window exists
5 months ago
Junegunn Choi
d373cf89c7
Retain preview window on resize after 'preview' action
5 months ago
dependabot[bot]
dd886d22f0
Bump github.com/rivo/uniseg from 0.4.5 to 0.4.6 ( #3605 )
...
Bumps [github.com/rivo/uniseg](https://github.com/rivo/uniseg ) from 0.4.5 to 0.4.6.
- [Release notes](https://github.com/rivo/uniseg/releases )
- [Commits](https://github.com/rivo/uniseg/compare/v0.4.5...v0.4.6 )
---
updated-dependencies:
- dependency-name: github.com/rivo/uniseg
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>
5 months ago
junegunn
472569a27c
Deploying to master from @ junegunn/fzf@76cf6559cc 🚀
5 months ago
Junegunn Choi
76cf6559cc
junegunn/uniseg -> rivo/uniseg
...
https://github.com/rivo/uniseg/pull/47
5 months ago
Junegunn Choi
a34e8dcdc9
Downgrade Go version to keep support for old Windows ( #3601 )
...
Go 1.21 dropped support for older versions of Windows.
* https://tip.golang.org/doc/go1.21#windows
But there is no absolute reason for fzf to use Go 1.21, so we downgrade
the dependency.
5 months ago
Junegunn Choi
da752fc9a4
Fix Windows build
...
Fix #3598
5 months ago
Junegunn Choi
beb2de2dd9
0.46.0
5 months ago
Junegunn Choi
2a8b65e105
Fix highlighting of regions that are matched multiple times
...
Fix #3596
5 months ago
dependabot[bot]
62a916bc24
Bump crate-ci/typos from 1.16.4 to 1.17.2 ( #3595 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.16.4 to 1.17.2.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.16.4...v1.17.2 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months ago
dependabot[bot]
c47b833e7b
Bump actions/dependency-review-action from 3 to 4 ( #3594 )
...
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action ) from 3 to 4.
- [Release notes](https://github.com/actions/dependency-review-action/releases )
- [Commits](https://github.com/actions/dependency-review-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/dependency-review-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months ago
LangLangBart
09b0958b5f
docs(ADVANCED.md): replace placeholder with env variable for toggle single key binding ( #3593 )
5 months ago
Junegunn Choi
3a4c3d3e58
Add link to fzf Theme Playground by @vitormv
...
https://vitormv.github.io/fzf-themes/
5 months ago
Junegunn Choi
7484292e63
Avoid deadlocks by adding a 2 second timeout to GET / endpoint
...
Because fzf processes HTTP GET requests in the main event loop,
accessing the endpoint from within execute/transform actions would
result in a deadlock and hang fzf indefinitely. This commit sets
a 2 second timeout to avoid the deadlock.
5 months ago
Junegunn Choi
687c2741b8
Add 'resize' event
...
Close #3570
5 months ago
junegunn
2fb285e530
Deploying to master from @ junegunn/fzf@16f6473938 🚀
5 months ago
Junegunn Choi
16f6473938
Change mattn/go-runewidth dependency to rivo/uniseg for accurate results
...
Related #3588 #3588 #3567
5 months ago
Junegunn Choi
66546208b2
Update goreleaser flags
5 months ago
Junegunn Choi
532274045e
Update to the latest go
5 months ago
LangLangBart
9347c72fb6
docs(ADVANCED.md): Add fzf example switching ripgrep/fzf with single hotkey ( #3590 )
5 months ago
Junegunn Choi
e90bb7169c
[zsh] Handle '*' suffix in history line numbers
...
Fix #3591
5 months ago
Junegunn Choi
8a2c41e183
Handle ambiguous emoji width
...
Fix #3588
5 months ago
Junegunn Choi
59fb65293a
README.md: More information on image support
5 months ago
Junegunn Choi
e7718b92b7
Kitty image support improvements
...
* Use `--unicode-placeholder` for consistent result in and out of tmux
* Use updated version of junegunn/go-runewidth that handles diacritics
used in Kitty Unicode placeholder
Close #3567
5 months ago
Junegunn Choi
cdfaf761df
Expose state information via environment variables to child processes
...
Close #3582
5 months ago
Junegunn Choi
1a9ea6f738
Remove 'replace' directive for 'go install' compatibility
...
Close #3577
5 months ago
junegunn
945c1c8597
Deploying to master from @ junegunn/fzf@e4d0f7acd5 🚀
5 months ago
dependabot[bot]
e4d0f7acd5
Bump golang.org/x/term from 0.15.0 to 0.16.0 ( #3564 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.15.0 to 0.16.0.
- [Commits](https://github.com/golang/term/compare/v0.15.0...v0.16.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
5 months ago
Junegunn Choi
250496c953
Add 'result' event that is triggered when the result list is ready
...
Close #3560
5 months ago
Junegunn Choi
e47dc758c9
Fix focus event not triggered in certain cases
6 months ago
Junegunn Choi
b92a843c5f
Use Ubuntu 22 to match GitHub Actions environment
6 months ago
Junegunn Choi
91bea9c5b3
Use forked version of go-runewidth
...
Fix #3558
go get github.com/junegunn/go-runewidth@fzf
6 months ago
junegunn
d75bb5cbe1
Deploying to master from @ junegunn/fzf@2671259fdb 🚀
6 months ago
danztran
2671259fdb
[zsh] Make CTRL-R compatible with accept-or-print-query ( #3557 )
...
Fix #3556
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
6 months ago
Junegunn Choi
2024010119
0.45.0
6 months ago
Junegunn Choi
412040f77e
Enable preview if 'transform' action is bound to a key
6 months ago
Junegunn Choi
d210660ce8
Add actions: show-header and hide-header
6 months ago
Junegunn Choi
863a12562b
Trigger focus actions synchronously
6 months ago
junegunn
5da606a9ac
Deploying to master from @ junegunn/fzf@8d20f3d5c4 🚀
6 months ago
Junegunn Choi
8d20f3d5c4
ADVANCED.md: Add toggling example with `transform` and `{fzf:prompt}`
...
Courtesy of @LangLangBart
6 months ago
Junegunn Choi
5d360180af
Add {fzf:prompt} placeholder expression
...
Close #3354
6 months ago
Junegunn Choi
f0fbed6007
Fix RuboCop error
6 months ago
Junegunn Choi
519de7c833
Fix unexpected result of --tiebreak=end
...
See https://github.com/junegunn/fzf/issues/3255#issuecomment-1869580320
6 months ago
Junegunn Choi
97ccef1a04
{fzf:query} should trigger preview update
...
fzf --preview 'echo {fzf:query}'
fzf --preview 'echo {q}'
6 months ago
Junegunn Choi
c4df0dd06e
Add TRANSFORM ACTIONS section to man page
6 months ago
Junegunn Choi
cd114c6818
Change transform action to directly execute actions
...
To avoid filling up input channel for HTTP server
6 months ago
Junegunn Choi
1707b8cdba
Add 'transform' action to conditionally perform a series of actions
...
'transform' action runs an external command that prints a series of
actions to perform.
# Disallow selecting an empty line
echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
fzf --reverse --header 'Select one' \
--bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"'
# Move cursor past the empty line
echo -e "1. Hello\n2. Goodbye\n\n3. Exit" |
fzf --reverse --header 'Select one' \
--bind 'enter:transform:[[ -n {} ]] && echo accept || echo "change-header:Invalid selection"' \
--bind 'focus:transform:[[ -n {} ]] && exit; [[ {fzf:action} =~ up$ ]] && echo up || echo down'
Close #3368
Close #2980
6 months ago
Junegunn Choi
41d4d70b98
Fix shell escaping for fish
...
Fix #3224
6 months ago
Junegunn Choi
0e999482cb
Fix handling of empty ANSI color sequence
...
Fix #3320
6 months ago
junegunn
65b2c06027
Deploying to master from @ junegunn/fzf@d7b61ede07 🚀
6 months ago
Junegunn Choi
d7b61ede07
Add support for negative --height
...
fzf --height=-1
Close #3487
6 months ago
dependabot[bot]
87fc1c84b8
Bump actions/setup-go from 4 to 5 ( #3537 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 months ago
dependabot[bot]
d4b5f12383
Bump github/codeql-action from 2 to 3 ( #3544 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2 to 3.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/github/codeql-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 months ago
junegunn
eb62b0d665
Deploying to master from @ junegunn/fzf@91387a741b 🚀
6 months ago
Jan Verbeek
91387a741b
Terminate simple server success response with double CRLF ( #3542 )
...
The simple success case had only the status line plus a single CRLF,
and pedantic HTTP client implementations (`hyper`) stumbled over
this. A double CRLF makes it OK.
Fixes #3541 .
6 months ago
Junegunn Choi
e8b34cb00d
Clarification on accept-or-print-query vs. become
6 months ago
Alec Scott
82954258c1
Add Spack installation instructions to README ( #3526 )
6 months ago
Junegunn Choi
50f092551b
Lint: RuboCop
6 months ago
Junegunn Choi
c36a64be68
Add accept-or-print-query
...
Close #3528
6 months ago
dependabot[bot]
a343b20775
Bump golang.org/x/term from 0.13.0 to 0.15.0 ( #3525 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.13.0 to 0.15.0.
- [Commits](https://github.com/golang/term/compare/v0.13.0...v0.15.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
6 months ago
junegunn
a714e76ae1
Deploying to master from @ junegunn/fzf@d21d5c9510 🚀
6 months ago
junegunn
d21d5c9510
Deploying to master from @ junegunn/fzf@cd6788a2bb 🚀
7 months ago
Junegunn Choi
cd6788a2bb
Increase buffer size of event channel to avoid freeze on zero event
...
Fix #3516
7 months ago
junegunn
6b99399c41
Deploying to master from @ junegunn/fzf@952b6af445 🚀
7 months ago
Laurent Cheylus
952b6af445
Allow files creation in /tmp on OpenBSD ( #3512 )
...
- src/protector/protector_openbsd.go: add tmppath for pledge
permissions
- fix junegunn/fzf#3511
Signed-off-by: Laurent Cheylus <foxy@free.fr>
7 months ago
junegunn
7c674ad7fa
Deploying to master from @ junegunn/fzf@d7d2ac3951 🚀
7 months ago
Junegunn Choi
d7d2ac3951
0.44.1
7 months ago
Junegunn Choi
29e67d307a
Fix crash when preview window is hidden on focus event
7 months ago
Junegunn Choi
7320b7df62
0.44.0
7 months ago
Tomáš Janoušek
11fb4233f7
Fix Home, End on rxvt-unicode ( #3507 )
7 months ago
Junegunn Choi
84bb350b14
Reset horizontal offset of the prompt on 'beginning-of-line'
...
https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174
7 months ago
Junegunn Choi
38e3694d1c
Revert "Sixel and Kitty image support on Windows binary ( #2544 )"
...
This reverts commit 68db9cb499
.
7 months ago
dependabot[bot]
1084935241
Bump golang.org/x/sys from 0.13.0 to 0.14.0 ( #3503 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.13.0 to 0.14.0.
- [Commits](https://github.com/golang/sys/compare/v0.13.0...v0.14.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
Junegunn Choi
f5f0b9ecaa
Fix a typo
8 months ago
Junegunn Choi
230fc49ae2
(Experimental) Add support for iTerm2 inline image protocol
...
Close #1102
fzf --preview 'imgcat -W $FZF_PREVIEW_COLUMNS -H $FZF_PREVIEW_LINES {}'
Notes:
* There is no good way to determine the height of the rendered image,
so we assume that the image takes the full height of the preview
window. So the image cannot be displayed with the other text.
* fzf-preview.sh script was updated to use `imgcat` if it's available
but `chafa` is not.
* iTerm2 also supports Sixel, so adding support for this protocol is not
quite necessary but it renders animated GIFs much better (e.g. looping).
8 months ago
Junegunn Choi
250d507bdf
Fix a typo on CHANGELOG
8 months ago
Junegunn Choi
a818653174
Add --listen-unsafe=ADDR to allow remote process execution ( #3498 )
8 months ago
junegunn
5c3b044740
Deploying to master from @ junegunn/fzf@c5aa8729a1 🚀
8 months ago
Junegunn Choi
c5aa8729a1
Fix failing test case
8 months ago
Junegunn Choi
3f78d76da1
Allow accepting remote connections
...
Close #3498
# FZF_API_KEY is required for a non-localhost listen address
FZF_API_KEY=xxx fzf --listen 0.0.0.0:6266
8 months ago
Junegunn Choi
70c19ccf16
Fix CTRL-Z handling: Signal SIGSTOP to PGID
...
Fix #3501
8 months ago
Junegunn Choi
68db9cb499
Sixel and Kitty image support on Windows binary ( #2544 )
8 months ago
Junegunn Choi
d0466fa777
Fix regression where tcell renderer not clearing the preview window
8 months ago
Junegunn Choi
21ab64e962
sixel: Export $FZF_PREVIEW_TOP to the preview command ( #2544 )
...
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.
8 months ago
Junegunn Choi
a0145cebf2
sixel: Better handling of animated GIFs ( #2544 )
8 months ago
Junegunn Choi
69176fc5f4
fzf-preview.sh: Fall back to `stty size` ( #2544 )
8 months ago
Junegunn Choi
278dce9ba6
Restore scroll after rendering full-height Sixel image ( #2544 )
...
When a Sixel image touches the bottom of the screen, the whole screen
scrolls up one line to make room for the cursor. Add an ANSI escape
code to compensate for the movement. Unfortunately, the movement of the
screen is sometimes noticeable.
fzf --preview='fzf-preview.sh {}' --preview-window border-left
8 months ago
Junegunn Choi
1cfa3ee4c7
fzf-preview.sh: Check the number of arguments
8 months ago
Junegunn Choi
9a95cd5794
Fix Sixel height calculation ( #2544 )
8 months ago
akdevservices
a62fe3df6f
[completion] Handle all hostaliases in /etc/hosts ( #3495 )
...
* Fix #3488
* Handle inline comments in hosts file
8 months ago
junegunn
7701244a08
Deploying to master from @ junegunn/fzf@96e31e4b78 🚀
8 months ago
Junegunn Choi
96e31e4b78
Fix Sixel issues ( #2544 )
...
* Fix regression where previous image is not properly cleared
* Change the way fzf calculates the number of required lines to display
an image (ceil -> floor) to fix the issue where an image is always
rendered as a wireframe.
8 months ago
Junegunn Choi
ec208af474
Go 1.18 or above is required
...
Close #3492
8 months ago
Junegunn Choi
242641264d
Clear previous non-Sixel text before rendering Sixel image ( #2544 )
8 months ago
Junegunn Choi
d3a9a0615b
Fix kitty icat handling
8 months ago
Junegunn Choi
3277e8c89c
Remove $FZF_PREVIEW_PIXEL_{WIDTH,HEIGHT} ( #2544 )
...
They are not neccessary because we can use a program such as chafa that
can resize images by the terminal columns and lines.
8 months ago
Junegunn Choi
d02b9442a5
(Experimental) Improve Sixel graphics support ( #2544 )
...
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
8 months ago
Junegunn Choi
bac385b59c
Simplify LightRenderer.Size()
8 months ago
Junegunn Choi
b1a0ab8086
Experimental Sixel support ( #2544 )
8 months ago
junegunn
a33749eb71
Deploying to master from @ junegunn/fzf@f5e4ee90e4 🚀
8 months ago
Junegunn Choi
f5e4ee90e4
Fix bug where top section of the previous preview content appearing
...
when the preview window is re-enabled and the current preview process is
taking more than 500ms and previewDelayed is triggered
fzf --preview 'sleep 1; date; seq 1000' --bind space:toggle-preview
8 months ago
Junegunn Choi
690d5e6dbd
Fix scrollability of the preview window when preview offset is specified
...
This should not be scrollable
fzf --preview 'seq $FZF_PREVIEW_LINES' --preview-window '~5'
8 months ago
Junegunn Choi
a76c055b63
Fix inconsistent preview window width with --border
...
fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
8 months ago
Junegunn Choi
70c461c60b
[bash] Preserve existing completion for ssh
...
Fix #3484
8 months ago
Laurent Cheylus
d51b71ee80
Fix crash on OpenBSD with --listen ( #3483 )
...
- src/protector/protector_openbsd.go: add inet permissions for pledge
- fix #3481
Signed-off-by: Laurent Cheylus <foxy@free.fr>
8 months ago
junegunn
3666448ca6
Deploying to master from @ junegunn/fzf@d3311d9f43 🚀
8 months ago
Junegunn Choi
d3311d9f43
0.43.0
8 months ago
LangLangBart
3e1735b06e
[zsh] Fix 'emulate: unknown argument -o' error on old zsh ( #3465 )
...
Fix #2094
8 months ago
Junegunn Choi
de7ef7eace
[fzf-tmux] Fix 'empty command' error on tmux 3.2
...
Fix #3474
8 months ago
Christoph Anton Mitterer
7e89458a3b
[fish] exit as well when called from non-interactive shell ( #3467 )
...
Just like with the other shells, exit fish to, if called from a non-interactive
shell.
We cannot use `return`, as older versions of fish (namely < 3.4.0) did not
support to use `return` in `.`-scripts (this was only added with fish commit
3359e5d2e9bcbf19d1652636c8e448a6889302ae).
Unlike in POSIX, fish’s `exit` is however documented to no cause the calling
shell to exit when executed in a sourced script (see:
0f70b2c0d3/doc_src/cmds/exit.rst
?plain=1#L20
)
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
8 months ago
Junegunn Choi
f212bafe46
[bash] Remove implicit bash-completion dependency
8 months ago
Christoph Anton Mitterer
86fe40708b
[bash] statically define __fzf_list_hosts() with either method
...
When bash-completion (and thus `_known_hosts_real()`) is / is not available this
will typically not change during the lifetime of a shell.
The only exception is if the user would unset `_known_hosts_real()`, but well,
that would be his problem.
So we can easily define `__fzf_list_hosts()` either using `_known_hosts_real()`
or using the old code, and avoid checking every time whether
`_known_hosts_real()` is defined.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
8 months ago
Christoph Anton Mitterer
d718747c5b
[bash] try to use bash-completions’s _known_hosts_real() for getting hostnames
...
If defined, use bash-completions’s `_known_hosts_real()`-function to create the
list of hostnames.
This obviously requires bash-completion to be sourced before fzf.
If not defined, fall back to the previous code.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
8 months ago
Christoph Anton Mitterer
46ee9ac41c
[shell] make `__fzf_list_hosts()` definable by the user
...
Just like it’s already done for `_fzf_compgen_path()` and `_fzf_compgen_dir()`
allow a user to easily define his own version of `__fzf_list_hosts()`.
Also add some documentation on the expected “interface” of such custom function.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
8 months ago
Christoph Anton Mitterer
f1d306feab
[shell] move username prefixing code where needed
...
`__fzf_list_hosts()` seems like a function a user may want to override with some
custom code.
For that reason it should be kept as simple as possible, that is printing only
hostnames, one per line, optionally in some sorting.
The handling of adding a `username@` (which is then the same for each line), if
any, would unnecessarily complicate that for people who want to override the
function.
Therefore this commit moves that to the places where it's actually used (as of
now only `_fzf_complete_ssh()`).
This also saves any such handling for `_fzf_host_completion()`, where this isn’t
needed at all.
Right now it comes at a cost, namely an extra invocation of `awk` in the
`_fzf_complete_ssh()`-case.
However, it should be easily possible to improve `__fzf_list_hosts()` to no
longer need the final `awk` in the pipeline there.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
8 months ago
Christoph Anton Mitterer
2d0db98e83
[shell] don’t print error on non-existent SSH files
...
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
8 months ago
Junegunn Choi
3df06a1c68
Fix offset-up and offset-down with --layout=reverse ( #3456 )
8 months ago
dependabot[bot]
a8f9432a3a
Bump golang.org/x/term from 0.12.0 to 0.13.0 ( #3469 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/term/compare/v0.12.0...v0.13.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
8 months ago
Christoph Anton Mitterer
561e0b04a8
[bash] Use `command` to “protect” further commands ( #3462 )
...
This commit causes all simple commands that are not built-ins or functions to be
invoked via `command` in order to protect them from alias substitution or from
accidentally taking functions of the same name.
It was decided to not “protect” `fzf` and `fzf-tmux` for now.
Maybe a better solution should be implemented for that in the future.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
8 months ago
Junegunn Choi
404b6a864b
Add offset-up and offset-down
...
# Scrolling will behave similarly to CTRL-E and CTRL-Y of vim
fzf --bind scroll-up:offset-up,scroll-down:offset-down \
--bind ctrl-y:offset-up,ctrl-e:offset-down \
--scroll-off=5
Close #3456
8 months ago
Christoph Anton Mitterer
4feaf31225
[bash] bring fzf’s own bash completion up to date ( #3471 )
...
* [bash] bring fzf’s own bash completion up to date
This orders and groups completed options and values in just as they appear in
the code respectively, for some option values, as they’d be printed in the
`--help`-output.
It does not add support for completion of `:` right after values that support an
optional `:some-further-value` postfix.
Neither does it add support for the `--option=value`-style.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
* [bash] drop unnecessary code in handling `history`
Presumably, the dropped code is not needed for any effect, thus drop it.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
---------
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
8 months ago
Junegunn Choi
391aa14845
Add mouse events for --bind
...
Close #3473
8 months ago
Junegunn Choi
a0d61b4c37
[install] Remove redundant interactiveness check
...
Related #3449
/cc @calestyo
9 months ago
Junegunn Choi
2952737755
Update README: Experimental support for Kitty graphics protocol
9 months ago
Christoph Anton Mitterer
f103aa4753
Improve interactiveness checks ( #3449 )
...
* [bash] return instead of not executing an if-block, when non-interactive
This should keep the code more readable, be less error prone (accidentally doing
something outside the if-block and aligns the code with what’s already done for
zsh.
`0` is returned, because it shall not be considered an error when the script is
(accidentally) sourced from a non-interactive shell.
If executed as a script (rather than sourced), the results are not specified by
POSIX but depend on the shell, with bash giving an error in that case.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
* [shell] exit immediately when called from non-interactive shell
The shell execution environment shouldn’t be modified at all, when called from a
non-interactive shell.
It shall be noted that the current check may become error prone for bash, namely
in case there should ever be a differentiation between `i` and `I` in the
special variable `-` and bash’s `nocasematch`-shell-option be used.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
9 months ago
junegunn
884856023a
Deploying to master from @ junegunn/fzf@d8188fce7b 🚀
9 months ago
Junegunn Choi
d8188fce7b
Experimental support for Kitty image protocol in preview window
...
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
'
9 months ago
step
0f15f1ab73
[bash] Improve mawk detection ( #3463 )
...
* Use the all-compatible mawk `-W version` option.
https://github.com/junegunn/fzf/pull/3313#issuecomment-1747934690 .
* Run the command and not a function consistently with #3462 .
The version check bash code relies on the following mawk source code,
extracted from mawk 1.3.4 20230322.
```
version.c:
18- #include "init.h"
19- #include "patchlev.h"
20-
21: #define VERSION_STRING \
22- "mawk %d.%d%s %s\n\
23- Copyright 2008-2022,2023, Thomas E. Dickey\n\
24- Copyright 1991-1996,2014, Michael D. Brennan\n\n"
....
30- void
31- print_version(FILE *fp)
32- {
33: fprintf(fp, VERSION_STRING, PATCH_BASE, PATCH_LEVEL, PATCH_STRING, DATE_STRING);
34- fflush(fp);
35-
36- #define SHOW_RANDOM "random-funcs:"
patchlev.h:
13- /*
14- * $MawkId: patchlev.h,v 1.128 2023/03/23 00:23:57 tom Exp $
15- */
16: #define PATCH_BASE 1
17- #define PATCH_LEVEL 3
18- #define PATCH_STRING ".4"
19- #define DATE_STRING "20230322"
```
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
9 months ago
Junegunn Choi
488a236b7a
[shell] Avoid side-effects during eval ( #3459 )
...
Take two.
* Avoid eval if the prefix contains `:=`
* This is not to evaluate variable assignment. e.g. ${FOO:=BAR}
* [zsh] Prevent `>(...)` form
* Suppress error message from prefix evaluation
* Stop completion when prefix evaluation failed
Thanks to @calestyo
9 months ago
Christoph Anton Mitterer
e833823e15
[bash] Don’t print function definition when checking for existence ( #3448 )
...
When just checking whether a function is already defined or not, it’s not
necessary to print out it’s definition (should it be defined).
bash’s `declare` provides the `-F`-option (which implies `-f`), which should
give a minor performance improvement
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
9 months ago
Junegunn Choi
ee4ba104e7
[completion] Prevent running a command during 'eval'
...
Do not attempt to provide fuzzy completion if the prefix contains a
pattern that may start an arbitraty command.
* $(...)
* `...`
* <(...)
Close #3459
9 months ago
junegunn
4fdc08295b
Deploying to master from @ junegunn/fzf@a3ff49aaf1 🚀
9 months ago
Junegunn Choi
a3ff49aaf1
[bash] CTRL-R on bash 3: Use backticks to avoid delay
...
e0b29e437b
9 months ago
Junegunn Choi
76364ea767
Remove unnecessary escaping in the default command
9 months ago
Christoph Anton Mitterer
8eec50d764
[shell] don’t needlessly escape `.` in shell pattern
...
`find`’s `-path`-option is described to use shell patterns (i.e. POSIX’ pattern
matching notation).
In that, `.` is not a special character, thus escaping it shouldn’t be
necessary.
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
9 months ago
junegunn
32b659b346
Deploying to master from @ junegunn/fzf@00809909ae 🚀
9 months ago
Junegunn Choi
00809909ae
Update CHANGELOG
9 months ago
step
9f7684f6fe
[bash] History, use perl if installed otherwise awk ( #3313 )
...
While awk is POSIX, perl isn't pre-installed on all *nix flavors.
This commit eliminates the mandatory dependency on perl by using awk
when perl is not available.
Related: #3295 , #3309 , #3310 .
Test suite passed:
* `make error` all test sections 'PASS'
* `make docker-test` 215 runs, 1884 assertions, 0 failures, 0 errors, 0 skips.
Manually tested in the following environments:
* Linux amd64 with bash 3.2, 4.4, 5.2; gawk -P, one true awk, mawk, busybox awk.
* macOS Catalina, bash 3.2, macOS awk 20070501.
**Performance comparison:**
Mawk turned out the fastest, then perl.
One true awk's implementation should be the closest to macOS awk.
Test data: 230 KB history, 15102 entries, including multi-line and duplicates.
Linux, bash 4.4. Times in milliseconds.
| Command | Mean | Min | Max | Relative |
| :--- | ---: | ---: | ---: | -------: |
| `mawk 1.3.4` | 22.9 | 22.3 | 25.6 | **1.00** |
| `perl 5.26.1` | 34.3 | 33.6 | 35.1 | 1.49 |
| `one true awk 20221215` | 41.9 | 40.6 | 46.3 | 1.83 |
| `gawk 5.1.0` | 46.1 | 44.4 | 50.3 | 2.01 |
| `busybox awk 1.27.0` | 64.8 | 63.2 | 70.0 | 2.82 |
**Other Notes**
A bug affects bash, which fails restoring a saved multi-line history entry as a single entry. Bug fixed in version 5.0.[^1]
While developing this PR I discovered two unsubmitted issues affecting the current perl script. The output stream ends with `$'\n\0000'` instead of `$'\0000'`. Because of this, the script does not deduplicate a duplicated entry located at the end of the history list; therefore fzf displays two identical (not necessarily adjacent) entries. A minor point about the first issue is that the top fzf entry ends with a dangling line feed symbol, which is visible in the terminal.
[^1]: ec8113b986/CHANGES (L1511)
To enable: `shopt -s cmdhist lithist; HISTTIMEFORMAT='%F %T '`.
9 months ago
Junegunn Choi
2bed7d370e
[shell] Use --scheme=path when appropriate
...
Without the option, you may get suboptimal results if you have many
paths with spaces in their names.
e.g. https://github.com/junegunn/fzf/issues/2909#issuecomment-1207690770
Close #3433
9 months ago
dependabot[bot]
d2b852f7cb
Bump golang.org/x/term from 0.11.0 to 0.12.0 ( #3426 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/term/compare/v0.11.0...v0.12.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
9 months ago
Junegunn Choi
901939bd96
Add support for limit and offset parameters for GET / endpoint
...
Related #3372
9 months ago
Timofei Bredov
edfdcc8cee
Basic context-aware completion for ssh command ( #3424 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
9 months ago
Junegunn Choi
3982c9a552
[vimdoc] Replace unicode figure space (U+2007) with regular space
...
Related: https://github.com/junegunn/fzf.vim/pull/1507
Thanks to @balki
9 months ago
Junegunn Choi
4490b2d209
Respect ANSI codes to reset properties
...
Fix #3441
9 months ago
Sam James
eb4bbf3294
Makefile: build 32-bit binary on armv8l ( #3434 )
...
armv8l is always 32-bit and should implement the armv7 ISA, so
just use the same filename as for armv7.
This avoids wrongly building a 64-bit binary because of an incorrect assumption
of what 'armv8l' is (a 32-bit system).
Obviously, we should not then build a 64-bit (arm64) binary. Especially
given armv8l is often used in arm32-on-arm64 chroots to build stuff for
weaker-powered arm32 devices.
Signed-off-by: Sam James <sam@gentoo.org>
9 months ago
junegunn
dc97d48491
Deploying to master from @ junegunn/fzf@0f50dc848e 🚀
9 months ago
Junegunn Choi
0f50dc848e
Add 'GET /' endpoint for getting the program state (experimental)
...
Related #3372
10 months ago
Junegunn Choi
c5e4b83de3
Update sponsor list once a week
10 months ago
junegunn
a08ab46713
Deploying to master from @ junegunn/fzf@f50a7058d6 🚀
10 months ago
Junegunn Choi
f50a7058d6
Fix center-alignment of border/preview label
...
Fix #3421
10 months ago
junegunn
2c74f0a040
Deploying to master from @ junegunn/fzf@58835e40f3 🚀
10 months ago
Junegunn Choi
58835e40f3
Run GitHub Sponsors action once a day
10 months ago
junegunn
8befa5918a
Deploying to master from @ junegunn/fzf@df80f7ff2a 🚀
10 months ago
junegunn
df80f7ff2a
Deploying to master from @ junegunn/fzf@5f66786ef1 🚀
10 months ago
Junegunn Choi
5f66786ef1
[install] Replace go get with go install
...
Fix #3365
10 months ago
Junegunn Choi
3a965856a5
[vim] Keep jump list unaffected when calling term_start
...
Fix #3415
10 months ago
junegunn
03df609d77
Deploying to master from @ junegunn/fzf@178581b560 🚀
10 months ago
junegunn
178581b560
Deploying to master from @ junegunn/fzf@ffd2314120 🚀
10 months ago
Junegunn Choi
ffd2314120
Restore --no-clear option in man page
...
Close #3411
10 months ago
Chandan Mangu
815b595d2f
[fzf-tmux] Turn off remain-on-exit only on fzf-tmux pane ( #3410 )
...
* fix: turn off remain-on-exit only on fzf-tmux pane
Using `fzf-tmux` overwrites `remain-on-exit` for all panes in a window,
if it is only set globally or at a higher scope than window.
set-option -wg remain-on-exit on
set-option -s remain-on-exit on
This makes other panes in that window close immediately on exit after
using `fzf-tmux`, even though I expect them to remain open.
Since TMux 3.0, `remain-on-exit` is a pane option that can be set via
`set-option -p`. This will limit the option's scope to just the
`fzf-tmux` pane, thus allowing us to close it immediately without
overriding `remain-on-exit` on other panes in the window.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Link: 11e69f6025/CHANGES (L753-L760)
Link: https://github.com/tmux/tmux/releases/tag/3.0
Related: https://github.com/junegunn/fzf/issues/3397
* fix: turn off synchronize-panes only on fzf-tmux pane
Similar reason to 482fd2b
(fix: turn off remain-on-exit only on fzf-tmux
pane, 2023-08-24).
Limit scope on which option is set to bare minimum.
Have confirmed this will not feed input back to other panes which are
set to be synchronized. However, note that this will not stop `fzf-tmux`
from being launched by two synchronized panes in parallel.
Link: https://github.com/junegunn/fzf/issues/3397#issuecomment-1689295351
---------
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
10 months ago
Junegunn Choi
11e56403dd
[man] Clarify --scheme option
...
Close #3387
10 months ago
junegunn
4baadecda5
Deploying to master from @ junegunn/fzf@cf552b5f3b 🚀
10 months ago
junegunn
cf552b5f3b
Deploying to master from @ junegunn/fzf@1894304d33 🚀
10 months ago
Junegunn Choi
1894304d33
[bash] Disable pipefail in command substitution
...
Fix #3382
10 months ago
sitiom
9d5392fb02
Change Winget Releaser job to `ubuntu-latest` ( #3403 )
10 months ago
dependabot[bot]
c280645671
Bump crate-ci/typos from 1.15.0 to 1.16.4 ( #3400 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.15.0 to 1.16.4.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.15.0...v1.16.4 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
dependabot[bot]
45f92e6b38
Bump actions/checkout from 2 to 3 ( #3399 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 2 to 3.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](https://github.com/actions/checkout/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
10 months ago
Junegunn Choi
6509f09961
Set up GitHub Sponsors Readme Action ( #3398 )
10 months ago
junegunn
3c279a6f0e
Deploying to master from @ junegunn/fzf@40515f11a4 🚀
10 months ago
Nikita Kouevda
9ec3f03871
doc: Add different prefix for Homebrew on Apple Silicon ( #3396 )
...
Follow-up to d42e708d31
.
Fixes #3095 .
10 months ago
dependabot[bot]
84a9c2c112
Bump golang.org/x/term from 0.10.0 to 0.11.0 ( #3393 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/term/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
11 months ago
dependabot[bot]
af368119cb
Bump golang.org/x/sys from 0.10.0 to 0.11.0 ( #3392 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
11 months ago
Junegunn Choi
89b9189efa
[fzf-tmux] Pass $RUNEWIDTH_EASTASIAN
...
Close #3385
11 months ago
Junegunn Choi
dd59b8c7b9
Fix ANSI color continuation in --header
...
# Both lines should be in red
fzf --header $'\x1b[31mfoo\nbar'
11 months ago
Junegunn Choi
f83491274f
Add toggle-header option
...
Close #3358
11 months ago
Boaz Yaniv
c0435fdff4
Add API Keys for fzf --listen ( #3374 )
11 months ago
Bart
3c09c77269
Fix deprecations of ioutil ( #3370 )
11 months ago
Junegunn Choi
547e101f1d
Use $SHELL instead of bash if it's known to support 'pipefail'
...
when running the default find command
Close #3339
Close #3364
11 months ago
dependabot[bot]
0130f64934
Bump golang.org/x/term from 0.9.0 to 0.10.0 ( #3360 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/term/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
12 months ago
dependabot[bot]
361e0543ee
Bump golang.org/x/sys from 0.9.0 to 0.10.0 ( #3361 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.9.0...v0.10.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
12 months ago
Junegunn Choi
63aa5d3b4e
Correct outdated comment
12 months ago
dependabot[bot]
01302d097c
Bump golang.org/x/term from 0.8.0 to 0.9.0 ( #3338 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/term/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
e6095cb7e8
Bump golang.org/x/sys from 0.8.0 to 0.9.0 ( #3337 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.9.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
b876b8af11
Bump crate-ci/typos from 1.14.10 to 1.15.0 ( #3331 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.14.10 to 1.15.0.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.14.10...v1.15.0 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Junegunn Choi
a7c41f3fcd
Add '--info=right' to the man page
...
Close #3333
1 year ago
guangwu
4772bd8d4c
Use strings.ContainsRune instead ( #3335 )
1 year ago
Junegunn Choi
d471067e3f
0.42.0
1 year ago
Junegunn Choi
d0b7780239
Add --info=right
...
Related: #3322
1 year ago
Junegunn Choi
e627ca6bd7
Add --info=inline-right
...
Close #3322
1 year ago
Junegunn Choi
c97172bdd4
Fix background color of spinner on the preview window
1 year ago
Mike
ce8a745fb4
Add new border style: 'thinblock' ( #3327 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 year ago
Junegunn Choi
3e9efd1401
[vim] Only prepend --border option in $FZF_DEFAULT_OPTS
...
Fix #3318
1 year ago
Junegunn Choi
20340190b5
[fzf-tmux] Pass $BAT_THEME
...
This may anger some purists, but bat is widely used as the previewer so
I think it's worth it.
1 year ago
Junegunn Choi
265040a78c
[vim] Respect --border optin in $FZF_DEFAULT_OPTS
1 year ago
Junegunn Choi
448d7e0c5a
Update test case
1 year ago
Junegunn Choi
6eb1874c5a
0.41.1
1 year ago
Junegunn Choi
4c70745cc1
Fix bug where preview is not updated after reload when --disabled is set
...
Fix #3311
1 year ago
Junegunn Choi
7795748a3f
Remove dead code
1 year ago
Junegunn Choi
098ef4d7cf
0.41.0
1 year ago
Junegunn Choi
e3f91bfe1b
Use Golang 1.20.4
1 year ago
Junegunn Choi
7374fe73a3
Avoid setting $FZF_DEFAULT_COMMAND
...
So that it's not propagated to the child processes and affect the
behavior of fzf started by them.
fzf 0.41.0 or above is required as it fixed the issue where
'become' process is not given a proper tty device.
Close #3299
1 year ago
dependabot[bot]
d2bde205f0
Bump golang.org/x/term from 0.7.0 to 0.8.0 ( #3285 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.7.0 to 0.8.0.
- [Commits](https://github.com/golang/term/compare/v0.7.0...v0.8.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
5620f70f9a
Bump crate-ci/typos from 1.13.16 to 1.14.10 ( #3306 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.13.16 to 1.14.10.
- [Release notes](https://github.com/crate-ci/typos/releases )
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md )
- [Commits](https://github.com/crate-ci/typos/compare/v1.13.16...v1.14.10 )
---
updated-dependencies:
- dependency-name: crate-ci/typos
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Syphdias
37f258b1bf
Add key combinations for ctrl-delete and shift-delete ( #3284 )
...
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>
1 year ago
Junegunn Choi
e2dd2a133e
Skip post hooks on 'make build'
...
https://github.com/goreleaser/goreleaser/issues/1469
1 year ago
Junegunn Choi
7514644e07
Update Dockerfile: --platform=linux/amd64
1 year ago
Junegunn Choi
16b0aeda7d
Make sure 'become' process is given a proper tty device
1 year ago
Junegunn Choi
86e4f4a841
Update tcell renderer to support block border
1 year ago
Junegunn Choi
607eacf8c7
Allow unbind(focus)
...
Fix #3279
1 year ago
Junegunn Choi
7a049644a8
Fix panic when trying to render preview window of a negative height
...
Fix #3292
1 year ago
Junegunn Choi
17a13f00f8
Allow customizing scrollbar of the preview window via --scrollbar=xy
1 year ago
Junegunn Choi
43436e48e0
Add new border style: 'block'
1 year ago
Junegunn Choi
5a39102405
Allow customizing the color of preview scrollbar via 'preview-scrollbar'
1 year ago
Junegunn Choi
94999101e3
Fix the behavior of change-preview-window action ( #3280 )
...
* change-preview-window restores the initial preview window options,
and overrides the properties that are specified
* However, 'hidden' property is treated differently. It is set to
'false' if the specified properties of the action is non-empty.
* cf. toggle-preview takes the "current" preview window options and
toggles the 'hidden' property.
1 year ago
Junegunn Choi
e619b7c4f4
Fix the background color of the scrollbar inside the preview window
1 year ago
Junegunn Choi
b7c2e8cb67
Fix caching when reload and query change triggered by the same binding
1 year ago
Junegunn Choi
fb76893e18
0.40.0
1 year ago
Junegunn Choi
88d812fe82
Do not display trailing carriage returns in the preview window
...
Close #3269
1 year ago
Junegunn Choi
77f9f4664a
Fix search not triggered when query change and reload happen at the same time
...
Fix #3268
1 year ago
dependabot[bot]
5c2f85c39e
Bump golang.org/x/term from 0.6.0 to 0.7.0 ( #3249 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/term/releases )
- [Commits](https://github.com/golang/term/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
ac4d22cd12
Bump golang.org/x/sys from 0.6.0 to 0.7.0 ( #3248 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/compare/v0.6.0...v0.7.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Junegunn Choi
cf95e44cb4
Add 'zero' event
...
Close #3263
1 year ago
Junegunn Choi
65dd2bb429
Add 'track' action
1 year ago
Junegunn Choi
6be855be6a
Add change-header and transform-header
...
Close #3237
1 year ago
Junegunn Choi
b6e3f4423b
[man] Suggest setting RUNEWIDTH_EASTASIAN to 0 or 1
...
Close #2389
1 year ago
Junegunn Choi
0c61d81713
Add toggle-track action
1 year ago
Junegunn Choi
7c6f5dba63
Fixed --track when used with --tac
...
Fix #3234
1 year ago
psarlov
44cfc7e62a
[vim] Add check for powershell 7 users ( #3257 )
...
Co-authored-by: Pavel Sarlov <psarlov@asteasolutions.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 year ago
Junegunn Choi
96670d5f16
Disallow using --track with --tac
...
Close #3234
1 year ago
Junegunn Choi
36b971ee4e
[fzf-tmux] Try awk before bc
1 year ago
Junegunn Choi
f1a9629652
[fzf-tmux] Use awk if bc is not found
...
Fix #3235
1 year ago
Junegunn Choi
20230402d0
0.39.0
1 year ago
Junegunn Choi
5c2c3a6c88
Use Go 1.20.2
1 year ago
tyama711
fb019d43bf
Fix a bug of height range with -1 or -0 ( #3226 )
...
Fixed a bug that when both heightUnknown and deferred are true, deferred is not properly reset and the program terminates abnormally.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 year ago
Junegunn Choi
025aa33773
[fzf-tmux] Disallow popup mode on tmux 3.1 or below
...
Close #3198
1 year ago
Junegunn Choi
302e21fd58
[shell] Update kill completion
...
* Explicitly specify the list of fields for consistent experience
* Add fallback command for BusyBox (Close #3219 )
* Apply `--header-lines=1` to show the column header
1 year ago
Junegunn Choi
211512ae64
Fix Rubocop error
1 year ago
Junegunn Choi
8ec917b1c3
Add 'one' event
...
Close #2629
Close #2494
Close #459
1 year ago
Junegunn Choi
1c7534f009
Add --track option to track the current selection
...
Close #3186
Related #1890
1 year ago
Sten Arthur Laane
ae745d9397
Add bat to bash autocomplete commands ( #3223 )
...
Bat is a common alternative to cat, it's even referenced multiple times
in fzf docs. This makes `bat **` work by default.
1 year ago
Junegunn Choi
60f37aae2f
Respect 'regular' attribute in 'bw' base theme
...
Don't make the text bold if an element is explicitly specified as
'regular'.
Fix #3222
1 year ago
Junegunn Choi
d7daf5f724
Render CR and LF as ␍ and ␊
...
Close #2529
1 year ago
Vitaly Zdanevich
e5103d9429
README.md: package managers: add Portage/Gentoo ( #3205 )
1 year ago
dependabot[bot]
8fecb29848
Bump github.com/rivo/uniseg from 0.4.2 to 0.4.4 ( #3192 )
...
Bumps [github.com/rivo/uniseg](https://github.com/rivo/uniseg ) from 0.4.2 to 0.4.4.
- [Release notes](https://github.com/rivo/uniseg/releases )
- [Commits](https://github.com/rivo/uniseg/compare/v0.4.2...v0.4.4 )
---
updated-dependencies:
- dependency-name: github.com/rivo/uniseg
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>
1 year ago
dependabot[bot]
290ea6179d
Bump golang.org/x/term from 0.0.0-20210927222741-03fcf44c2211 to 0.6.0 ( #3203 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.0.0-20210927222741-03fcf44c2211 to 0.6.0.
- [Release notes](https://github.com/golang/term/releases )
- [Commits](https://github.com/golang/term/commits/v0.6.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/term
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
9695a40fc9
Bump golang.org/x/sys from 0.0.0-20220811171246-fbc7d0a398ab to 0.6.0 ( #3202 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.0.0-20220811171246-fbc7d0a398ab to 0.6.0.
- [Release notes](https://github.com/golang/sys/releases )
- [Commits](https://github.com/golang/sys/commits/v0.6.0 )
---
updated-dependencies:
- dependency-name: golang.org/x/sys
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
dependabot[bot]
1913b95227
Bump actions/setup-go from 3 to 4 ( #3216 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3 to 4.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 year ago
Junegunn Choi
a874aea692
[vim] More explanation on 'set rtp+=~/.fzf' instruction
...
Close #3171
1 year ago
Michael Vorburger ⛑️
69c52099e7
docs: Fix intention of README ( #3214 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 year ago
Junegunn Choi
cfc0747d5d
Follow Rubocop suggestion
1 year ago
Junegunn Choi
fcd7e8768d
Omit port number in `--listen` for automatic port assignment
...
Close #3200
1 year ago
Junegunn Choi
3c34dd8275
Fix extra new line in the preview window
...
When a colored text ends at the right end of the window
Fix #3209
1 year ago
Junegunn Choi
1116e481be
[vim] Update setqflist example
...
Without 'lnum', cfdo doesn't work
Close https://github.com/junegunn/fzf.vim/issues/1435
1 year ago
dependabot[bot]
63cf9d04de
Bump crate-ci/typos from 1.13.10 to 1.13.16 ( #3194 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
1 year ago
Zhizhen He
3364d4d147
Add spell check workflow ( #3183 )
1 year ago
Junegunn Choi
57ad21e4bd
Build and release s390x binaries
1 year ago
Julian Ruess
414f87981f
Add support for s390x architecture
...
Signed-off-by: Julian Ruess <julianr@linux.ibm.com>
1 year ago
Junegunn Choi
b1459c79cf
Make sure that the query before the cursor is not hidden
...
Close #3176
1 year ago
Junegunn Choi
352ea07226
0.38.0
1 year ago
Junegunn Choi
27018787af
Describe become(...) action and use it to simplify examples
1 year ago
Junegunn Choi
4e305eca26
become: Set stdin to /dev/tty
1 year ago
sitiom
9e9c0ceaf4
Add Winget Releaser workflow ( #3164 )
1 year ago
Junegunn Choi
b3bf18b1c0
[fzf-tmux] Fix version check
...
The output of `tmux -V` starts with "tmux ".
1 year ago
Junegunn Choi
b1619f675f
[fzf-tmux] Do not set --margin 0,1 on tmux 3.3 or above
...
Close #3162
1 year ago
Junegunn Choi
96c3de12eb
Run 'become' only when the command template is properly evaluated
1 year ago
Junegunn Choi
719dbb8bae
Update ADVANCED.md: transform-query to restore the query string
...
Close #2961
1 year ago
Junegunn Choi
f38a7f7f8f
[bash] Enable environment variable completion for printenv
...
Close #3145
1 year ago
Junegunn Choi
6ea38b4438
Add become(...) action that replaces current fzf process
...
Close #3159
1 year ago
Junegunn Choi
f7447aece1
Code cleanup
1 year ago
Junegunn Choi
aa2b9ec476
Add 'show-preview' and 'hide-preview'
...
For cases where 'toggle-preview' is not enough
1 year ago
Junegunn Choi
3ee00f8bc2
toggle-preview should not show empty preview window
1 year ago
Junegunn Choi
fccab60a5c
`--preview-window 0,hidden` should not execute the preview command
...
Until `toggle-preview` action is triggered
Fix #3149
1 year ago
Junegunn Choi
0f4af38457
[vim] Simplify --border injection
...
Prepend the border options so that the user can override them in
'options' entry of the spec.
1 year ago
Junegunn Choi
aef39f1160
[vim] Fix missing --border when --border-label is present
1 year ago
Junegunn Choi
2023012408
0.37.0
1 year ago
Junegunn Choi
95a7661bb1
Sanitize input strings that should be a single line
1 year ago
Junegunn Choi
618d317803
Support custom separator of inline info
...
Close #2030
Close #3084
1 year ago
Junegunn Choi
ae897c8cdb
No need to touch mouse flag if it's already false
1 year ago
Junegunn Choi
d0a0f3c052
Temporarily disable mouse mode when switching to an external command
1 year ago
Junegunn Choi
91b9591b10
Reenable mouse mode when coming back from an external program
...
Close #3141
1 year ago
Junegunn Choi
aa7361337d
Make test case pass on 32-bit platforms
...
Close #3127
1 year ago
Junegunn Choi
284d77fe2e
Add 'focus' event
...
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
1 year ago
Junegunn Choi
826178f1e2
Do not restore terminal state while running an external command
1 year ago
Junegunn Choi
acccf8a9b8
Fix TOC
1 year ago
Francesco Bigagnoli
57c066f0be
Fix bat url in README ( #3129 )
1 year ago
Nachum Barcohen
e44f64ae92
Add Helix editor to bash autocompletion ( #3137 )
1 year ago
Junegunn Choi
d51980a3f5
Add 'transform-border-label' and 'transform-preview-label'
1 year ago
jpcrs
c3d73e7ecb
Add change-border-label and change-preview-label actions, update man
1 year ago
Junegunn Choi
b077f6821d
Action argument in enclosed form should allow new lines
...
Close #3138
1 year ago
Junegunn Choi
a79de11af7
README: Add FZF_TMUX_OPTS example for tmux popup
1 year ago
Junegunn Choi
2023011763
0.36.0
1 year ago
Junegunn Choi
b46e40e86b
[vim] Automatically set RUNEWIDTH_EASTASIAN=1 when &ambiwidth == double
1 year ago
Junegunn Choi
a6d6cdd165
[vim] Use system-default border style
...
* 'rounded' on non-Windows platforms
* 'sharp' on Windows
1 year ago
Junegunn Choi
dc8da605f9
Fix rendering of double-column borders on light renderer
1 year ago
Junegunn Choi
8b299a29c7
Fix rendering of double-column borders
1 year ago
Junegunn Choi
3109b865d2
Fix typo on man page
1 year ago
Junegunn Choi
0c5956c43c
Better support for Windows terminals
...
* 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`.
1 year ago
Junegunn Choi
1c83b39691
Update README examples
1 year ago
Junegunn Choi
77874b473c
Update Rubocop dependencies
1 year ago
Junegunn Choi
b7cce7be15
Remove unused block argument
1 year ago
Junegunn Choi
3cd3362417
Fix test failure
1 year ago
Junegunn Choi
e97e925efb
Resume preview following if the user scrolls the window to the bottom
1 year ago
Farooq Karimi Zadeh
0f032235cf
Correct package manager commands for apt ( #3117 )
1 year ago
Junegunn Choi
e0f0984da7
Allow re-enabling preview follow on change-preview-window
1 year ago
Junegunn Choi
4d22b5aaef
Disable preview follow after dragging the scrollbar
...
TBD: Should we re-enable follow once the offset reaches the bottom?
1 year ago
Junegunn Choi
80b8846318
Run preview command when preview window appears after resize ( #3113 )
...
# Start fzf in a small screen so that the preview window is hidden
fzf --bind 'ctrl-p:toggle-preview' --preview 'stat {}' --preview-window='right,50%,<100(down,50%,hidden)'
# Enlarge the screen until the preview window appears. It should not be empty.
1 year ago
Junegunn Choi
bf641faafa
Prevent fzf crashing on malformed remote action
1 year ago
Junegunn Choi
23d8b78ce1
Allow toggling of alternative preview window layout that is hidden
...
Fix #3113
1 year ago
Junegunn Choi
3b2244077d
Add scrollbar to the preview window
1 year ago
Junegunn Choi
ee5cdb9713
Reduce flickering of the scroll info panel on the preview window
1 year ago
Junegunn Choi
03d02d67f7
Fix cyclic scrolling with non-zero preview header lines
...
e.g. fzf --preview-window 'cycle,~2' --preview 'echo foo; echo bar; seq 100'
1 year ago
Junegunn Choi
5798145581
Fix preview border on tcell renderer
1 year ago
dependabot[bot]
51ef0b7f66
Bump github.com/gdamore/tcell/v2 from 2.5.3 to 2.5.4
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.5.3 to 2.5.4.
- [Release notes](https://github.com/gdamore/tcell/releases )
- [Changelog](https://github.com/gdamore/tcell/blob/main/CHANGESv2.md )
- [Commits](https://github.com/gdamore/tcell/compare/v2.5.3...v2.5.4 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
1 year ago
dependabot[bot]
97b4542c73
Bump github.com/mattn/go-isatty from 0.0.16 to 0.0.17
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.16 to 0.0.17.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.16...v0.0.17 )
---
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>
1 year ago
Junegunn Choi
c1cd0c09a2
Allow dragging of the preview window
1 year ago
Junegunn Choi
1fc1f47d80
Fix double-click on light renderer
1 year ago
Junegunn Choi
ec471a5bc2
Make sure two consecutive double clicks require four clicks
1 year ago
Junegunn Choi
a893fc0ca2
Clicks with different x coordinates shouldn't be seen as a double-click
1 year ago
Junegunn Choi
3761dc0433
Avoid superfluous update of scrollbar
1 year ago
Junegunn Choi
aa71a07fbe
Fix scrollbar rendering ( #3096 )
1 year ago
Junegunn Choi
088293f5e7
Restore mouse drag mode ( #3096 )
1 year ago
Junegunn Choi
7c660aa86e
Allow dragging of scrollbar
1 year ago
Junegunn Choi
435d8fa0a2
Colors for 'separator' and 'scrollbar' will default to that for 'border'
1 year ago
Junegunn Choi
5cd6f1d064
Add scrollbar
...
Close #3096
1 year ago
Junegunn Choi
ec20dfe312
Only allow local requests
1 year ago
Junegunn Choi
924ffb5a35
Fix cache being immediately cleared on reload-sync
1 year ago
Junegunn Choi
62c7f59b94
Add transform-prompt(...) action
1 year ago
Junegunn Choi
e97176b1d7
Update transform-query examples for zsh
...
Close #3107
1 year ago
Junegunn Choi
d649f5d826
Always execute preview command if {q} is in the template
...
Even when {q} is empty. Because, why not?
While this can be seen as a breaking change, there is an easy workaround
to keep the old behavior.
# This will show // even when the query is empty
: | fzf --preview 'echo /{q}/'
# But if you don't want it,
: | fzf --preview '[ -n {q} ] || exit; echo /{q}/'
Close #2759
1 year ago
Junegunn Choi
6c37177cf5
Add reload-sync action
...
Close #2816
1 year ago
Junegunn Choi
14775aa975
Add 'load' event that is triggered when the input stream is complete
...
and the first search (with or without query) is complete
1 year ago
Junegunn Choi
44b6336372
Make server channel buffered
...
Not to block an action that calls the API
fzf --listen 6266 --bind 'space:execute-silent:curl localhost:6266 -d up'
2 years ago
Junegunn Choi
36d2bb332b
Add transform-query(...) action
...
Test case authored by @SpicyLemon
Close #1930
Close #2465
Close #2559
Close #2509 (e.g. fzf --bind 'space:transform-query:printf %s%s {q} {}')
2 years ago
Junegunn Choi
4dbe45640a
Remove $FZF_LISTEN_PORT
...
It is not worth the added complexity.
2 years ago
Junegunn Choi
4b3f0b9f08
Allow put action with an argument i.e. put(...)
2 years ago
Junegunn Choi
12af069dca
Add pos(...) action to move the cursor to the numeric position
...
# Put the cursor on the 10th item
seq 100 | fzf --sync --bind 'start:pos(10)'
# Put the cursor on the 10th to last item
seq 100 | fzf --sync --bind 'start:pos(-10)'
Close #3069
Close #395
2 years ago
Junegunn Choi
d42e708d31
Update README-VIM: Different homebrew prefix on Apple Silicon
...
Close #3095
2 years ago
Junegunn Choi
b7bb973118
Revert "Add GET endpoints for getting the state of the finder"
...
This reverts commit 750b2a6313
.
This can cause a deadlock if the endpoints are accessed in the core event
loop via execute action.
fzf --listen 6266 --bind 'space:execute:curl localhost:6266'
Technically, there's no reason to use the API because the information is
already available via `{}` and `{q}`, but I'd like to completely remove
the risk of misuse.
2 years ago
Junegunn Choi
750b2a6313
Add GET endpoints for getting the state of the finder
...
* GET / (or GET /current)
* GET /query
2 years ago
Philipp Wagner
de0da86bd7
Add ppc64le binaries ( #3067 )
...
Little-endian 64 bit PowerPC (ppc64le) is the "normal" PowerPC
architecture supported by standard Linux distributions (RedHat, SUSE,
Ubuntu, etc.).
Add support for this architecture in the install script, and add binary
builds for it as well.
2 years ago
Junegunn Choi
8e283f512a
Fix bind spec parser
2 years ago
Junegunn Choi
73162a4bc3
Rewrite bind spec parser
2 years ago
Junegunn Choi
1a9761736e
Add time and size limit to remote requests
2 years ago
Junegunn Choi
fd1f7665a7
Abort fzf if --listen port is unavailable
2 years ago
Junegunn Choi
6d14573fd0
Add test case for --listen
2 years ago
Junegunn Choi
cf69b836ac
Only trim CR and NF from the submitted expression
...
So the trailing space in the following case is respected.
curl -XPOST localhost:6266 -d "change-prompt:$(date)> "
2 years ago
Junegunn Choi
a7a771b92b
Break out of jump mode when any action is submitted to the server
2 years ago
Junegunn Choi
def011c029
Fix parse error of actions with arguments
2 years ago
Junegunn Choi
4b055bf260
Rewrite HTTP server without net/http
...
This cuts down the binary size from 5.7MB to 3.3MB.
2 years ago
Junegunn Choi
1ba7484d60
Add --listen=HTTP_PORT option to receive actions
...
Supersedes #2019
See also:
* #1728
* https://github.com/junegunn/fzf.vim/pull/1044
2 years ago
Junegunn Choi
51c518da1e
Add change-query(...) action
2 years ago
polluks2
a3b6b03dfb
Fix typo ( #3093 )
...
Co-authored-by: polluks <polluks@sdf.lonestar.org>
2 years ago
Junegunn Choi
18e3b38c69
Add 'next-selected' and 'prev-selected' actions
...
Close #2749
2 years ago
Junegunn Choi
0ad30063ff
Rename previous-history to prev-history
...
previous-history is still supported for backward compatibility
2 years ago
Junegunn Choi
7812c64a31
Fix uninitialized colors in base themes
...
Fix #3079
2 years ago
Junegunn Choi
3d2376ab52
Add color name 'preview-label' ( #3053 )
2 years ago
Junegunn Choi
6b207bbf2b
Fix inconsistent bonus points in exact match
...
Exact match would assign a different bonus point to the first character
when non-default --scheme was used.
Fix #3073
2 years ago
Bjørn Forsman
3f079ba7c6
README.md: Clarify on FZF_*_OPTS ( #3064 )
...
At first I thought they were appended to FZF_*_COMMAND. Let's make it
clear that these are passed to `fzf` itself.
2 years ago
Junegunn Choi
8f4c89f50e
Make 'double-click' behave the same as 'enter' by default
...
Close #3061
2 years ago
OHZEKI Naoki
6b7a543c82
Add more util tests ( #3062 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Junegunn Choi
2ba68d24f2
Do not erase info separator before redrawing it
2 years ago
Bruno Heridet
46877e0a92
test(eventbox): remove obsolete EvtClose const ( #3059 )
2 years ago
Junegunn Choi
b55f555487
0.35.1
2 years ago
Junegunn Choi
a38b63be18
Fix mouse event above fzf finder
...
Fix #2949
2 years ago
Junegunn Choi
1bebd6f4f5
Fix panic on inverse match query with `--tiebreak=chunk`
...
Fix #3055
2 years ago
Bruno Heridet
3da63f394d
doc(man): complete the definition of what --no-unicode impacts ( #3054 )
2 years ago
Zhizhen He
2a54e3d770
Fix typos in the source code ( #3048 )
2 years ago
dependabot[bot]
06b02ba46e
Bump actions/dependency-review-action from 2 to 3 ( #3046 )
...
Bumps [actions/dependency-review-action](https://github.com/actions/dependency-review-action ) from 2 to 3.
- [Release notes](https://github.com/actions/dependency-review-action/releases )
- [Commits](https://github.com/actions/dependency-review-action/compare/v2...v3 )
---
updated-dependencies:
- dependency-name: actions/dependency-review-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Junegunn Choi
d01ae55109
0.35.0
2 years ago
Junegunn Choi
8868d7d188
Add --separator to customize the info separator
2 years ago
Junegunn Choi
2eec9892be
[neovim] Use Normal group colors for floating window
...
Instead of NormalFloat.
https://github.com/junegunn/fzf/issues/3035#issuecomment-1305094043
2 years ago
Junegunn Choi
01ae621f11
Add --border=[bold|double] and --preview-window=border-[bold|double]
2 years ago
Junegunn Choi
f984aa0d2c
Fix --border-label and --preview-label on tcell renderer
2 years ago
Junegunn Choi
0881a6bc17
[neovim] Do not use Pmenu group colors for floating window
...
In Neovim, the foreground and background colors of a floating window
defaults to those of Pmenu highlight group, which yields unexpected
results.
This commit makes the colors of fzf window defaults to those of 'Normal'
group (or 'NormalFloat' if defined), by ignoring Pmenu group.
Then the colors can be configured via --color option of fzf.
NOTE: An error from setwinvar call is ignored because the exact
behavior of &winhighlight with an empty target group is not clearly
documented.
Close #3035
Close https://github.com/junegunn/fzf.vim/issues/1431
See https://github.com/neovim/neovim/pull/9722#discussion_r264777602
2 years ago
Junegunn Choi
2c6a73546d
Fix rubocop check
2 years ago
Junegunn Choi
a29944660e
Fix typo in CHANGELOG
2 years ago
Junegunn Choi
f6ce624c6f
Add tests for --border-label and --preview-label
...
Also fix failing tests due to info separator
Related #3022 #3029
2 years ago
Junegunn Choi
c09ec8e4d1
Allow putting border label on the bottom line
...
Related #3022
2 years ago
Junegunn Choi
31bbaad06e
Add --preview-label and --preview-label-pos
...
Close #3022
2 years ago
Junegunn Choi
b9ca1fe830
Add horizontal separator after info panel (counter)
...
Close #3029
2 years ago
Junegunn Choi
e61585f2f3
Add --border-label and --border-label-pos
...
Close #3022
2 years ago
Junegunn Choi
0de1aacb0c
[vim] Fix version check on Windows when shellslash is set
2 years ago
Junegunn Choi
168829b555
Add 'start' event that is triggered once when fzf finder starts
...
Close #1622
2 years ago
dependabot[bot]
170fc517d0
Use actions/setup-go v3 ( #3021 )
...
* Bump actions/setup-go from 3.3.0 to 3.3.1
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](268d8c0ca0...c4a742cab1
)
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Apply suggestions from code review
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Naveen
0fbf1c7c71
Add dependency review ( #2817 )
...
* chore(deps): Included dependency review
> Dependency Review GitHub Action in your repository to enforce dependency
> reviews on your pull requests.
> The action scans for vulnerable versions of dependencies introduced by package version
> changes in pull requests,
> and warns you about the associated security vulnerabilities.
> This gives you better visibility of what's changing in a pull request,
> and helps prevent vulnerabilities being added to your repository.
https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
* Update .github/workflows/depsreview.yaml
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
dependabot[bot]
694be39c71
Use ruby/setup-ruby v1 ( #3012 )
...
* Bump ruby/setup-ruby from 1.117.0 to 1.118.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby ) from 1.117.0 to 1.118.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Commits](3068fa83f9...eae47962ba
)
---
updated-dependencies:
- dependency-name: ruby/setup-ruby
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Apply suggestions from code review
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
dependabot[bot]
dad26d81df
Use github/codeql-action@v2 ( #2998 )
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
dependabot[bot]
bcaea097ea
Bump actions/checkout from 61b9e3751b92087fd0b06925ba6dd6314e06f089 to v3 ( #2997 )
...
* Bump actions/checkout
Bumps [actions/checkout](https://github.com/actions/checkout ) from 61b9e3751b92087fd0b06925ba6dd6314e06f089 to 3.1.0. This release includes the previously tagged commit.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](61b9e3751b...93ea575cb5
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Apply suggestions from code review
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Junegunn Choi
d56fe74e24
Add checksums of Darwin binaries
...
Close #2989
2 years ago
John Fred Fadrigalan
4603d540c3
[shell] Make bash/zsh completion and bindings work with 'set -u' ( #2999 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Junegunn Choi
f9d53303bb
[vim] Remove unnecessary powershell check
...
&shell is guaranteed to be cmd.exe on windows because we call s:use_sh()
2 years ago
Junegunn Choi
d04faa6505
[vim] Fix escaping of fzf binary path containing spaces on Windows
...
Fix #2992
2 years ago
Kyle L. Davis
07da058eae
[vim] Update fzf#install to handle spaces on Windows ( #2993 )
2 years ago
Bruno Heridet
cefa6b9878
doc(man): add a hint about which UI element is the finder info ( #2991 )
...
While reading the description of the --info flag, it's not
immediately obvious that the "finder info" is in fact the
UI element representing the match counters.
2 years ago
Junegunn Choi
04d0b0223f
0.34.0
2 years ago
Junegunn Choi
78ad6d2d88
Phase out --no-clear in favor of bindable 'reload' action
2 years ago
Junegunn Choi
22cbd9fa58
Implement height range (--height ~[VALUE][%])
...
Close #2953
2 years ago
dependabot[bot]
984049586a
Bump github.com/mattn/go-runewidth from 0.0.13 to 0.0.14 ( #2984 )
...
Bumps [github.com/mattn/go-runewidth](https://github.com/mattn/go-runewidth ) from 0.0.13 to 0.0.14.
- [Release notes](https://github.com/mattn/go-runewidth/releases )
- [Commits](https://github.com/mattn/go-runewidth/compare/v0.0.13...v0.0.14 )
---
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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
cdfc2b92e3
Bump github.com/rivo/uniseg from 0.2.0 to 0.4.2 ( #2964 )
...
Bumps [github.com/rivo/uniseg](https://github.com/rivo/uniseg ) from 0.2.0 to 0.4.2.
- [Release notes](https://github.com/rivo/uniseg/releases )
- [Commits](https://github.com/rivo/uniseg/compare/v0.2.0...v0.4.2 )
---
updated-dependencies:
- dependency-name: github.com/rivo/uniseg
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
4530abe8df
Bump ruby/setup-ruby from 1.101.0 to 1.117.0 ( #2974 )
...
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby ) from 1.101.0 to 1.117.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Commits](ebaea52cb2...3068fa83f9
)
---
updated-dependencies:
- dependency-name: ruby/setup-ruby
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
586020b8b6
Bump actions/checkout from 629c2de402a417ea7690ca6ce3f33229e27606a5 to 61b9e3751b92087fd0b06925ba6dd6314e06f089 ( #2965 )
...
* Bump actions/checkout
Bumps [actions/checkout](https://github.com/actions/checkout ) from 629c2de402a417ea7690ca6ce3f33229e27606a5 to 61b9e3751b92087fd0b06925ba6dd6314e06f089.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](629c2de402...61b9e3751b
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
* Update .github/workflows/codeql-analysis.yml
* Update .github/workflows/macos.yml
* Update .github/workflows/linux.yml
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
dependabot[bot]
3a8626fd04
Bump github.com/saracen/walker from 0.1.2 to 0.1.3 ( #2880 )
...
Bumps [github.com/saracen/walker](https://github.com/saracen/walker ) from 0.1.2 to 0.1.3.
- [Release notes](https://github.com/saracen/walker/releases )
- [Commits](https://github.com/saracen/walker/compare/v0.1.2...v0.1.3 )
---
updated-dependencies:
- dependency-name: github.com/saracen/walker
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
a6e483a434
Bump actions/setup-go from 3.0.0 to 3.3.0 ( #2946 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 3.0.0 to 3.3.0.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](f6164bd8c8...268d8c0ca0
)
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
6a942e56b1
Bump github/codeql-action from 2.1.8 to 2.1.25 ( #2985 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.1.8 to 2.1.25.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](1ed1437484...86f3159a69
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
87c91550ad
Bump github.com/mattn/go-isatty from 0.0.14 to 0.0.16 ( #2926 )
...
Bumps [github.com/mattn/go-isatty](https://github.com/mattn/go-isatty ) from 0.0.14 to 0.0.16.
- [Release notes](https://github.com/mattn/go-isatty/releases )
- [Commits](https://github.com/mattn/go-isatty/compare/v0.0.14...v0.0.16 )
---
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>
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Junegunn Choi
731daf0f37
Fix tcell renderer
...
Fix #2954
2 years ago
Junegunn Choi
f931e53890
[fish] Do not use `builtin cd`
...
`builtin cd` of fish doesn't support `cd -`
Close #2967
2 years ago
Junegunn Choi
b5efc68737
Revert "Add Sponsor Labels action"
...
This reverts commit 845034c81c
.
2 years ago
knutze
b9e6e7926c
[bash] Fix completion of var or alias containing newlines ( #2952 )
...
* Fix bash completion var or aliase containing newlines
* Support for various bash declare options
Co-authored-by: knutze <shakte@gmail.com>
2 years ago
Junegunn Choi
845034c81c
Add Sponsor Labels action
2 years ago
Abirdcfly
54d42e3f40
Fix typo in CHANGELOG ( #2948 )
2 years ago
Junegunn Choi
e03ac3136e
0.33.0
2 years ago
Junegunn Choi
6fb41a202a
Add --scheme=[default|path|history] option to choose scoring scheme
...
Close #2909
Close #2930
2 years ago
Emil Vanherp
4bef330ce1
Add support for ANSI strike-through ( #2932 )
...
Close #2932
Co-authored-by: Emil Vanherp <emil@vanherp.me>
2 years ago
Junegunn Choi
8a5f719964
ADVANCED: fzf-git.sh
2 years ago
Charlie Vieth
209d5e8e90
ansi: speed up escape sequence parsing ( #2927 )
2 years ago
Junegunn Choi
9d041aa582
Update README
2 years ago
Junegunn Choi
6532b3e655
[completion] Remove extra trailing slash on directory completion
...
Fix #2931
2 years ago
Junegunn Choi
c1c355160d
Support border-{up,down} as the synonyms for border-{top,bottom}
2 years ago
Junegunn Choi
83515d5610
Update ANSI test cases
2 years ago
Junegunn Choi
aa10dccf90
Support colon delimiter in ANSI escape sequences
...
# Both should work
printf "\e[38;5;208mOption 1\e[m\nOption 2" | fzf --ansi
printf "\e[38:5:208mOption 1\e[m\nOption 2" | fzf --ansi
This change makes ANSI parsing slightly slower.
cpu: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Before:
BenchmarkNextAnsiEscapeSequence-12 992.22 MB/s
BenchmarkExtractColor-12 174.35 MB/s
After:
BenchmarkNextAnsiEscapeSequence-12 925.05 MB/s
BenchmarkExtractColor-12 163.33 MB/s
Fix #2913
2 years ago
Junegunn Choi
f4fd53211a
Reformat comments adhere to gofmt
2 years ago
Junegunn Choi
4993d19466
0.32.1
2 years ago
Junegunn Choi
19f9bbca0d
Allow specifying fzf options in $FZF_TMUX_OPTS without '--'
2 years ago
Junegunn Choi
779d8e1627
Use go 1.19
2 years ago
Junegunn Choi
bb07410448
Add --strip-cwd-prefix to fd examples
2 years ago
Yang Tian
d826f9e72f
[fzf-tmux] Use fzf border instead of tmux popup border ( #2908 )
...
Co-authored-by: Yang Tian <yang.tian@getcruise.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Junegunn Choi
6a6130615d
[fzf-tmux] Remove code for tmux 3.2 beta compatibility
2 years ago
lbesnard
a8e7021be2
[completion] ssh: Remove values with '%' ( #2548 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Junegunn Choi
38259d0382
Fix incorrect ordering of `--tiebreak=chunk`
2 years ago
Junegunn Choi
f7e7259910
0.32.0
2 years ago
Junegunn Choi
f0bfeba733
Add new tiebreak: 'chunk'
...
Favors the line with shorter matched chunk. A chunk is a set of
consecutive non-whitespace characters.
Unlike the default `length`, this new scheme works well with tabular input.
# length prefers item #1 , because the whole line is shorter,
# chunk prefers item #2 , because the matched chunk ("foo") is shorter
fzf --height=6 --header-lines=2 --tiebreak=chunk --reverse --query=fo << "EOF"
N | Field1 | Field2 | Field3
- | ------ | ------ | ------
1 | hello | foobar | baz
2 | world | foo | bazbaz
EOF
If the input does not contain any spaces, `chunk` is equivalent to
`length`. But we're not going to set it as the default because it is
computationally more expensive.
Close #2285
Close #2537
- Not the exact solution to --tiebreak=length not taking --nth into account,
but this should work. And the added benefit is that it works well even
when --nth is not provided.
- Adding a bonus point to the last character of a word didn't turn out great.
The order of the result suddenly changes when you type in the last
character in the word producing a jarring effect.
2 years ago
Junegunn Choi
c3a7a24eea
Tweak bonus points to word boundaries
...
Close https://github.com/junegunn/fzf.vim/issues/1004
# jobs/latency.js is favored over job_latency.js
printf 'job_latency.js\njobs/latency.js' | fzf -qlatency
2 years ago
Junegunn Choi
bbbcd780c9
Allow "--version" to be used as the argument to --query, --header, et al.
...
But why?
2 years ago
kissge
475469a2e7
[zsh] Make awk regex compatible with both GNU and macOS ( #2906 )
2 years ago
Junegunn Choi
3a7447dcb6
Update FUNDING.yml
2 years ago
Junegunn Choi
e5d8cbd383
[vim] Fix version check on windows/powershell (addendum)
...
Should handle powershell.exe as well
Fix https://github.com/junegunn/fzf.vim/issues/1411
2 years ago
Junegunn Choi
3c08dca7e7
Fix README examples so that they work both on bash and zsh
...
Close #2887
2 years ago
Carl Kamholtz
d083f01d22
[vim] Add option to force 24 bit colors on Windows ( #2889 )
2 years ago
Bob Matcuk
68cf393644
[bash] Fix 'possible retry loop' problem of bash-completion ( #2891 )
...
Close #2474
Close #2583
2 years ago
Junegunn Choi
18f7230662
Fix mouse location in --height mode
...
Fix #2900
2 years ago
Carl Kamholtz
728f735281
[vim] Fix version check on windows/powershell ( #2894 )
...
- Replace fzf#shellescape with shellescape
- Prepend command with '&' in powershell to deal with quoted exe
2 years ago
Junegunn Choi
ecc418ba77
0.31.0
2 years ago
Junegunn Choi
3af5b7f2ac
Do not validate other options when --version is present
...
Close #2690
2 years ago
Junegunn Choi
7a7cfcacbe
Lift unicode.IsGraphic constraint for pointer, marker, and ellipsis
...
Use at your own risk.
Close #2709
Close #2055
2 years ago
Junegunn Choi
52594355bf
[shell] 'kill' completion will now require trigger sequence (**)
...
'kill **<tab>' instead of 'kill <tab>' just like any other completions.
Close #2716
Close #385
2 years ago
Junegunn Choi
0d06c28b19
Fix delimiter regex to properly support caret (^)
...
Fix #2861
2 years ago
Junegunn Choi
ccc4677252
[vim] fzf#exec: Shell-escape fzf binary path
...
Fix #2877
2 years ago
Junegunn Choi
821fc9feed
Fix failing test case
2 years ago
Junegunn Choi
82b46726fc
Add support for an alternative preview window layout
...
Close #2804
Close #2844
Related #2277
2 years ago
Jakub Jirutka
8df872a482
[zsh] Replace perl with awk ( #2777 )
...
Unlike awk, which is even defined in POSIX, perl is not pre-installed
on all *nix systems. This awk command is functionally equivalent to
the original perl command.
2 years ago
Jonathan Zacsh
c79c306adb
[bash] Fix `fzf-tmux` to have `fzf`'s completion ( #2871 )
2 years ago
Junegunn Choi
51fdaad002
[uninstall] Remove readlink to support relative symlinks of dotfiles
...
Close #2853
2 years ago
znley
885cd8ff04
[make] Add loongarch64 support ( #2857 )
2 years ago
Tanish Yadav
2707af403a
[shell] Don't export PATH in ~/.fzf.{bash,zsh} ( #2852 )
...
There is no use exporting PATH when it is already exported. Moreover, it
causes things like `typeset -U path` in zsh to break if done before
sourcing "~/.fzf.zsh".
2 years ago
Junegunn Choi
2d227e5222
[man] Fix unescaped backslash in awk example
...
Close #2854
2 years ago
Junegunn Choi
70529878e2
Use SGR mouse mode for larger terminals
...
Fix #2840
2 years ago
Daniel Zhang
3b7a962dc6
[vim] Fix fzf#shellescape when shell=fish ( #2828 )
...
`shellescape()` behavior is different when `shell=fish`, so we should set `shell` before calling `shellescape()`, otherwise an unexpected result may occur (e.g. https://github.com/kevinhwang91/nvim-bqf/issues/56 ).
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Jan Warchoł
6dcf5c3d7d
[bash] Make complex commands slightly more friendly to work with ( #2784 )
...
- extract logical parts to separate variables (e.g. $opts)
- put options in $opts in similar order
- move +/-m into $opts (at the end, so they won't be overridden)
- split pipelines into multiple lines
- remove "echo" that seems to be redundant
All this should help with readability and also result in cleaner diffs
when changes are made.
2 years ago
Junegunn Choi
b089bb5e7b
Fix scrollability of the preview window in certain cases
...
Fix #2683
This commit fixes the cases where fzf incorrectly determines the
scrollability of the preview window when `--preview-window-wrap` is set.
Wrapping of the preview content happens during the rendering phase, so
it's currently not possible to know how many lines are actually needed
to display the content beforehand. So `preview-bottom` still may not
move to the very bottom with wrapping enabled.
2 years ago
dependabot[bot]
a91a67668e
Bump github/codeql-action from 2.1.6 to 2.1.8 ( #2787 )
...
* Bump github/codeql-action from 2.1.6 to 2.1.8
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 2.1.6 to 2.1.8.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](28eead2408...1ed1437484
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* Delete incorrect comments
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
dependabot[bot]
220a908118
Bump ruby/setup-ruby from 1.100.0 to 1.101.0 ( #2795 )
...
* Bump ruby/setup-ruby from 1.100.0 to 1.101.0
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby ) from 1.100.0 to 1.101.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Commits](bd94d6a504...ebaea52cb2
)
---
updated-dependencies:
- dependency-name: ruby/setup-ruby
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Delete incorrect comments
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 years ago
Ajeet D'Souza
54841248e7
[shell] ALT-C: Use builtin cd to avoid conflicts ( #2799 )
2 years ago
Junegunn Choi
a0b42e6538
Require Go 1.17 or above
2 years ago
Jan Warchoł
3312cf525d
[bash] Allow passing args to __fzf_select__ via fzf-file-widget ( #2783 )
...
This makes it easier to make customizations, for example instead of
bind -x '"\C-o\C-i": FZF_CTRL_T_COMMAND="fasd -Rl" FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --tiebreak=index " fzf-file-widget'
it's enough to just
bind -x '"\C-o\C-i": FZF_CTRL_T_COMMAND="fasd -Rl" fzf-file-widget --tiebreak=index'
2 years ago
Junegunn Choi
2093667548
0.30.0
2 years ago
Junegunn Choi
3c868d7961
ADVANCED.md: Add rebind example
2 years ago
dependabot[bot]
707f4f5816
Bump github/codeql-action from 1.1.5 to 2.1.6 ( #2782 )
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 1.1.5 to 2.1.6.
- [Release notes](https://github.com/github/codeql-action/releases )
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md )
- [Commits](8834766498...28eead2408
)
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Junegunn Choi
b3ab6311c5
Hide cursor while rendering the screen
...
Fix #2781
Fix #2588
Fix #1805
Fix https://github.com/junegunn/fzf.vim/issues/1370
Fix https://github.com/junegunn/fzf.vim/issues/1060
2 years ago
Junegunn Choi
d56f605b63
Add `rebind` action for restoring bindings after `unbind`
...
Fix #2752
Close #2564
2 years ago
Junegunn Choi
f8b713f425
Remove redundant state update on reload
...
Related: 5209e95
2 years ago
Junegunn Choi
5209e95bc7
Make preview updated when reload and change-query are combined
...
Fix #2744
2 years ago
Junegunn Choi
ef67a45702
Add --ellipsis=.. option
...
Close #2432
Also see
- #1769
- https://github.com/junegunn/fzf/pull/1844#issuecomment-586663660
2 years ago
Junegunn Choi
b88eb72ac2
Modernize build tags
2 years ago
dependabot[bot]
32847f7254
Bump actions/setup-go from 2.2.0 to 3 ( #2776 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 2.2.0 to 3.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](bfdd3570ce...f6164bd8c8
)
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
dependabot[bot]
71df93b534
Bump ruby/setup-ruby from 1.62.0 to 1.100.0 ( #2775 )
...
Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby ) from 1.62.0 to 1.100.0.
- [Release notes](https://github.com/ruby/setup-ruby/releases )
- [Commits](5aaa89ff0d...bd94d6a504
)
---
updated-dependencies:
- dependency-name: ruby/setup-ruby
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2 years ago
Naveen
bb028191f8
Set up dependabot for GitHub actions ( #2764 )
2 years ago
Naveen
19af8fc7d8
Pin actions to a full length commit SHA ( #2765 )
...
- Pinned actions by SHA https://github.com/ossf/scorecard/blob/main/docs/checks.md#pinned-dependencies
- Included permissions for the action. https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
>Pin actions to a full length commit SHA
>Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps mitigate the risk of a bad actor adding a backdoor to the action's repository, as they would need to generate a SHA-1 collision for a valid Git object payload.
https://docs.github.com/en/actions/security-guides/security-hardening-for-github-actions#using-third-party-actions
Also, dependabot supports upgrade based on SHA.
Signed-off-by: naveensrinivasan <172697+naveensrinivasan@users.noreply.github.com>s
2 years ago
Junegunn Choi
a06671b47f
Increase TTY buffer limit
...
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
2 years ago
Junegunn Choi
5f385d88e0
[zsh] Set up bindings for all three keymaps: emacs, vicmd, and viins
...
Fix #2694
2 years ago
Junegunn Choi
9cb7a364a3
[install] Remove code that might delete user fish script
...
Fix #2703
2 years ago
Junegunn Choi
f68cbc577d
Add link to ADVANCED.md
...
Related #2701
2 years ago
Junegunn Choi
dc975e8974
0.29.0
3 years ago
Junegunn Choi
4311ade535
ADVANCED.md: Add change-preview-window example
3 years ago
Junegunn Choi
cd23401411
Fix rendering of the prompt line when overflow occurs with `--info=inline`
...
Fix #2692
3 years ago
Martin Jindra
176ee6910f
Update Dockerfile ( #2662 )
...
`archlinux/base:latest`cannot be found
3 years ago
Junegunn Choi
13c8f3d3aa
[vim] Handle writefile() failure gracefully
...
Fix #2676
3 years ago
Junegunn Choi
ce9af687bc
Remove unused code
3 years ago
Junegunn Choi
43f0d0cacd
change-preview-window to take multiple option sets separated by '|'
...
So you can "rotate" through the different options with a single binding.
fzf --preview 'cat {}' \
--bind 'ctrl-/:change-preview-window(70%|down,40%,border-horizontal|hidden|)'
Close #2376
3 years ago
Junegunn Choi
20b4e6953e
Implement change-preview and change-preview-window actions
...
The new actions are named with 'change-' prefix to differentiate from
the pre-existing, one-off 'preview(...)' action.
Fix #2360
Fix #2505
Fix #2666
Related #2435
Related #2376
- Can set up multiple bindings with different change-preview-window actions
- Not possible to "rotate" through the options with a single binding
- Enlarge or shrink not possible
3 years ago
Kai
7da287e3aa
README.md: HTTP => HTTPS ( #2673 )
3 years ago
zsugabubus
205f885d69
[shell] Use cd -- ( #2659 )
...
Otherwise directories starting with '-' may treated as options.
3 years ago
Junegunn Choi
3715cd349d
Add repology packaging status badge
3 years ago
Junegunn Choi
e4c3ecc57e
0.28.0
3 years ago
Junegunn Choi
673c5d886d
Add 'put' action for putting the character to the prompt
...
fzf --bind 'space:preview(date)+put'
Close #2456
3 years ago
Junegunn Choi
f799b568d1
[bash] Suppress error message from 'bind'
...
Fix #2618
3 years ago
Junegunn Choi
7bff4661f6
Add --header-first option to display header before prompt line
...
Close #2422
3 years ago
Junegunn Choi
ffd8bef808
Update CHANGELOG
3 years ago
Junegunn Choi
02cee2234d
Implement --scroll-off=LINES
...
Close #2533
3 years ago
Vlastimil Ovčáčík
e0dd2be3fb
Document escaping and expanding of quotes on Windows
...
Parsers included:
- go parser (well, this is easily dealt with using `` strings)
- win32 (shell-api) parser
- powershell parser (for powershell commands)
- powershell parsing rules for calling native commands
- internal parsers of select regex applications (like grep)
3 years ago
Vlastimil Ovčáčík
a33c011c21
Test escaping of powershell commands on Windows
3 years ago
Rashil Gandhi
7c3f42bbba
Fix powershell escaping
3 years ago
Junegunn Choi
edac9820b5
Cache cygpath result
...
No need to repeatedly run cygpath process because $SHELL never changes.
3 years ago
Rashil Gandhi
84a47f7102
Respect SHELL env var on Windows ( #2641 )
...
This makes fzf respect SHELL environment variable on Windows, like it does on *nix, whenever defined.
Close #2638
3 years ago
Junegunn Choi
97ae8afb6f
Reload should update preview window
...
Fix #2644
3 years ago
Junegunn Choi
4138333f5c
0.27.3
3 years ago
Vlastimil Ovčáčík
61339a8ae2
Add more tests of placeholder flags and simplify its logic ( #2624 )
...
* [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.
3 years ago
Junegunn Choi
50eb2e3855
Render spinner on info line during "reload"
...
Fix #2637
3 years ago
Xeonacid
5fc78e4584
Add riscv64 build target ( #2626 )
...
Build successfully on Arch Linux RISC-V.
3 years ago
Junegunn Choi
2736a2f69e
[vim] Empty out $FZF_DEFAULT_COMMAND before unletting it
...
For Vim 8.0.1831 and below
* https://github.com/vim/vim/issues/1116
Fix https://github.com/junegunn/fzf.vim/issues/1301
3 years ago
Vlastimil Ovčáčík
179993f0cd
Enable manually trigger on GitHub Workflows ( #2620 )
3 years ago
dependabot[bot]
b734f657f9
Bump github.com/mattn/go-isatty from 0.0.12 to 0.0.14 ( #2612 )
...
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>
3 years ago
dependabot[bot]
c29d7d02c2
Bump github.com/mattn/go-shellwords from 1.0.11 to 1.0.12 ( #2592 )
...
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>
3 years ago
dependabot[bot]
3df6b2a58c
Bump github.com/mattn/go-runewidth from 0.0.12 to 0.0.13 ( #2591 )
...
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>
3 years ago
Vlastimil Ovčáčík
b8aa2d2c32
Minor refactoring tcell library from tui.go to tcell.go
...
To prevent including tcell library in non-windows builds.
3 years ago
Vlastimil Ovčáčík
0ff885461b
Add mouse support to the FullscreenRenderer
3 years ago
Vlastimil Ovčáčík
ca43f95fb1
Fix Backspace key to emit BSpace and AltBS events instead of CtrlH
...
CtrlH events are still sent when appropriate. I have adjusted
FullscreenRenderer to match the LightRenderer's behaviour, which seems
to be correct.
3 years ago
Vlastimil Ovčáčík
09700f676b
Add CtrlCaret keyboard event to FullscreenRenderer
3 years ago
Vlastimil Ovčáčík
4271e9cffa
Fix Ctrl+Space key combination to emit CtrlSpace instead of Rune ' '
3 years ago
Vlastimil Ovčáčík
f3dc8a10d5
Add ability to type AltGr characters in FullscreenRenderer on Windows.
3 years ago
Vlastimil Ovčáčík
00fb486f6a
[tests] Add testing of keyboard events in FullscreenRenderer.GetChar()
...
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).
3 years ago
Junegunn Choi
4173e94c6f
Do not check for --height support on --version
...
https://github.com/junegunn/fzf.vim/issues/1329
3 years ago
Hiroki Konishi
261d3d3340
fix: replace broken links with archived ones
3 years ago
Hiroki Konishi
15e20fcae1
fix: spelling `Refence` -> `Reference`
3 years ago
Vlastimil Ovčáčík
f4f47f5fe3
Minor changes
...
- obsolete todo removed, I tested the ev.ch for " " char and it works just
fine
3 years ago
Vlastimil Ovčáčík
71d11de7ca
[tests] Change tests to output to stdout only with verbose flag
...
This hides stdout output unless "go test -v" was run.
3 years ago
Vlastimil Ovčáčík
88d74a15aa
Change the tests to run on Windows ( #2615 )
...
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
3 years ago
Junegunn Choi
0f02fc0c77
Reset {n} after reload
...
Fix #2611
3 years ago
Keating950
3f90fb42d8
Fix spelling error (Extention -> Extension) ( #2589 )
3 years ago
Daniel Bast
9bd8988300
Add dependabot config for dependency updates ( #2573 )
3 years ago
a1346054
3c804bcfec
fix spelling
3 years ago
a1346054
cca4cdc4f1
improve test logic and be explicit about the test
3 years ago
a1346054
8f899aaf8a
use proper bash-style notation
3 years ago
a1346054
e53b4bb439
always use [[ ... ]] and not [ ... ] in bash completions
3 years ago
a1346054
ab247a1309
use consistent style for bash [[ ... ]]
3 years ago
Michael Kelley
c21e9edad4
Restore VT hack for Windows ( #2580 )
...
- restore VT enable hack
- resolve an issue reported in https://github.com/kelleyma49/PSFzf
3 years ago
Leon Tepe
9c21a20f8b
Minor readme change ( #2578 )
...
`CTRL-K` moves up and `CTRL-J` moves down, not the other way around (same for `CTRL-P` and `CTRL-N`
3 years ago
Junegunn Choi
7191ebb615
Do not show preview window by default if `--preview` is empty
...
Close #2516
3 years ago
Junegunn Choi
a74731d7f5
[vim] Add 'sinklist' as a synonym to 'sink*'
...
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))
3 years ago
Junegunn Choi
e086f0b3fe
0.27.2
3 years ago
Junegunn Choi
8255aa23f4
Fix bug where `--read0` not properly displaying long lines
...
Fix #2508
3 years ago
Junegunn Choi
a4bc08f5a3
Allow specifying 16 base ANSI colors by their names
...
Close #2502
3 years ago
Thomas Klausner
7e5aa1e2a5
Mention NetBSD package and how to install it ( #2499 )
...
Close #2487
3 years ago
Junegunn Choi
0818dbc36a
0.27.1
3 years ago
Junegunn Choi
347c4b2625
Add 'unbind' action
...
Fix #2486
3 years ago
Junegunn Choi
34f0d4d0c4
[man] Clarification on --select-1 and --exit-0
3 years ago
Junegunn Choi
cbedb57511
[vim] Workaround for Neovim bug of unconditionally evaluating `unlet $ENV_VAR`
...
See #2495
3 years ago
Junegunn Choi
9ef825d2fd
[vim] Update README-VIM
3 years ago
Junegunn Choi
85ae745910
[vim] Use terminal buffer on 'down' layout on regular Vim on terminal
...
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.
3 years ago
Junegunn Choi
7411da8d5a
[vim] Use FZF_DEFAULT_COMMAND instead of STDIN pipe
...
So that fzf can finish immediately even when the input process doesn't
handle SIGPIPE and keeps running.
Fix #2481
3 years ago
Junegunn Choi
3f75a8369f
Replace RuneWidth to StringWidth to handle grapheme clusters
...
Fix #2482
3 years ago
Junegunn Choi
4cd621e877
ADVANCED.md: tmux 3.2 is officially released
3 years ago
Junegunn Choi
6e3a2fe0bf
[vim] Fix screen offset of relatively positioned popup window
...
Fix #2461
3 years ago
Tom Picton
8b0e1f941a
[vim] Support relative-to-window positioning of popup ( #2443 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
3 years ago
Junegunn Choi
c7c5e7670a
Fix goreleaser.yml
3 years ago
Junegunn Choi
f6c621ef1b
Update ADVANCED.md
...
Remove unnecessary --color option
3 years ago
Junegunn Choi
faf32d451d
Update ADVANCED.md
3 years ago
Junegunn Choi
252fd7ecb1
Update ADVANCED.md
3 years ago
Junegunn Choi
7fa89dddb4
Update README.md: Examples page
3 years ago
Junegunn Choi
fefdb8c84e
Fix typo
3 years ago
Junegunn Choi
a6cc05936e
ADVANCED.md: Clarification on {q}
3 years ago
Junegunn Choi
b209843545
Advanced fzf examples
3 years ago
Junegunn Choi
19759ed36e
0.27.0
3 years ago
Junegunn Choi
1a7ae8e7b9
Update dependencies
...
go get: upgraded github.com/lucasb-eyer/go-colorful v1.0.3 => v1.2.0
go get: upgraded github.com/mattn/go-runewidth v0.0.9 => v0.0.12
go get: upgraded github.com/mattn/go-shellwords v1.0.10 => v1.0.11
go get: added github.com/rivo/uniseg v0.2.0
go get: upgraded github.com/saracen/walker v0.1.1 => v0.1.2
go get: upgraded golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9 => v0.0.0-20210220032951-036812b2e83c
go get: upgraded golang.org/x/sys v0.0.0-20201119102817-f84b799fce68 => v0.0.0-20210403161142-5e06dd20ab57
go get: upgraded golang.org/x/text v0.3.3 => v0.3.6
3 years ago
Junegunn Choi
da1f645670
Change --preview-window delimiter from : to , for consistency
...
Delimiter : was chosen when --preview-option only supported position and
size attributes. e.g. up:50%
3 years ago
Junegunn Choi
3a2015ee26
Fix minimum preview window height
3 years ago
Junegunn Choi
c440418ce6
Sign and notarize macOS binaries
...
Close #2408
3 years ago
Junegunn Choi
3d37a5ba1d
Apply preview-bg color to preview border of all shapes
3 years ago
Junegunn Choi
15f4cfb6d9
More border optins for preview window
...
Close #2431
3 years ago
Junegunn Choi
be36de2482
Ignore more ANSI escape sequences
...
Fix #2420
3 years ago
Junegunn Choi
391237f7df
[vim] Compare binary versions
...
Close #2410
3 years ago
Junegunn Choi
977e5effd9
[vim] Fix paste on MacVim
...
Close https://github.com/junegunn/fzf.vim/issues/1233
3 years ago
Junegunn Choi
8b36a4cb19
Speed up preview switching when doing partial rendering
...
Fix #2417
3 years ago
Michael Kelley
c8cd94a772
Ensure proper ESC seq handling under Windows preview mode ( #2430 )
...
- Increase go routine buffer size
- Add time wait for nonblock getchr()
- Resolve #2429
3 years ago
Junegunn Choi
764316a53d
Fix flaky test case: test_interrupt_execute
...
Try to avoid extraneous INT signal
3 years ago
Philipp Schmitt
2048fd4042
Update README (--phony -> --disabled) ( #2404 )
3 years ago
Junegunn Choi
f84b3de24b
Automatically set /dev/tty as STDIN on execute action
...
https://github.com/junegunn/fzf/issues/1360#issuecomment-788178140
# Redirect /dev/tty to suppress "Vim: Warning: Input is not from a terminal"
ls | fzf --bind "enter:execute(vim {} < /dev/tty)"
# With this change, we can omit "< /dev/tty" part
ls | fzf --bind "enter:execute(vim {})"
3 years ago
Junegunn Choi
6a1f3ec08b
[install] Download Darwin arm64 binary ( #2400 #2401 )
3 years ago
Mitsuo Heijo
2e353aee96
Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term ( #2395 )
...
See https://github.com/golang/go/issues/31044
3 years ago
Mitsuo Heijo
8edfd14a37
Test against Golang 1.14 and 1.16 ( #2396 )
...
1.14 for 32-bit binaries
3 years ago
Junegunn Choi
1a191ec6f7
Update FUNDING.yml
3 years ago
Junegunn Choi
e7171e94b4
Update FUNDING.yml
3 years ago
Junegunn Choi
398d937419
Create FUNDING.yml
3 years ago
Junegunn Choi
34fe5ab143
0.26.0
3 years ago
Junegunn Choi
1b08f43f82
Advanced preview scroll offset expression to better support fixed header
3 years ago
Junegunn Choi
b24a2e2fdc
Fix regression in preview window rendering
3 years ago
Junegunn Choi
4c4c6e626e
Add support for preview window header
...
Fix #2373
# Display top 3 lines as the fixed header
fzf --preview 'bat --style=header,grid --color=always {}' --preview-window '~3'
3 years ago
Junegunn Choi
7310370a31
Fix truncation of colored line when --preview-window wrap is set
...
Fix #2346
3 years ago
Junegunn Choi
8ae94f0059
Fix premature truncation of colored line when --preview-window wrap is set
...
Fix #2346
3 years ago
Junegunn Choi
8fccf20892
Fix incorrect tab character handling
...
Fix #2372
3 years ago
Charlie Vieth
5a874ae241
Speed up ANSI code processing ( #2368 )
...
This commit speeds up the parsing/processing of ANSI escape codes by
roughly 7.5x. The speedup is mostly accomplished by replacing the regex
with dedicated parsing logic (nextAnsiEscapeSequence()) and reducing the
number of allocations in extractColor().
#### Benchmarks
```
name old time/op new time/op delta
ExtractColor-16 4.89µs ± 5% 0.64µs ± 2% -86.87% (p=0.000 n=9+9)
name old speed new speed delta
ExtractColor-16 25.6MB/s ± 5% 194.6MB/s ± 2% +661.43% (p=0.000 n=9+9)
name old alloc/op new alloc/op delta
ExtractColor-16 1.37kB ± 0% 0.31kB ± 0% -77.31% (p=0.000 n=10+10)
name old allocs/op new allocs/op delta
ExtractColor-16 48.0 ± 0% 4.0 ± 0% -91.67% (p=0.000 n=10+10)
```
3 years ago
Jannik Vieten
f4e1ed25f2
[fish] Make widgets work with --option= prefix ( #2383 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
3 years ago
Junegunn Choi
cbfbb49ab4
[vim] Vim 8.0 compatibility
...
Fix #2367
3 years ago
solarizedalias
489b16efce
[fzf-tmux] Adapt to tmux latest changes ( #2379 )
3 years ago
Junegunn Choi
b82c1693c0
Fix deadlocks
3 years ago
Junegunn Choi
019bfc4e35
Fix yet another deadlock
...
EventBox.Set should not be called while holding the terminal mutex
goroutine 1 [semacquire]:
sync.runtime_SemacquireMutex(0xc0001923bc, 0x1000001066200, 0x1)
/usr/local/Cellar/go/1.16/libexec/src/runtime/sema.go:71 +0x47
sync.(*Mutex).lockSlow(0xc0001923b8)
/usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:138 +0x105
sync.(*Mutex).Lock(...)
/usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:81
github.com/junegunn/fzf/src.(*Terminal).Input(0xc000192000, 0x0, 0x0, 0x0, 0x0)
/fzf/src/terminal.go:581 +0x145
github.com/junegunn/fzf/src.Run.func10(0xc00010c8a0, 0xc000092050, 0xa)
/fzf/src/core.go:245 +0x37
github.com/junegunn/fzf/src.Run.func11(0xc00011a4e0)
/fzf/src/core.go:295 +0x5ce
github.com/junegunn/fzf/src/util.(*EventBox).Wait(0xc00011a4e0, 0xc000127ec8)
/fzf/src/util/eventbox.go:34 +0x5e
github.com/junegunn/fzf/src.Run(0xc000180000, 0x11ac014, 0x6, 0x11ac158, 0x7)
/fzf/src/core.go:251 +0xdac
main.main()
/fzf/main.go:13 +0x5a
goroutine 11 [semacquire]:
sync.runtime_SemacquireMutex(0xc00012c31c, 0xc00010e800, 0x1)
/usr/local/Cellar/go/1.16/libexec/src/runtime/sema.go:71 +0x47
sync.(*Mutex).lockSlow(0xc00012c318)
/usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:138 +0x105
sync.(*Mutex).Lock(0xc00012c318)
/usr/local/Cellar/go/1.16/libexec/src/sync/mutex.go:81 +0x47
github.com/junegunn/fzf/src/util.(*EventBox).Set(0xc00011a4e0, 0x7, 0x114eb40, 0x1265460)
/fzf/src/util/eventbox.go:40 +0x3b
github.com/junegunn/fzf/src.(*Terminal).killPreview(0xc000192000, 0x0)
/fzf/src/terminal.go:1831 +0xa5
github.com/junegunn/fzf/src.(*Terminal).exit(0xc000192000, 0xc000106e58)
/fzf/src/terminal.go:1847 +0x75
github.com/junegunn/fzf/src.(*Terminal).Loop.func8.1(0xc00011a540)
/fzf/src/terminal.go:2148 +0x38f
github.com/junegunn/fzf/src/util.(*EventBox).Wait(0xc00011a540, 0xc000106f90)
/fzf/src/util/eventbox.go:34 +0x5e
github.com/junegunn/fzf/src.(*Terminal).Loop.func8(0xc000192000, 0xc00010a2c0)
/fzf/src/terminal.go:2077 +0xa5
created by github.com/junegunn/fzf/src.(*Terminal).Loop
/fzf/src/terminal.go:2072 +0x3e8
3 years ago
Junegunn Choi
dfda5c054a
[actions] Install fish using apt-get
...
For some reason, `test_ctrl_r` and `test_ctrl_r_abort` are not passing
on GitHub Action runner with Fish 3.2.0.
3 years ago
Junegunn Choi
f657169616
Fix deadlock on exit
3 years ago
Junegunn Choi
4c06da8b70
Fix GitHub Action build
...
$USER is missing
3 years ago
yoshida.shinya
9fe2393a00
Add test cases for killing input command on terminate ( #2381 #2382 )
3 years ago
Junegunn Choi
e2e8d94b14
Kill input command on terminate
...
Fix #2381
Close #2382
3 years ago
bitterfox
4f9a7f8c87
Don't exit fzf by SIGINT while executing command ( #2375 )
...
Fix #2374
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
3 years ago
Junegunn Choi
bb0502ff44
Check gofmt in `make test`
3 years ago
Junegunn Choi
c256442245
Fix typo
3 years ago
Jonathan Müller
1137404190
[vim] Add keepjump to switch_back() function ( #2363 )
...
Otherwise, the jump list will contain a (hidden) entry for the FZF buffer if `window: enew` is used.
3 years ago
Junegunn Choi
d57c6d0284
Update build script to build macOS arm64 binary
...
Close #2361
3 years ago
Junegunn Choi
76bbf57b3d
Add select and deselect actions
...
Close #2358
3 years ago
Hiroki Konishi
806a47a7cc
[vim] Remove unnecessary `border` management in nvim floating window ( #2370 )
3 years ago
Junegunn Choi
29851c18aa
[vim] Force redraw by exiting and re-entering terminal mode
...
Workaround for Neovim v0.5.0-dev
https://github.com/junegunn/fzf/issues/2352#issuecomment-782894123
3 years ago
Junegunn Choi
dea950c2c8
[vim] Call feedkeys only when the destination buffer is a terminal
...
Fix #2352
Fix https://github.com/junegunn/fzf.vim/issues/1216
Close #2364
3 years ago
Junegunn Choi
a367dfb22e
README.md: Better example
3 years ago
odeson24
9fe1a7b373
Remove redundant assignment ( #2356 )
...
Co-authored-by: Ryan Ou <ryanou@aetherai.com>
3 years ago
Hussein Esmail
8e2d21c548
Update README.md ( #2353 )
...
Remove Linuxbrew links since Linuxbrew has been merged into Homebrew
* https://brew.sh/2019/02/02/homebrew-2.0.0/
3 years ago
Junegunn Choi
bedf1cd357
[vim] Use tnoremap only when it's available
...
Fix #2357
3 years ago
Junegunn Choi
13f180a70c
[vim] Stay in terminal mode if fzf#run is called from sink
...
Fix #2352
3 years ago
Junegunn Choi
6654239c94
0.25.1
3 years ago
Junegunn Choi
1b61e5e9e9
Clarification on FZF_DEFAULT_COMMAND
3 years ago
Marlon Richert
43b3b907f8
[zsh] Don't run precmd hooks in cd widget ( #2340 )
...
`precmd` hooks expect the Zsh Line Editor to not be active.
Running these when the ZLE is active can lead to unpredictable results.
See https://github.com/marlonrichert/zsh-autocomplete/issues/180
3 years ago
Junegunn Choi
fcd896508b
[vim] fzf#run should ignore empty 'dir' argument
...
Fix #2343
3 years ago
Junegunn Choi
f55c990e86
Add `close` action
...
Close #2331
3 years ago
Naveen
d110372f99
Create codeql-analysis.yml ( #2338 )
3 years ago
Junegunn Choi
c862af09f2
Fix toggle-preview-wrap action
...
Fix #2336
3 years ago
Junegunn Choi
1cfeec0ca3
Fix segmentation fault on \x1b[0K
...
Fix #2339
3 years ago
step
a0649edc1e
[man] Clarify that $SHELL is used to run commands ( #2334 )
...
SHELL is used for execute actions and the preview and default commands.
3 years ago
Kovarththanan Rajaratnam
0e0bcb3e10
Update README.md ( #2337 )
...
--phony was renamed to --disabled in d779ff7e6d
3 years ago
Nanda Lopes
686528d627
BUILD.md: Update Go version requirement ( #2332 )
...
src/options.go:463:9: undefined: strings.ReplaceAll
note: module requires Go 1.13make: *** [Makefile:122: target/fzf-linux_amd64] Erro 2
3 years ago
jiangjianshan
3afa920151
[install.ps1] Change permission of the downloaded binary ( #2308 )
...
Fix #2256
3 years ago
Junegunn Choi
32c493e994
[Makefile] Restore 32-bit targets
...
Close #2328
3 years ago
Olivier Roques
1a76bdf891
[vim] Exit terminal mode before closing FZF window ( #2326 )
...
Fix https://github.com/junegunn/fzf.vim/issues/1216
3 years ago
Junegunn Choi
af48b3df29
Replace Travis CI badge
3 years ago
freddii
58ac1fb2fa
Fix typos in source code ( #2322 )
3 years ago
Junegunn Choi
e922704f72
Migrate to GitHub Actions
3 years ago
Vlad Doster
c6115735c7
Update README.md ( #2321 )
...
- Correct spelling/grammar
3 years ago
Ruslan Sayfutdinov
9ddf5c72be
[zsh] Properly reset prompt after completion ( #2318 )
3 years ago
Junegunn Choi
cc5640326b
[man] Fix typo
3 years ago
calvin ardi
bf447d7703
Update default number version ( #2307 )
3 years ago
nicolasbarra
cbb008c938
Update README to upgrade using brew upgrade ( #2309 )
4 years ago
E.L.K
eaa0c52b45
Fix selection changed on terminal resize ( #2306 )
4 years ago
Elliott Sales de Andrade
82791f7efc
Use more explicit int-to-string conversion.
...
This fixes the following errors with Go 1.15:
```
src/options.go:452:69: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
src/options.go:463:33: conversion from untyped int to string yields a string of one rune, not a string of digits (did you mean fmt.Sprint(x)?)
```
4 years ago
Junegunn Choi
8c533e34ea
0.25.0
4 years ago
Junegunn Choi
37708ad9cd
Revert "[zsh] Use shell redirection ( #2281 )"
...
This reverts commit e9bc7331bd
.
The change is no longer necessary since 090dee8
.
4 years ago
Junegunn Choi
090dee857f
Do not disable mouse on SIGCONT before SIGSTOP
...
Fix #2161
4 years ago
Junegunn Choi
d779ff7e6d
Make search toggleable
...
- `--phony` renamed to `--disabled` for consistency
- `--no-phony` is now `--enabled`
- Added `enable-search`, `disable-search`, and `toggle-search` actions
for `--bind`
- Added `--color` options: `query` and `disabled`
Close #2303
4 years ago
Junegunn Choi
fd8858f8c9
[fzf-tmux] Disable CTRL-Z
4 years ago
Junegunn Choi
b234647a63
[shell] Disable CTRL-Z
...
Fix #2289
4 years ago
Junegunn Choi
6e93eefc82
Update vimdoc
4 years ago
yhu266
38fca30125
Add tag links for "doc/fzf.txt"
4 years ago
Junegunn Choi
012ee9ca85
[Makefile] Make sure to use bash
4 years ago
Junegunn Choi
151252e33a
Add preview-top and preview-bottom actions
4 years ago
Junegunn Choi
7136cfc68b
Fix alt-, for --expect
4 years ago
Junegunn Choi
408c04f25f
Update test case for 'first' and 'last'
4 years ago
Junegunn Choi
7f8e0dbc40
Extend support for alt key chords
...
"alt-" with any case-sensitive character is allowed
4 years ago
Junegunn Choi
0de7ab18f6
Add "last" action to move the cursor to the last match
...
This is the opposite of "first" (previously known as "top").
4 years ago
林千里
e9bc7331bd
[zsh] Use shell redirection ( #2281 )
...
zsh sends SIGCONT when running fzf in a pipe in certain cases,
causing mouse mode to become disabled
Fix #2101
4 years ago
Loic Nageleisen
797dd7c449
[Makefile] Support building on machines with `uname -m` == "arm64" ( #2291 )
4 years ago
Junegunn Choi
f37ccaa64f
Prevent index out of range error
...
Fix #2293
4 years ago
Junegunn Choi
ab3937ee5a
[vim] Allow closing Vim running fzf without confirmation
...
Close #2287
4 years ago
Junegunn Choi
00f4551a7b
Revert "[zsh] Reload shared history before searching ( #2251 )"
...
This reverts commit b62a74b315
.
https://github.com/junegunn/fzf/pull/2251#issuecomment-740551383
4 years ago
Junegunn Choi
257ddd028d
Update CHANGELOG
4 years ago
Junegunn Choi
e0a22e76f8
Make --color attributes mergeable
...
So you can override the colors and still have the text attributes
# Default colors and attributes
fzf
export FZF_DEFAULT_OPTS='--color hl👎 underline,hl+👎 underline:reverse'
# Default colors with underline+reverse attributes
fzf
# Different colors with underline+reverse attributes
fzf --color hl:176,hl+:177
Related: https://github.com/junegunn/fzf.vim/issues/1197#issuecomment-739804363
4 years ago
Junegunn Choi
00a3610331
0.24.4
4 years ago
Junegunn Choi
f502725120
Fix slice bound error on extremely narrow screen
4 years ago
Martin Polden
b62a74b315
[zsh] Reload shared history before searching ( #2251 )
4 years ago
Junegunn Choi
2ec382ae0e
Add --preview-window follow option
4 years ago
Junegunn Choi
cbfee31593
Fix typo in test case
4 years ago
Junegunn Choi
6d647e13ff
Add change-prompt action
...
Close #2270
4 years ago
Junegunn Choi
d2af3ff98d
Change how hl:-1 or hl+:-1 is applied to text with background color
4 years ago
Junegunn Choi
052d17e66a
Fix Travis OSX build
4 years ago
Junegunn Choi
a9bc954e17
Do not update Homebrew on Travis OSX build
...
https://docs.travis-ci.com/user/installing-dependencies/#installing-packages-on-macos
> By default, the Homebrew addon will not run brew update before
> installing packages. brew update can take a long time and slow down your
> builds.
4 years ago
Junegunn Choi
2983426771
Fix unit tests
4 years ago
ratijas
c61eb94b3f
[zsh] Declare variable as local before assignment ( #2266 )
4 years ago
Junegunn Choi
3829eab1cf
Support ANSI code for clearing the rest of the line (ESC[0K)
...
Some programs use it to set the background color for the whole line.
fzf --preview "printf 'normal \x1b[42mgreen\x1b[0K \x1b[43myellow\x1b[m\nnormal again'"
fzf --preview 'delta <(echo foo) <(echo bar) < /dev/tty'
Fix #2249
4 years ago
Junegunn Choi
3fe8eeedc5
Fix handling of arrow keys with alt and/or shift modifier
...
Fix #2254
- Properly handle extra chars in the buffer. Patch suggested by @mckelly2833.
- Support alt-arrow sequences in \e[1;3A format
- Support shift-alt-arrow sequences in \e[1;10A format
4 years ago
Junegunn Choi
1efef88b6e
Improve trim function to handle longer strings
...
Fix #2258
4 years ago
Junegunn Choi
7acdaf0b43
[vim] &termwinkey may not be available
...
/cc @Caid11
4 years ago
Michal Domonkos
1ed25d76ba
[vim] Clean up temp files on interrupt ( #2252 )
...
The clean-up is done in s:collect(), so let's make sure it's run before
we may terminate due to CTRL-C or ESC (or some other error code) in
s:exit_handler().
4 years ago
Junegunn Choi
474c1f5e32
[vim] Map CTRL-Z to <nop>
4 years ago
Junegunn Choi
8b71fea5dc
[vim] Set termwinkey to allow CTRL-W
...
Fix https://github.com/junegunn/fzf.vim/issues/1176
4 years ago
Tomas Janousek
7bd99a22ee
[bash-completion] Fix endless loop when completion.bash sourced twice
...
I forgot to add the "not _fzf" check into __fzf_orig_completion, so
invoking it twice would rewrite the _fzf_orig_completion_xxx variables
and then cause an endless loop when completion is requested.
Fixes: ef2c29d5d4
("[bash-completion] Optimize __fzf_orig_completion_filter")
4 years ago
Tomas Janousek
75b8cca3b3
[bash-completion] Unexport _fzf_orig_completion_* variables
4 years ago
Tomas Janousek
ef2c29d5d4
[bash-completion] Optimize __fzf_orig_completion_filter
...
Commit d4ad4a25
slowed loading of completion.bash significantly (on my
laptop from 10 ms to 30 ms), then 54891d11
improved that (to 20 ms) but
it still stands out as the heavy part of my .bashrc.
Rewriting __fzf_orig_completion_filter to pure bash without forking to
sed/awk brings this back under 10 ms.
before:
$ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
Benchmark #1 : bash --rcfile shell/completion.bash -i
Time (mean ± σ): 21.2 ms ± 0.3 ms [User: 24.9 ms, System: 6.4 ms]
Range (min … max): 20.7 ms … 23.3 ms 132 runs
after:
$ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
Benchmark #1 : bash --rcfile shell/completion.bash -i
Time (mean ± σ): 9.6 ms ± 0.3 ms [User: 8.0 ms, System: 2.2 ms]
Range (min … max): 9.3 ms … 11.4 ms 298 runs
Fixes: d4ad4a25db
("[bash-completion] Fix default alias/variable completion")
Fixes: 54891d11e0
("[bash-completion] Minor optimization")
4 years ago
Tomas Janousek
218b3c8274
[bash-completion] Move -F/_fzf filter to __fzf_orig_completion_filter
...
This prevents mistakes like the one fixed by the previous commit, and
also speeds bash startup a tiny bit:
before:
$ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
Benchmark #1 : bash --rcfile shell/completion.bash -i
Time (mean ± σ): 22.4 ms ± 0.6 ms [User: 28.7 ms, System: 7.8 ms]
Range (min … max): 21.7 ms … 25.2 ms 123 runs
after:
$ HISTFILE=/tmp/bashhist hyperfine 'bash --rcfile shell/completion.bash -i'
Benchmark #1 : bash --rcfile shell/completion.bash -i
Time (mean ± σ): 21.2 ms ± 0.3 ms [User: 24.9 ms, System: 6.4 ms]
Range (min … max): 20.7 ms … 23.3 ms 132 runs
4 years ago
Tomas Janousek
db9cb2ddda
[bash-completion] Avoid empty _a, _v completions
...
This doesn't look right:
$ complete | grep ' _.$'
complete _a
complete _v
The __fzf_orig_completion_filter invocation in _fzf_setup_completion
needs the /-F/ filter, just like all the other invocations.
Fixes: d4ad4a25db
("[bash-completion] Fix default alias/variable completion")
4 years ago
Junegunn Choi
722d66e85a
0.24.3
4 years ago
Junegunn Choi
f6269f0193
Add --padding option
...
Close #2241
4 years ago
Junegunn Choi
520eae817a
Remove print statement for debugging
4 years ago
Junegunn Choi
d099941360
[vim] Fix double path separator issue on Windows
...
Fix https://github.com/junegunn/fzf.vim/issues/1141
4 years ago
Junegunn Choi
e3e76fa8c5
0.24.2
4 years ago
Junegunn Choi
2553806e79
Allow preview window height shorter than 3
...
Fix #2231
4 years ago
Junegunn Choi
1bcbc5a353
Fix regression where lines are skipped in the preview window
...
Fix #2239
4 years ago
Junegunn Choi
15d351b0f0
Use default bg color when fg is set to -1 with reverse attribute
4 years ago
Junegunn Choi
c144c95cda
[vim] Set maxwidth and maxheight when creating a popup
...
For me, this fixes invalid popup size problem on Windows GVim
4 years ago
Junegunn Choi
f08f4fd87d
[vim] Remove dead code
4 years ago
Junegunn Choi
f8aaeef218
Revert "Prefer LightRenderer on Windows if it's available"
...
This reverts commit 7915e365b3
due to https://github.com/junegunn/fzf.vim/issues/1152#issuecomment-719696495 .
4 years ago
Junegunn Choi
7915e365b3
Prefer LightRenderer on Windows if it's available
...
Fix #1766
4 years ago
Junegunn Choi
1c68f81c37
[vim] See the last line of "fzf --version" output
...
The output may contain some unexpected warning messages from the shell
if it's not properly configured. While such extra messages should be
properly addressed by the user, we can ignore them by checking the
last line of the output instead of the first line.
Related: bd3a021ec1
4 years ago
Junegunn Choi
d4c9db0a27
0.24.1
4 years ago
Junegunn Choi
b5e0e29ec6
Assign default number version (without patch version)
...
So that you can still build and use fzf even when the precise version
number is not injected via -ldflags.
4 years ago
Junegunn Choi
569be4c6c9
[vim] Allow 'border': 'no' to be consistent with --color=no
4 years ago
Junegunn Choi
e7ca237b07
Fix nil error on --color=bw
...
Fix #2229
4 years ago
Junegunn Choi
a7d3b72117
Make build flags consistent
4 years ago
Junegunn Choi
3ba7b5cf2d
Make Makefile fail when git information is not available
4 years ago
Junegunn Choi
254e9765fe
[install] Pass version number to go get command
...
Related: https://github.com/junegunn/fzf.vim/issues/1150#issuecomment-717735149
4 years ago
Junegunn Choi
3304f284a5
Panic when fzf was built without version information
...
So that the package maintainers would immediately know that the build is
incorrect. But is there a way to make build simply fail?
Related: https://github.com/junegunn/fzf.vim/issues/1150
4 years ago
Junegunn Choi
0d5f862daf
0.24.0
4 years ago
Junegunn Choi
51dfacd542
Merge branch 'devel' into master
4 years ago
Junegunn Choi
c691d52fa7
Fix: barbled multibyte text(exe. Japanese). ( #2224 )
...
* Fix: barbled multibyte text(exe. Japanese).
* fixup
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Junegunn Choi
de3d09fe79
fixup
4 years ago
Junegunn Choi
eaa413c566
Fix error when preview command failed to start
4 years ago
nekowasabi
407205e52b
Fix: barbled multibyte text(exe. Japanese).
4 years ago