Junegunn Choi
6de0a7ddc1
--sync: Do not start TUI until initial filtering is complete
2 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.
2 days ago
Junegunn Choi
94c33ac020
Fix panic when parent process is killed
...
Fix #3863
2 days ago
Junegunn Choi
b2ecb6352c
Make GET endpoint available from 'execute' and 'transform' actions
2 days ago
Junegunn Choi
9dc3ed638a
--walker-skip should also handle symlinks to directories
...
Fix #3858
3 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>
3 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>
3 days ago
LangLangBart
22adb6494f
chore(shell): Separate declaration and assignment for zsh legacy versions ( #3856 )
3 days ago
Samara Jinnah
e023736c30
[zsh] Prevent glob expansion in history widget ( #3855 )
4 days ago
Junegunn Choi
dca2262fe6
Prefer LightRenderer over tcell on Windows
...
For mouse support on mintty
Fix #3847
4 days ago
Junegunn Choi
0684a20ea3
Fix invalid mouse offset for --height on Windows
4 days ago
Junegunn Choi
a1a72bb8d1
Do not open tmux or winpty in `--filter` mode
4 days ago
ismay
144d55a5be
[fish] Merge history before searching ( #3852 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 days ago
Junegunn Choi
7fc13c5cfd
Less aggressive chunk cache invalidation for --tail
6 days ago
Junegunn Choi
dfee7af57b
Fix divide by zero error with --tiebreak=end for long items
...
Fix #3846
7 days ago
junegunn
9b0e2daf02
Deploying to master from @ junegunn/fzf@590060a16b 🚀
1 week ago
Junegunn Choi
590060a16b
Remove unused field
1 week ago
Junegunn Choi
368294edf6
Reduce flickering of the list when the list is truncated by --tail
1 week ago
Junegunn Choi
c4a9ccd6af
0.53.0
1 week ago
Junegunn Choi
cbf91f2ed3
ADVANCED.md: /dev/tty redirection no longer required
1 week ago
Junegunn Choi
b1460d4787
hasPreviewFlags should ignore escaped placeholder
...
This reload command wouldn't run before the fix:
: | fzf --bind 'start:reload:echo \{}'
1 week ago
Junegunn Choi
7dc9e14874
Update docs
1 week 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'
2 weeks ago
Junegunn Choi
1afe13b5b5
Merge remote-tracking branch 'origin/master' into devel
2 weeks ago
Junegunn Choi
36600eaaa9
Update CHANGELOG: clarification
2 weeks ago
junegunn
3ee1fc2034
Deploying to master from @ junegunn/fzf@124cd70710 🚀
2 weeks ago
Junegunn Choi
e2f93e5a2d
--tmux vs. --height: Last one wins
2 weeks ago
Junegunn Choi
cfdf2f1153
Update README
2 weeks ago
Junegunn Choi
e042143e3f
Immediately close standard output of the child process
...
Fix #3828
2 weeks ago
Junegunn Choi
7c613d0d9b
Do not disable --height on mintty (because it works)
2 weeks ago
Junegunn Choi
b00d46bc14
Fix --height on Windows
2 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'
2 weeks ago
Junegunn Choi
564daf9a7d
Set standard input of 'man' process to os.Stdin
2 weeks ago
Junegunn Choi
41bcbe342f
Revert "An '--expect' key should execute actions bound to the key"
...
To be backward compatible.
Close #3829
2 weeks ago
LangLangBart
dbe8dc344e
[fish] Use builtins for cd and history ( #3830 )
...
Close #3826
2 weeks ago
Junegunn Choi
e33fb59da1
Update CHANGELOG
2 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[%]])
2 weeks ago
LangLangBart
2b6d600879
[zsh] Enhance CTRL-R to display multi-line entires ( #3823 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
2 weeks ago
Junegunn Choi
05c765d442
[fish] Add --nth 2..,.. to allow anchored search against command
2 weeks ago
Junegunn Choi
49b496269c
Fix index out of bounds error on scroll-down action
2 weeks ago
Junegunn Choi
7405925952
[bash] Indent multi-line history entries
2 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
3 weeks ago
Junegunn Choi
2f51eb2b41
Different marker for the first and last line of multi-line entries
...
Can be configured via `--marker-multi-line`
3 weeks ago
Junegunn Choi
0ccbd79e10
Fix --help output: marker default
...
Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com>
3 weeks ago
junegunn
99bd6de541
Deploying to master from @ junegunn/fzf@daa602422d 🚀
3 weeks ago
Junegunn Choi
1fef36e4bc
Do not allow tabs in pointer and marker
3 weeks ago
Junegunn Choi
89375005b5
Fix option validation order
3 weeks ago
Junegunn Choi
88e78c9193
Update integration test to use named pipes
3 weeks ago
Junegunn Choi
29a19ad080
Update CHANGELOG
3 weeks ago
Junegunn Choi
2a039ab746
Describe exit code 126
3 weeks ago
Junegunn Choi
7e9a0fcdbd
Change default --scroll-off to 3
3 weeks ago
Junegunn Choi
7a97532547
Fix --scroll-off for multi-line mode
3 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
3 weeks ago
Junegunn Choi
da500a358f
Use bold bar as the default marker
3 weeks ago
Junegunn Choi
c36b846acc
[vim] Open cmd.exe window only on mintty < 3.4.5 without winpty
3 weeks ago
Junegunn Choi
d9b5c9b2be
Address review comments by @Konfekt
...
d4216b0dcc
3 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
3 weeks ago
Junegunn Choi
d4216b0dcc
Use MSYS=enable_pcon instead of winpty on mintty 3.4.5 or later
3 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
4 weeks ago
Junegunn Choi
0cadf70072
Update the summary
4 weeks ago
Junegunn Choi
076b3d0a9a
Embed man page in the binary and show it on 'fzf --man'
4 weeks ago
Junegunn Choi
7b0c9e04d3
Change default marker
4 weeks ago
Junegunn Choi
573df524fe
Use winpty to launch fzf in Git bash (mintty)
...
Close #3806
Known limitation:
* --height cannot be used
4 weeks ago
Junegunn Choi
aee417c46a
Respect $NO_COLOR environment variable
...
Close #1762
4 weeks ago
Junegunn Choi
04db44067d
Implement multi-line display of multi-line items
4 weeks 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)
4 weeks ago
junegunn
daa602422d
Deploying to master from @ junegunn/fzf@01e7668915 🚀
4 weeks ago
Junegunn Choi
04dfb14e32
Do not 'become' inside a tmux popup
...
fzf --tmux center --bind 'enter:become:vim {}'
4 weeks ago
Junegunn Choi
c24256cba3
Update README
...
* Tidy up
* Mention `--tmux`
4 weeks ago
Junegunn Choi
685fb71d89
[vim] Use native --tmux option instead of fzf-tmux when possible
4 weeks ago
Junegunn Choi
83b6033906
Add --tmux option to replace fzf-tmux script
4 weeks ago
Zhizhen He
01e7668915
chore: use strings.ReplaceAll ( #3801 )
4 weeks 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
1 month 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 "&|<>()@^%!"
1 month ago
Junegunn Choi
24ff66d4a9
Fix `change-preview` reset by `change-preview-window`
...
Fix #3770
1 month 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
1 month 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>
1 month 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
1 month 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
1 month 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 {}'
1 month ago
Junegunn Choi
9dee8edc0c
Clear characters on 1-column margin after the preview window on the left
1 month 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
1 month 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
2 months ago
Junegunn Choi
68a35e4735
Do not trim CR on Windows when --read0 is set
2 months ago
Charlie Vieth
9b9ad77e1c
mod: update changes/fastwalk to v1.0.3 ( #3709 )
...
Update charlievieth/fastwalk to resolve issue #3706 .
2 months ago
Junegunn Choi
118b4d4a01
[bash] Add -o nospace to dir completion options ( #1987 )
2 months ago
Junegunn Choi
da14ab6f16
[bash] Remove -o default from dir completion options ( #1987 )
2 months ago
Junegunn Choi
09a4ca6ab5
[bash] Fix variable completion of directory-related commands
...
Fix #1987
2 months ago
Junegunn Choi
8a2df79711
Do not hide separator by default on --info=inline-right|hidden
2 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 )
3 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>
3 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>
3 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>
3 months ago
onee-only
61bc129e1d
Update parseGetParams to call strconv.Atoi when params are valid
3 months ago
onee-only
52210a57f0
Update error return position according to convention
3 months ago
onee-only
8061a2f108
Remove duplicate code
3 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 )
4 months ago
junegunn
1a43259989
Deploying to master from @ junegunn/fzf@3c0a630475 🚀
4 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
5 months ago
Junegunn Choi
b92a843c5f
Use Ubuntu 22 to match GitHub Actions environment
5 months ago
Junegunn Choi
91bea9c5b3
Use forked version of go-runewidth
...
Fix #3558
go get github.com/junegunn/go-runewidth@fzf
5 months ago
junegunn
d75bb5cbe1
Deploying to master from @ junegunn/fzf@2671259fdb 🚀
5 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>
5 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>
7 months ago
Junegunn Choi
f5f0b9ecaa
Fix a typo
7 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).
7 months ago
Junegunn Choi
250d507bdf
Fix a typo on CHANGELOG
7 months ago
Junegunn Choi
a818653174
Add --listen-unsafe=ADDR to allow remote process execution ( #3498 )
7 months ago
junegunn
5c3b044740
Deploying to master from @ junegunn/fzf@c5aa8729a1 🚀
7 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
8 months ago
Junegunn Choi
2952737755
Update README: Experimental support for Kitty graphics protocol
8 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>
8 months ago
junegunn
884856023a
Deploying to master from @ junegunn/fzf@d8188fce7b 🚀
8 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
'
8 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>
8 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>
10 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>
10 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>
11 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>
11 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'
1 year 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} {}')
1 year ago
Junegunn Choi
4dbe45640a
Remove $FZF_LISTEN_PORT
...
It is not worth the added complexity.
1 year ago
Junegunn Choi
4b3f0b9f08
Allow put action with an argument i.e. put(...)
1 year 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
1 year ago
Junegunn Choi
d42e708d31
Update README-VIM: Different homebrew prefix on Apple Silicon
...
Close #3095
1 year 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.
1 year ago
Junegunn Choi
750b2a6313
Add GET endpoints for getting the state of the finder
...
* GET / (or GET /current)
* GET /query
1 year 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 )
3 years ago
E.L.K
eaa0c52b45
Fix selection changed on terminal resize ( #2306 )
3 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
Junegunn Choi
552414978e
0.24.0-rc1
4 years ago
Junegunn Choi
607081bbaa
[vim] Download latest binary to meet version requirement
4 years ago
Junegunn Choi
e73383fbbb
[vim] Add 'none' option for popup border
4 years ago
Junegunn Choi
2e8e63fb0b
Add more --border options
...
Instead of drawing the window border in Vim using an extra window,
extend the --border option so that we do can it natively.
Close #2223
Fix #2184
4 years ago
Junegunn Choi
874f7dd416
Update --color example in CHANGELOG
...
New color name: input
4 years ago
Junegunn Choi
8b0e3b1624
Update --color docs
4 years ago
Junegunn Choi
9b946f2b7a
Fix preview window of tcell renderer
4 years ago
Junegunn Choi
11841f688b
Add support for text styling using --color
...
Close #1663
4 years ago
Junegunn Choi
03c4f04246
Use 64-bit integer for preview version
4 years ago
Junegunn Choi
a1f06ae27f
Fix regression where empty preview content is not displayed
4 years ago
Junegunn Choi
69dffd78a6
Do not assume that each character takes at least 1 column
...
Fixes #2163 , though this is not a proper fix to the problem.
4 years ago
Junegunn Choi
2750e19657
Update go-runewidth
4 years ago
Junegunn Choi
b0987f727b
Clarify that additional installation steps may be required
...
Close #2211
4 years ago
Junegunn Choi
a4d9b0b468
Support ANSI escape sequence for clearing display in preview window
...
fzf --preview 'for i in $(seq 100000); do
(( i % 200 == 0 )) && printf "\033[2J"
echo "$i"
sleep 0.01
done'
4 years ago
Junegunn Choi
e2b87e0d74
Fix Travis CI build
4 years ago
Junegunn Choi
2166b4ca17
Fix test cases
...
We were not properly waiting for truthy-ness in until blocks.
Need Minitest with 21d9e804b6
4 years ago
Junegunn Choi
d2d4d68585
Always show the number of selected entries to indicate if --multi is enabled
...
Close #2217
seq 100 | fzf
# 100/100
seq 100 | fzf --multi
# 100/100 (0)
seq 100 | fzf --multi 5
# 100/100 (0/5)
4 years ago
Junegunn Choi
faf68dbc5c
Implement streaming preview window ( #2215 )
...
Fix #2212
# Will start rendering after 200ms, update every 100ms
fzf --preview 'for i in $(seq 100); do echo $i; sleep 0.01; done'
# Should print "Loading .." message after 500ms
fzf --preview 'sleep 1; for i in $(seq 100); do echo $i; sleep 0.01; done'
# The first line should appear after 200ms
fzf --preview 'date; sleep 2; date'
# Should not render before enough lines for the scroll offset are ready
rg --line-number --no-heading --color=always ^ |
fzf --delimiter : --ansi --preview-window '+{2}-/2' \
--preview 'sleep 1; bat --style=numbers --color=always --pager=never --highlight-line={2} {1}'
4 years ago
Junegunn Choi
305896fcb3
README-VIM: g:fzf_action doesn't work with custom sink
...
Fix https://github.com/junegunn/fzf.vim/issues/1131
4 years ago
Andrew Zhou
6c9adea0d3
[fish] Fix parser handling of option-like args ( #2208 )
...
Fixes error when option-like args are parsed (e.g. "-1").
4 years ago
Junegunn Choi
fc7630a66d
0.23.1
4 years ago
Junegunn Choi
3248153d9f
Add --preview-window=default for resetting the options
4 years ago
Junegunn Choi
246b9f3130
Simplify fzf-tmux script
...
# Should properly escape arguments
FZF_DEFAULT_OPTS='--prompt "\$a`b\"c"' fzf-tmux --header $'$a\nb"c`d'
4 years ago
Junegunn Choi
865144850d
Add nowrap, nocycle, nohidden for --preview-window
...
Close #2203
4 years ago
Junegunn Choi
d9752a4c21
Reset preview window flags that are not style-related
...
Fix #2203
4 years ago
Junegunn Choi
dba14d2630
0.23.0
4 years ago
Elvan Owen
2986e64a49
[completion] Make host completion handle source files without EOL
4 years ago
Junegunn Choi
1d8bd11b67
Fix preview window size calculation
4 years ago
Junegunn Choi
bafb99d520
Allow splitting preview-window options
...
e.g. --preview-window sharp --preview-window cycle
4 years ago
Junegunn Choi
3cc8a74a91
Add --preview-window option for cyclic scrolling
...
Close #2182
4 years ago
Tinmarino
c0aa5a438f
Add preview-half-page-down and preview-half-page-up ( #2145 )
4 years ago
Junegunn Choi
825d401403
Show how to use reload action
4 years ago
Junegunn Choi
9dfca77c36
[zsh] Keep current $BUFFER on ALT-C
...
Ideally, we could only use `print -sr` to update the command history.
However, the "cd" command by ALT-C is added to the history only after we
finalize the current command by pressing an additional enter key.
i.e. The cd command from ALT-C is not visible when you hit Up arrow. But
it appears once you hit enter key.
So when the current buffer is empty, we use `zle accept-line` so that
the command history is immediately updated.
Close #2200
4 years ago
octaltree
82c4af2902
[zsh] Record cd execution in history ( #2193 )
4 years ago
Junegunn Choi
736344e151
Remove deprecated item from man page
4 years ago
Junegunn Choi
6f9663da62
Always allow preview/execute commands with no placeholder expressions
...
Fix #2017
4 years ago
Wenxuan
f8ae1786dd
Fix items width limit ( #2190 )
4 years ago
Junegunn Choi
c60ed17583
[vim] Change the default layout to use popup window
...
The new default is
{ 'window' : { 'width': 0.9, 'height': 0.6, 'highlight': 'Normal' } }
The default highlight group for the border of the popup window is
'Comment', but 'Normal' seems to be a safer choice.
If you prefer the previous default, add this to your Vim configuration file:
let g:fzf_layout = { 'down': '40%' }
(fzf will fall back to this if popup window is not supported)
4 years ago
Junegunn Choi
e0f0b5bcf9
Update CHANGELOG
4 years ago
Junegunn Choi
9e96073128
[vim] Expose fzf#exec() function
4 years ago
Junegunn Choi
0db65c22d3
[vim] Allow specifying popup width and height in absolute integer value
...
Fix https://github.com/junegunn/fzf.vim/issues/1116
4 years ago
Yuji Nakao
d785135606
[zsh] Fix the regular expression ( #2140 )
...
Fix the regular expression to capture the command containing asterisk.
4 years ago
Michael Kelley
ae15eda546
Add truecolor support for Windows, if available ( #2156 )
...
- Update to latest tcell which has 24 bit Windows support
- light renderer under Windows defaults to Dark256, if possible
- Respect TCELL_TRUECOLOR
- Remove tcell 1.3 references
4 years ago
Junegunn Choi
f2d44ab5a7
Revert horizontal padding around preview window on "noborder"
...
Use 2-space horizontal padding so that the preview content is aligned
with the candidate list when the position of the preview window is `up`
or `down`.
4 years ago
Junegunn Choi
43798fc2e8
Revert 1ab4289: Preview window of size 0 is allowed
4 years ago
Junegunn Choi
9dc4b40d7a
Add more preview window options and reduce vertical padding on noborder
...
Fix #2138
Fix #2029
4 years ago
Junegunn Choi
1cb19dbf65
Support preview scroll offset relative to window height
...
Related: https://github.com/junegunn/fzf.vim/issues/1092
4 years ago
Junegunn Choi
1ab4289ad6
Disallow preview-window size of zero
4 years ago
Junegunn Choi
e2ae1b249c
0.22.0
4 years ago
Junegunn Choi
92b7efafca
Ignore punctuation characters before and after preview offset column
...
This is to allow line numbers in a ctags output (e.g. 123;")
4 years ago
Junegunn Choi
f092e4038f
Smart match of accented characters
...
Fix #1618
4 years ago
Junegunn Choi
aa5dae391b
Fix handling of unicode characters in query string
4 years ago
Junegunn Choi
08a6fd4ad4
Fix Travis CI build: Use Go 1.14
4 years ago
Junegunn Choi
a61150a96c
Allow negative field index in preview-window scroll offset
4 years ago
Junegunn Choi
0f9cb5590e
Add preview window option for setting the initial scroll offset
...
Close #1057
Close #2120
# Initial scroll offset is set to the line number of each line of
# git grep output *minus* 5 lines
git grep --line-number '' |
fzf --delimiter : --preview 'nl {1}' --preview-window +{2}-5
4 years ago
yuki yano
c0a83b27eb
Fix failure of w:fzf_pushd unlet depending on timing ( #2119 )
4 years ago
Yanlin Sun
f79b1f71b8
[vim] Preserve current directory in case someone changes it ( #2096 )
...
Preserve current directory in case current directory is changed by others
after the call of s:open
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Junegunn Choi
8e027c445f
Support ANSI colors in --prompt string
...
Close #2086
4 years ago
Atemu
dda3e3c39a
README: Correct Nix distro support ( #2051 )
...
Nix can be installed on (almost) any Linux distro and on macOS.
See https://nixos.org/nix/ for more information.
4 years ago
anntnzrb
fd5157998c
Void Linux installation instructions ( #2100 )
4 years ago
Junegunn Choi
e0217e8c79
Ignore cursor position report
...
Close #2081
4 years ago
Junegunn Choi
3ab1c42266
Use rune characters instaed of numbers in code
4 years ago
Junegunn Choi
d1676776aa
Update CHANGELOG
4 years ago
Junegunn Choi
bdde69d011
[vim] Disable height calculation when 'preview' is found in the option string
...
Fix #2093
And we'll phase out height specification with `~` prefix.
4 years ago
Junegunn Choi
6dec42a33a
Update version numbers in man pages
4 years ago
Junegunn Choi
199bc3f0ad
Merge branch 'master' into devel
4 years ago
Junegunn Choi
17dd833925
Add preview action for --bind
...
Fix #2010
Fix #1638
4 years ago
Khon Trieu
4ec144c969
Accented character normalization for Vietnamese characters ( #2090 )
...
Fix #2088
4 years ago
Jan Edmund Lazo
3e36f2b0ac
[nvim] Fix floating window requirements ( #2089 )
...
Vim 8.1.2371
05ad5ff0ab
Nvim 0.4.0
9a1675b065
4 years ago
Junegunn Choi
07a03b3e73
[vim] Make fzf#wrap support v:true and v:false as well
...
Fix #2087
4 years ago
Junegunn Choi
c33258832e
Add refresh-preview action
4 years ago
Junegunn Choi
a7aa08ce07
Add backward-eof event for --bind
4 years ago
Ben
06d63a862e
Fully qualify Expand-Archive ( #2066 )
...
If a user has the Powershell Community Extensions installed, it comes
with another command Expand-Archive that doesn't have a DestinationPath
argument, causing an error.
4 years ago
Janek
43d1c4c4b5
README: Use --line-range instead of head in bat example ( #2064 )
...
* Use --line-range instead of head in bat example
* README: extend preview section
4 years ago
Junegunn Choi
f81feb1e69
Revert file mode of key-bindings.zsh
4 years ago
karasu
01cf01e084
[fzf-tmux] Fix zoomed pane handling in popup mode ( #2054 )
...
When called with popup options, do not move to temp window.
4 years ago
Junegunn Choi
97a725fbd0
Do not disable mouse after execute(-silent) when --height option is used
...
The action takes place in the alternate screen so the offsets should
still be correct.
4 years ago
lacygoill
ace92ba281
[vim] Don't set wfw, wfh, bh options when opening popup ( #2042 )
...
* No need to restore &wfw and &wfh when using popup window
Co-authored-by: lacygoill <lacygoill@lacygoill.me>
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
ichizok
d631c76e8d
[vim] Don't start extra process when opening popup ( #2000 )
...
Fix #2038
4 years ago
Slaven Rezić
e6d33f77da
[zsh] Make CTRL-R work with older Perls ( #2003 )
...
s///r is only available since perl 5.14. The Perl oneliner
was changed to work with older Perls, possibly even with 5.000.
Fix #2001
4 years ago
Jack Bates
a6d3e3687b
Improve error messages ( #1962 )
...
* Add RuboCop Minitest extension
* Improve error messages
* Use chomp option
4 years ago
Raffaele
08c2bcb952
Quote LDFLAGS ( #1995 )
...
Make sure that `extldflags` is quoted so that LDFLAGS containing spaces won't break the build command.
Close #1994
4 years ago
Junegunn Choi
98ca4bdede
Add conda installation instruction
...
Close #1949
4 years ago
Janek
3f8e741562
Add more details on apt installation in README.md ( #1977 )
4 years ago
Junegunn Choi
6e464ebd9b
Remove dead code
4 years ago
Junegunn Choi
c329279339
[completion] Make kill completion more consistent with the others
...
Support both ordinary completion trigger and empty trigger
kill <tab>
kill foo**<tab>
Close #1988
Close #385
4 years ago
Jack Bates
cf04753ad7
Make flaky tests reliable ( #1978 )
4 years ago
Junegunn Choi
69e7eab11f
[install] Clarify that .bashrc should be loaded from .bash_profile on macOS
...
Close #1986
4 years ago
Junegunn Choi
dea206b023
[zsh-completion] Fix error with backslash-prefixed commands
...
Fix #1973
Fix #1974
Fix #1975
4 years ago
Jack Bates
5deaf58928
Run rubocop --auto-correct --disable-uncorrectable ( #1967 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Junegunn Choi
15e2952a2b
[fzf-tmux] Allow positional flags
...
Since we don't know in advance which flags tmux will support, simply
allow a single uppercase character ([A-Z]) for now.
fzf-tmux -xR -yS
fzf-tmux -x R -y S
Fix #1956
4 years ago
Junegunn Choi
a9fba1c849
Fix typo
4 years ago
Junegunn Choi
71e573d082
[vim] Add 'tmux' layout option to use fzf-tmux
...
e.g.
if exists('$TMUX')
let g:fzf_layout = { 'tmux': '-p90%,60%' }
else
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
endif
4 years ago
Junegunn Choi
334a4fa159
0.21.1
4 years ago
Junegunn Choi
21f94ee800
[fzf-tmux] Split zsh variable expansion for old zsh
...
The following code works in zsh 5.8 but not in 5.4
${(Q)${(Z+n+)FZF_TMUX_OPTS:--d${FZF_TMUX_HEIGHT:-40%}}}
4 years ago
Junegunn Choi
540bfd7a72
[fzf-tmux] Fall back to plain fzf when split failed
4 years ago
Junegunn Choi
8fbed2b13a
[fzf-tmux] Use $PWD instead of #{pane_current_path}
...
Related: https://github.com/tmux/tmux/issues/1282
4 years ago
Junegunn Choi
aa17510e0a
[fzf-tmux] Set default horizontal margin
4 years ago
Junegunn Choi
bf65e8cd12
[fzf-tmux] Add option to start fzf in tmux popup window
...
Requires latest tmux built from source (e.g. brew install tmux --HEAD)
Examples:
# 50%/50% width and height on the center of the screen
fzf-tmux -p
# 80%/80%
fzf-tmux -p80%
# 80%/40%
fzf-tmux -p80%,40%
# Separate -w and -h
fzf-tmux -w80% -h40%
# 80%/40% at position (0, 0)
fzf-tmux -w80% -h40% -x0 -y0
You can configure key bindings and fuzzy completion to open in tmux
popup window like so:
FZF_TMUX_OPTS='-p 80%'
4 years ago
lacygoill
0f5c6e8f04
[vim] Fix issue with multiple popups ( #1927 )
...
Invoking fzf from an existing Vim popup terminal is a special case.
It requires some new code to avoid E994 from being raised and the user
being stuck in a non-closable popup window.
Fix #1916
4 years ago
Roman Perepelitsa
b1b916ce15
[zsh] Ensure that fzf code always parses the same way ( #1944 )
...
At the top of each zsh file options are set to their
standard values (those marked with <Z> in `man zshoptions`)
and `aliases` option is disabled.
At the bottom of the file the original options are restored.
Fix #1938
4 years ago
Alexandr
a6a732e1fc
Update AtomicBool to use atomic memory operation ( #1939 )
4 years ago
Junegunn Choi
a5c2f28539
Fix failing test case
4 years ago
Junegunn Choi
18261fe31c
[shell] Update CTRL-R to remove duplicate commands
...
Close #1940
Related: #1363 #749 #270 #49 #88 #492 #600
4 years ago
Chitoku
079046863c
[zsh-completion] Fix a bug where _fzf_complete did not iterate through args ( #1936 )
4 years ago
Junegunn Choi
07b965bba1
Fix ANSI color offsets when --keep-right is used
4 years ago
Junegunn Choi
c39113ee41
[windows] Do not include directories in the list
...
Fix #1926
4 years ago
Junegunn Choi
14f90502a4
[bash] Restore --nth option in CTRL-R
4 years ago
Junegunn Choi
b0673c3563
0.21.0
4 years ago
Junegunn Choi
373c6d8d55
Add --keep-right option to keep the right end of the line visible
...
Close #1652
4 years ago
Junegunn Choi
b8fc828955
Fix completion test
4 years ago
Jakub Łuczyński
b43b040512
Fuzzy completions: removed leftover debug echo ( #1921 )
4 years ago
Junegunn Choi
50b7608f9d
Change custom fuzzy completion API
...
To make it easier to write more complex fzf options. Although this
does not break backward compatibility, users are encouraged to update
their code accordingly.
# Before
_fzf_complete "FZF_ARG1 FZF_ARG2..." "$@" < <(
# Print candidates
)
# After
_fzf_complete FZF_ARG1 FZF_ARG2... -- "$@" < <(
# Print candidates
)
4 years ago
Kahlil (Kal) Hodgson
7085e5b629
Add explanation for the `g:fzf_colors` setting ( #1878 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Michael Kelley
7d5985baf9
Make height option work under Windows ( #1341 )
...
Separate Unix & Windows code into platform specific files for light renderer
4 years ago
Junegunn Choi
7c40a424c0
Add retries to CTRL-R tests to avoid intermittent errors on Travis CI
...
- https://travis-ci.org/junegunn/fzf/jobs/659496745#L676
Related #1900
4 years ago
Junegunn Choi
baf882ace7
[completion] Use file redirection instead of pipe
...
This change allows the completion system of bash and zsh to return
before the input process completes.
Related #1887
4 years ago
Junegunn Choi
ba82f0bef9
Do not read more than 10K characters from /dev/tty
...
This might help with #1456 where fzf hangs consuming CPU resources.
4 years ago
Junegunn Choi
d9c6a0305b
Draft CHANGELOG for the upcoming release
4 years ago
Junegunn Choi
d9b1211191
Add more --border options; default changed to "rounded"
...
--border option now takes an optional argument that defines the style
- rounded (new default)
- sharp
- horizontal (previous default)
4 years ago
Junegunn Choi
99f1e02766
Fix flaky test case
...
Make sure that the shell is ready before hitting CTRL-R
1) Error:
TestFish#test_ctrl_r_multiline:
RuntimeError: timeout
test/test_go.rb:50:in `wait'
test/test_go.rb:125:in `until'
test/test_go.rb:1857:in `test_ctrl_r_multiline'
4 years ago
Junegunn Choi
242c0db26b
[vim] Fix height calculation
...
Fix #1418
e.g.
call fzf#run({'source': [1, 2, 3], 'down': '~50%', 'options': "--border --header $'1\n2'"})
4 years ago
Junegunn Choi
dd49e41c42
Ignore xterm OSC control sequences
...
- OSC Ps ; Pt BEL
- OSC Ps ; Pt ST
Fix #1415
4 years ago
Junegunn Choi
6db15e8693
[vim] Throw error when popup support is unavailable
...
https://github.com/junegunn/fzf.vim/issues/943
https://github.com/junegunn/fzf.vim/issues/959
4 years ago
Junegunn Choi
4c9cab3f8a
Fix prefix/suffix/equal matcher to trim whitespaces
...
- Prefix matcher will trim leading whitespaces only when the pattern
doesn't start with a whitespace
- Suffix matcher will trim trailing whitespaces only when the pattern
doesn't end with a whitespace
- Equal matcher will trim leading whitespaces only when the pattern
doesn't start with a whitespace, and trim trailing whitespaces only
when the pattern doesn't end with a whitespace
Previously, only suffix matcher would trim whitespaces unconditionally.
Fix #1894
4 years ago
Junegunn Choi
b2c0413a98
[bash] Fix --query argument of CTRL-R
...
Fix #1898
4 years ago
Jack Bates
e34c7c00b1
Test multi-line C-r ( #1892 )
4 years ago
Jack Bates
7c447bbdc7
[bash] Start C-r search with current command line ( #1886 )
...
Restore the original line when search is aborted. Add --query
"$READLINE_LINE" and fall back to the current behavior pre Bash 4.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Junegunn Choi
7bf1f2cc84
Clean up test shell initialization
...
- Fix 'make docker-test'
- Set fish_history to an empty string since 'fish --private' is not
available prior to fish 3.0
4 years ago
Junegunn Choi
afa2c4e0af
[fish] Ignore empty environment variables
4 years ago
Junegunn Choi
2ff7db1b36
Use a more robust way to check if the shell is ready
4 years ago
James Wright
9f0626da64
Add backward-delete-char/eof action ( #1891 )
...
'backward-delete-char/eof' will either abort if query is
empty or delete one character backwards.
4 years ago
Chris
d8cb5c1cf5
Update README.md: MacPorts upgrade instruction ( #1893 )
4 years ago
Junegunn Choi
dca56da0ef
Add 'insert' key for --bind
...
Close #1744
4 years ago
Junegunn Choi
ec75d16ea8
Fix panic on unexpected escape sequences
4 years ago
Jack Bates
5cae8ea733
[bash] Multiline C-r without histexpand ( #1837 )
...
Close #1370
Parses the history list, converts it to a NUL-delimited list of possibly
multiline entries. Adds the fzf --read0 option. Works with and without
histexpand enabled.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Jack Bates
1ccd8f6a64
[bash] Restore insertion point pre Bash 4 ( #1881 )
...
Make C-t more consistent pre and post Bash 4. It already kills the
command line separately before and after the insertion point. Add
set-mark and exchange-point-and-mark to restore the insertion point
after yanking back and apply the same behavior to M-c.
* CTRL-T should put extra space after pasted items
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
4 years ago
Jack Bates
9c293bb82b
[bash] Put C-t items at point in vi mode ( #1876 )
...
Be consistent with emacs mode and put the items at the point vs. the end
of the command line.
4 years ago
Junegunn Choi
9897ee9591
[bash] Strip trailing whitespace on kill completion
4 years ago
Junegunn Choi
5215415315
[completion] Allow users to customize fzf options via _fzf_comprun
...
Related #1809 #1850
4 years ago
Junegunn Choi
54891d11e0
[bash-completion] Minor optimization
4 years ago
Junegunn Choi
567c8303bf
Update ANSI processor to handle "rmso" and "rmul"
...
Fix #1877
4 years ago
Hiroki Konishi
2a60edcd52
Make pointer and multi-select marker customizable ( #1844 )
...
Add --pointer and --marker option which can provide additional context to the user
4 years ago
Hiroki Konishi
d61ac32d7b
Fix bug of validation of jump-labels ( #1875 )
...
When jump-labels are specified with `--jump-labels=` way, validation was
not carried out.
4 years ago
Junegunn Choi
b57e6cff7e
[vim] Pick up fzf-tmux on $PATH when bin/fzf-tmux is not found
...
Close #1874
4 years ago
Junegunn Choi
5b99f19dac
[vim] Remove unnecessary statement
4 years ago
Junegunn Choi
6c03571887
[vim] Add fzf#install() for downloading fzf binary
4 years ago
Junegunn Choi
4fb410a93c
[vim] More border styles
...
e.g.
let g:fzf_layout = { 'window': { 'width': 0.4, 'height': 1, 'xoffset': 0, 'border': 'right' } }
let g:fzf_layout = { 'window': { 'width': 0.4, 'height': 1, 'xoffset': 1, 'border': 'left' } }
let g:fzf_layout = { 'window': { 'width': 1, 'height': 0.5, 'yoffset': 1, 'border': 'top' } }
let g:fzf_layout = { 'window': { 'width': 1, 'height': 0.5, 'yoffset': 0, 'border': 'bottom' } }
4 years ago
Junegunn Choi
5e1db9fdd3
[vim] Do not pipe FZF_DEFAULT_COMMAND
...
Revert the change introduced in #552 . It seems that the startup time
difference between bash and fish is not much of an issue now.
> time bash -c 'date'
Thu Feb 13 21:15:03 KST 2020
real 0m0.008s
user 0m0.003s
sys 0m0.003s
> time fish -c 'date'
Thu Feb 13 21:15:05 KST 2020
real 0m0.014s
user 0m0.007s
sys 0m0.006s
When we explicitly *pipe* $FZF_DEFAULT_COMMAND instead of making fzf
internally start the process ($FZF_DEFAULT_COMMAND | fzf), fzf may hang
if the input process doesn't quickly process SIGPIPE and abort.
Also, fzf#vim#grep temporarily swaps $FZF_DEFAULT_COMMAND instead of
setting 'sink' so fzf can kill the default command on 'reload'.
https://github.com/junegunn/fzf.vim/issues/927
However, because of the "pipe conversion", the trick wasn't working as
expected.
467c327788/autoload/fzf/vim.vim (L720-L726)
We can go even further and always set $FZF_DEFAULT_COMMAND instead of
piping source command.
4 years ago
Junegunn Choi
9d7480ae3c
[vim] Use install.ps1 to download binary on Windows
...
Credits to @jiangjianshan
4 years ago
jiangjianshan
f39cf6d855
Add install.ps1 for downloading fzf.exe on Windows ( #1845 )
4 years ago
Kyoichiro Yamada
001d116884
[vim] Consider ambiwidth for border ( #1861 )
...
Close #1856
Close #1857
4 years ago
Junegunn Choi
02c5e62efe
Fix documentation
4 years ago
Junegunn Choi
446df07b62
[vim] Border style for popup window (rounded | sharp | horizontal)
4 years ago
Junegunn Choi
8583b150c9
Fix inline info truncation
4 years ago
Junegunn Choi
a859aa72ee
[vim] Add support for xoffset and yoffset options for popup
...
Close https://github.com/junegunn/fzf.vim/issues/942
4 years ago
Junegunn Choi
0896036266
[vim] Set &bufhidden=hide before starting terminal buffer
4 years ago
mattn
311b78ae82
[windows] Use native walker since output of DOS command is not UTF-8 encoded ( #1847 )
...
Makes scanning 300x faster on Windows
4 years ago
Sergey Bronnikov
f5cf4fc8fb
README: OpenBSD package ( #1848 )
4 years ago
Junegunn Choi
7ceb58b2aa
[vim] Popup window support for both Vim and Neovim
...
e.g.
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
Based on the code from https://github.com/junegunn/fzf.vim/issues/821#issuecomment-581273191
by @lacygoill.
4 years ago
Junegunn Choi
293dd76af1
Update Dockerfile
4 years ago
Shun Sakai
3918c45ced
Update copyright year ( #1832 )
...
Update copyright year to 2020 and change to multi-year format.
4 years ago
Junegunn Choi
4ec403347c
Update Neovim floating window example to have border
4 years ago
Junegunn Choi
e01266ffcb
Period.
4 years ago
Tony Metzidis
f246fb2fc2
Show error message when failed to start preview command ( #1810 )
...
Fix #1637
4 years ago
Chitoku
f7b26b34cb
[zsh-completion] Fix quoting/splitting issues ( #1820 )
4 years ago
Aaron Bieber
a1bcdc225e
Add pledge(2) support (OpenBSD only) via a 'protector' package. ( #1297 )
4 years ago
Junegunn Choi
7771241cc0
Fix F1, F2, F3, F4 on rxvt-unicode
...
Tested on urxvt.
Fix #1799 .
4 years ago
Junegunn Choi
6e3af646b2
Draw spinner with Unicode characters
4 years ago
Jack Bates
82bf8c138d
[bash] Populate emacs and vi keymaps ( #1815 )
...
Enables the right bindings when switching between editing modes.
5 years ago
Jan Edmund Lazo
e21b001116
[vim] Use iconv only if +iconv is enabled ( #1813 )
5 years ago
Junegunn Choi
577024f1e9
Use rounded corners
5 years ago
Junegunn Choi
d4ad4a25db
[bash-completion] Fix default alias/variable completion
...
Fix #1795
5 years ago
Junegunn Choi
30577b0c17
0.20.0
5 years ago
Junegunn Choi
212de25409
Fix incorrect header array mutation
5 years ago
Jan Edmund Lazo
5da8bbf45a
[vim] Encode list source to codepage ( #1794 )
5 years ago
Jan Edmund Lazo
aa0e10ead7
[vim] Use cterm colors on Windows ( #1793 )
...
Truecolor does not work on default Windows terminal.
It is a problem in neovim GUIs.
https://github.com/sainnhe/edge/issues/5#issuecomment-565748240
5 years ago
msr1k
a9906c7c29
Add MSYS2 support as a vim plugin ( #1677 )
...
* Add MSYS2 support as a vim plugin
Add &shellcmdflag and TERM environment variable treatment.
- Make &shellcmdflag `/C` when &shell turns into `cmd.exe`
- Delete %TERM% environment variable before fzf execution
* Change shellescape default value depending on s:is_win flag
* Make TERM environment empty only when gui is running
* Stop checking &shell in fzf#shellescape function
This funcion's behavior is controlled by only if it is Windows or not.
So there is no need to check &shell.
* Take neovim into consideration when to set shellcmdflag
* Add &shellxquote control
5 years ago
Junegunn Choi
9fefe08b3f
Revert README as preview-{fg,bg} are only available on master
5 years ago
Junegunn Choi
684bfff713
Update README/CHANGELOG
5 years ago
Junegunn Choi
3db6b88d82
Add preview-fg and preview-bg for --color
...
Close #1776
5 years ago
Junegunn Choi
8ae96774df
Gutter color of 16-color theme should be undefined by default
5 years ago
Junegunn Choi
f68017d21e
[windows/vim] Encode batchfile in current codepage
...
Backport https://github.com/junegunn/vim-plug/pull/913
5 years ago
Junegunn Choi
2b725a4db5
Defer resetting multi-selection on reload
5 years ago
Junegunn Choi
af1a5f130b
Add clear-query and clear-selection
...
Close #1787
Related #1364
5 years ago
Junegunn Choi
86e3994e87
Properly clear list when --header-lines not filled on reload
5 years ago
Junegunn Choi
1e6ac5590e
'reload' action should be allowed even where there's no match
...
If the command template doesn't have any placeholder expressions.
: | fzf --bind 'space:reload:seq 10'
5 years ago
Henré Botha
5e42b1c9f8
[ssh completion] Skip only aliases matching * ( #1788 )
...
This commit fixes a bug where lines that declare multiple hostnames get
omitted from completion entirely if one of the hostnames matches *. For
example:
Host foo.com bar.dev baz.*
5 years ago
Junegunn Choi
9d842630c9
Mention _fzf_setup_completion helper function for bash
5 years ago
David Gray
77cb906dfe
[completion] Add support for HostName lines in ~/.ssh/config ( #1785 )
...
Close #1783
5 years ago
Junegunn Choi
a59e846f74
Update installation instruction
...
Close #1707
Close #1779
5 years ago
infokiller
6e6340a0c9
Ignore `zcompile` output files (*.zwc files) ( #1775 )
5 years ago
John Purnell
357e82e51b
[completion] Ignore hg repos ( #1777 )
...
* Update completion.bash
* Update completion.zsh
5 years ago
Junegunn Choi
394d8cfd18
Remove immediate flickering on reload action
5 years ago
Junegunn Choi
ef80bd401f
Update installation instruction using Linux package managers
...
Added NixOS instruction. Close #1731
5 years ago
midchildan
f51d61d57a
[zsh] Prevent the current directory from appearing as `~dir` in prompts ( #1774 )
...
The zsh version of the cd widget sets the variable `dir` to the path of
the target directory before invoking `cd`. This causes zsh to treat the
target directory as a named directory, which has the effect of zsh
substituting '%~' with '~dir' instead of the proper path when it
performs prompt expansion.
This commit will cause the widget to unset `dir` before redrawing the
prompt to fix this issue.
Details of zsh prompt expansion can be found in:
http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html
5 years ago
Junegunn Choi
1dd256a68a
Update README-VIM
5 years ago
Junegunn Choi
85644aa3fb
Revamp README-VIM.md
5 years ago
Junegunn Choi
effbc258bb
Update CHANGELOG
5 years ago
Junegunn Choi
e615600ff1
Allow action composition over multiple --bind
...
# Note + prefix in the second bind expression
fzf --bind u:up --bind u:+up
fzf --bind u:up+up
5 years ago
Junegunn Choi
60465c4664
Fix parse error of --bind expression
5 years ago
Jan Edmund Lazo
c03c058bd5
[install] Support busybox uname on Windows ( #1758 )
5 years ago
Junegunn Choi
7238c8944d
Update CHANGELOG
5 years ago
Junegunn Choi
9a41fd5327
0.19.0
5 years ago
Junegunn Choi
b471042037
Merge branch 'devel'
5 years ago
Junegunn Choi
2886f06977
Fix --preview-window noborder with non-default background color
5 years ago
Junegunn Choi
d630484eeb
Update error message for --preview-window
5 years ago
Junegunn Choi
e24299239e
Add `--preview-window noborder` option to disable preview border
...
Close #1699
5 years ago
Junegunn Choi
d2fa470165
Add --info=STYLE [default|inline|hidden]
...
Close #1738
5 years ago
Junegunn Choi
168453da71
More key chords for --bind
...
Close #1752
5 years ago
Junegunn Choi
23a06d63ac
Update CHANGELOG and man pages
5 years ago
Junegunn Choi
751aa1944a
Remove trailing whitespaces when using --with-nth
5 years ago
Junegunn Choi
05b5f3f845
'reload' action should reset multi-selection
5 years ago
Marco Hinz
16fc6862a8
[nvim] Handle SIGHUP in exit handler ( #1749 )
...
In recent Nvim versions, an "Error running ..." message is shown even for normal
use cases, such as:
:Files
<c-\><c-n>
:close
Closing the window will :bwipeout! the terminal buffer, because fzf sets
bufhiden=wipe.
When deleting the terminal buffer while fzf is still running, Nvim sends SIGHUP.
This happens for quite some time already, but the bug only manifests since this
commit:
https://github.com/neovim/neovim/commit/939d9053b
It's The Right Thing to do when the application exited due to a signal.
Before that commit, no "Error running ..." message was shown, because 1 (instead
of 128 + 1 == SIGHUP) was returned which the exit handler in fzf.vim treats as
"NO MATCH".
5 years ago
Junegunn Choi
7e1c0f39e7
'reload' action should reset --header-lines
5 years ago
Junegunn Choi
deccf20a35
Fix regression of select-all
5 years ago
Junegunn Choi
73c0a645e0
Remove unnecessary reader barrier on --filter mode
5 years ago
Junegunn Choi
e975bd0c8d
Add test cases for --phony and reload action
5 years ago
Junegunn Choi
78da928727
Experimental implementation of "reload" action
...
# Reload input list with different sources
seq 10 | fzf --bind 'ctrl-a:reload(seq 100),ctrl-b:reload(seq 1000)'
# Reload as you type
seq 10 | fzf --bind 'change:reload:seq {q}' --phony
# Integration with ripgrep
RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case "
INITIAL_QUERY=""
FZF_DEFAULT_COMMAND="$RG_PREFIX '$INITIAL_QUERY'" \
fzf --bind "change:reload:$RG_PREFIX {q} || true" \
--ansi --phony --query "$INITIAL_QUERY"
Close #751
Close #965
Close #974
Close #1736
Related #1723
5 years ago
Junegunn Choi
11962dabba
Add --phony option for disabling search
...
With --phony, fzf becomes a simply selector interface without its own
search functionality. The query string is only used for building the
command for preview or execute action.
Close #1723
5 years ago
Junegunn Choi
dceb5d09cd
RTFM, please
5 years ago
Alexandr
b4cccf23d4
Improvements to code quality and readability ( #1737 )
...
* Remove 1 unused field and 3 unused functions
unused elements fount by running
golangci-lint run --disable-all --enable unused
src/result.go:19:2: field `index` is unused (unused)
index int32
^
src/tui/light.go:716:23: func `(*LightWindow).stderr` is unused (unused)
func (w *LightWindow) stderr(str string) {
^
src/terminal.go:1015:6: func `numLinesMax` is unused (unused)
func numLinesMax(str string, max int) int {
^
src/tui/tui.go:167:20: func `ColorPair.is24` is unused (unused)
func (p ColorPair) is24() bool {
^
* Address warnings from "gosimple" linter
src/options.go:389:83: S1003: should use strings.Contains(str, ",,,") instead (gosimple)
if str == "," || strings.HasPrefix(str, ",,") || strings.HasSuffix(str, ",,") || strings.Index(str, ",,,") >= 0 {
^
src/options.go:630:18: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
executeRegexp = regexp.MustCompile(
^
src/terminal.go:29:16: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
placeholder = regexp.MustCompile("\\\\?(?:{[+sf]*[0-9,-.]*}|{q}|{\\+?f?nf?})")
^
src/terminal_test.go:92:10: S1007: should use raw string (`...`) with regexp.MustCompile to avoid having to escape twice (gosimple)
regex = regexp.MustCompile("\\w+")
^
* Address warnings from "staticcheck" linter
src/algo/algo.go:374:2: SA4006: this value of `offset32` is never used (staticcheck)
offset32, T := alloc32(offset32, slab, N)
^
src/algo/algo.go:456:2: SA4006: this value of `offset16` is never used (staticcheck)
offset16, C := alloc16(offset16, slab, width*M)
^
src/tui/tui.go:119:2: SA9004: only the first constant in this group has an explicit type (staticcheck)
colUndefined Color = -2
^
5 years ago
zhaoyunfeng
b911af200c
[zsh-completion] Fix prefix extraction when triggers start with ';'
5 years ago
Junegunn Choi
68683c444f
Fix argument parser for -m
...
/cc @tessus
5 years ago
Junegunn Choi
a185593d65
Remove unnecessary map lookup
5 years ago
Junegunn Choi
525040238e
Fix behavior of 'deselect-all' to only deselect matches
...
To make it consistent with select-all and toggle-all.
Close #1364
5 years ago
Junegunn Choi
33f89a08f3
Build with Go 1.13
5 years ago
Junegunn Choi
11645e1fac
Fix flaky test case
5 years ago
Junegunn Choi
6390140539
[vim/windows] Use chcp only if sed is in PATH
...
https://github.com/junegunn/vim-plug/pull/891
5 years ago
Junegunn Choi
072066c49c
--multi to take optional argument to limit the number of selection
...
Close #1718
Related #688
5 years ago
Junegunn Choi
a2e9366c84
Fix flaky test case
5 years ago
Simon Fraser
391669a451
Add 'f' flag for placeholder expression ( #1733 )
...
If present the contents of the selection will be placed in a temporary file,
and the filename will be placed into the string instead.
5 years ago
Junegunn Choi
0c6c76e081
[zsh] Suppress global alias expansion in widget functions
...
Close #1708
5 years ago
stiletto
f1520bdde6
Support building on machines with `uname -m` == "aarch64" ( #1710 )
5 years ago
Junegunn Choi
3089880f18
[vim/windows] Fix chcp parsing for the current codepage
...
https://github.com/junegunn/vim-plug/pull/888
5 years ago
Junegunn Choi
ab11b74be4
[vim] Output of chcp was not parsed correctly
...
By @gh4w and @janlazo
See 68b31a4a66
5 years ago
Junegunn Choi
a5a97be017
[bash-completion] Properly handle exit event
...
Related #1704
5 years ago
Junegunn Choi
80b5bc1b68
[vim] Shell-escape `--color` option generated by fzf#wrap
...
Fix https://github.com/junegunn/fzf.vim/issues/855
5 years ago
Junegunn Choi
5c7dcaffe8
[bash-completion] _fzf_setup_completion to retain previous options
5 years ago
Junegunn Choi
5095899245
[bash-completion] Add _fzf_setup_completion to enable fuzzy completion
...
While we can attach `_fzf_path_completion` or `_fzf_dir_completion` to
any command using the standard bash complete command, the functionality
of the existing completion function is lost.
Use _fzf_setup_completion if you want to extend the existing function
with fuzzy completion instead of completely replacing it.
e.g. _fzf_setup_completion path kubectl
5 years ago
Ross Smith II
4800e5d2ae
Add scoop mention ( #1646 )
5 years ago
Junegunn Choi
3b1e37f718
Fix #1657 : alt-0 to alt-9
5 years ago
Christian Muehlhaeuser
6577388250
os.Kill signal cannot be trapped ( #1641 )
5 years ago
Christian Muehlhaeuser
3b9dbd4146
Code cleanup: remove unnecessary string conversions ( #1642 )
5 years ago
Christian Muehlhaeuser
a1260feeed
Code cleanup ( #1640 )
...
- Replaced time.Now().Sub() with time.Since()
- Replaced unnecessary string/byte slice conversions
- Removed obsolete return and value assignment in range loop
5 years ago
Dan Čermák
7322504ad0
Add installation instructions for openSUSE ( #1631 )
5 years ago
miclill
de569f0052
Add Debian install instructions ( #1620 )
5 years ago
ssjhv
e7097a9d25
[fish] Remove perl from fish key bindings ( #1635 )
...
Perl was used to remove the trailing newline character, but fzf already
has --print0 to use null character as terminators, and fish read -z is
expecting null character as terminators. There is no reason to depend on
perl if --print0 is passed to fzf invocation.
5 years ago
charlton1
c1dbc800e5
[vim] Fix name-based colors for GVim/8.0 w/o builtin terminal ( #1634 )
...
(i.e. spawn xterm)
5 years ago
Junegunn Choi
951746297e
Fix invalid layout example
5 years ago
Junegunn Choi
984304568d
Remove outdated GVim instruction
...
The section is no longer relevant since (G)Vim 8 or above has builtin
terminal emulator.
5 years ago
Junegunn Choi
723217bdea
Add fzf#run tutorial to README-VIM.md
5 years ago
Mateusz Piotrowski
0fdb71f7e4
Add FreeBSD installation instructions ( #1569 )
5 years ago
Junegunn Choi
12ce76b56a
[bash] Make sure to execute builtin history
...
Fix #1592
5 years ago
Michael Kelley
0030d18448
Update sys module to newer version ( #1582 )
...
A newer version of the sys module is needed for pull request #1341
5 years ago
Junegunn Choi
0e3e6ac442
Disallow preview scroll when the content just fits the window
5 years ago
Dominik Reller
430e8193e0
[install] Remove unused variable in install script ( #1571 )
5 years ago
Jesus Briales
03e8ed4d88
[bash-completion] Fix custom completion with dynamic loader enabled for non-standard command names ( #1564 )
...
Related to #1170 .
Fix the solution for commands with non-standard names
where `$cmd` and `$orig_cmd` differ. e.g. `s.foo` -> `s_foo`
5 years ago
Junegunn Choi
ef492f6178
Output --help message to standard output
...
Close #1554
5 years ago
Alexey Samoshkin
8eea45ef50
Add demo screencast video to README ( #1557 )
5 years ago
Junegunn Choi
ff951341c9
0.18.0
5 years ago
Junegunn Choi
df570afd52
[docker] Fix gem install option in Dockerfile
5 years ago
Junegunn Choi
07d755df11
Fix regression of prompt display
5 years ago
Junegunn Choi
37585bd5a5
Disable preview scroll if the content fits on the screen
...
Close #1540
5 years ago
Junegunn Choi
89e24bf8f2
Fix ineffective break statement
5 years ago
Junegunn Choi
8d2fcd3518
Avoid unnecessary redraw of the preview window
5 years ago
Junegunn Choi
f39ab3875e
Redraw prompt only when necessary
5 years ago
AnakinXL
82efe6c60d
[doc] Add bat for preview syntax highlighting example ( #1538 )
...
Similar to this PR from fzf.vim:
https://github.com/junegunn/fzf.vim/pull/712
5 years ago
Junegunn Choi
75972d59a8
Add --no-unicode option to draw borders in ASCII characters
...
Close ##1533
5 years ago
Junegunn Choi
e7d60aac9c
[vim] Do not restore cwd when autochdir is set and buffer changed
...
Close #1539
5 years ago
Junegunn Choi
a0bfbdd49c
[vim] Increase window height by 2 when --border is set
...
Close #1535
5 years ago
Junegunn Choi
ba594982f0
Add MacPorts instruction
...
Close #1521
5 years ago
Junegunn Choi
2157f4f193
Add color option for gutter
...
fzf --color gutter:-1
Close #1529
Close #1468
5 years ago
Junegunn Choi
309bae423c
[zsh-completion] Suppress "no matches found" message
5 years ago
Junegunn Choi
4f8bf2ae78
[install] Avoid generating empty component in $PATH
...
Fix #1517
5 years ago
Junegunn Choi
85c1f8a9e0
Always prepend ANSI reset code before re-assembling tokens
5 years ago
Junegunn Choi
e00e7e1e56
Remove unnecessary ANSI code injection
5 years ago
Junegunn Choi
1a6defdbcc
Use simple string concatenation instead of using fmt.Sprintf
5 years ago
Junegunn Choi
ef577a6509
Preserve the original color of each token when using --with-nth with --ansi
...
Close #1500
5 years ago
Junegunn Choi
b7c6838e45
[install] Fix symlink log
...
Related #1466
5 years ago
Junegunn Choi
91d04cec5c
[install] Print better error message when `fzf --version` failed
...
Related #1466
5 years ago
Rui Coelho
3bd8441079
[completion] Look up on ~/.ssh/config.d/* files when doing ssh host complete ( #1420 )
5 years ago
Junegunn Choi
8cf45a5197
[shell] Skip loading completion code on non-interactive shell
...
This change is not required if you use the install script to generate
~/.fzf.bash or ~/.fzf.zsh which already has the proper guard statement.
Close #1474
5 years ago
Junegunn Choi
8dc1377efb
Export FZF_PREVIEW_LINES and FZF_PREVIEW_COLUMNS to preview process
...
fzf will still override LINES and COLUMNS as before but they may not
hold the correct values depending on the default shell.
Close #1314
5 years ago
Junegunn Choi
6c32148f90
Add placeholder expression for zero-based item index: {n} and {+n}
...
Close #1482
5 years ago
Junegunn Choi
315e568de0
Update build instruction
...
Close #1485
5 years ago
Junegunn Choi
5d16b28869
Fix tab width after ANSI reset code in preview window
...
Close #1423
6 years ago
Junegunn Choi
5624a89231
Inverse-only matches should not reorder the remaining results
...
Fix #1458
6 years ago
Junegunn Choi
63c42b14f2
Remove trailing spaces in Makefile
6 years ago
Stefan Tatschner
6f1eaa9b39
Use go modules and simplify build ( #1444 )
...
* Update .travis.yml and use stages
This updates the .travis.yml configuration to use separate stages for
unittests and CLI tests. The output is now clearer, since for unittests
and CLI tests separate web pages are available.
* Use go modules and simplify build
6 years ago
Junegunn Choi
ca42e5e00a
Avoid unnecessary redraw of preview window
...
Close #1455
6 years ago
Junegunn Choi
61feee690c
Render preview window when the initial query fails to match
...
Only if preview template contains {q}
Fix #1452
Related #1307
6 years ago
Christian Muehlhaeuser
d4ed955aee
Typo & grammar fixes in README ( #1413 )
6 years ago
Junegunn Choi
b46227dcb6
0.17.5
6 years ago
Paul Frybarger
fd8d371ac7
[zsh] Fix multiline prompt issue with 'zle reset-prompt' ( #1397 )
...
Close #867
Close #1256
6 years ago
Junegunn Choi
0e06e298d4
[man] Document that FZF_DEFAULT_COMMAND should be POSIX-compliant
...
Close #1379
6 years ago
Junegunn Choi
72df905902
Do not wait for more keystrokes after double escape characters
...
Close #1393
6 years ago
Junegunn Choi
0d748a0699
Kill running preview process after 500ms when focus has changed
...
Close #1383
Close #1384
6 years ago
Junegunn Choi
27c40dc6b0
Restore STDIN during execute-silent
...
This allows users to terminate the process with CTRL-C when it hangs.
6 years ago
Junegunn Choi
8e34e6fbb4
[install] Escape spaces in installation directory
...
Close #1390
6 years ago
Junegunn Choi
3bc98ed623
Add link to related projects page
6 years ago
Tim Cuthbertson
70a92a858a
Don't drop buffered input data in findOffset() ( #1392 )
6 years ago
Jan Edmund Lazo
49d04374a4
[install] Detect MSYS on Windows ( #1391 )
6 years ago
Junegunn Choi
8540902a35
Add link to git key bindings gist
6 years ago
Junegunn Choi
8c6fcee3ca
[vim] Fix directory switching around sink function
...
Close #1356
Related:
- #612
- https://github.com/junegunn/fzf.vim/issues/308
6 years ago
Junegunn Choi
13803d0dbb
[vim] Clear temporary window-local working directory
...
Close #1085
Close #1086
Close https://github.com/junegunn/fzf.vim/issues/678
6 years ago
Michael Kelley
423986996a
Handle incomplete ESC sequence in typeahead buffer ( #1350 )
...
If an ESC char is found while processing characters,
continue to check for characters. This prevents fzf from
prematurely exiting.
Close #1349
6 years ago
Younes Manton
1c9e7b7ea6
Update Makefile to build ppc64le binary ( #1326 )
...
* Add ppc64le support to Makefile
* Update crypt libs to fix tty ioctls on ppc64le
The hardcoded tty ioctl commands in the terminal package were not
correct for ppc64le and caused the ioctls to return ENOTTY for
commands like TCGETS and so on. The bug is fixed in later versions.
6 years ago
Jay
6de1ad9d3d
[completion] Filter out non-hostnames in SSH config file ( #1329 )
...
* Correctly exclude SSH config options with Host
SSH config files have 14 options containing 'Host'.
Previously The zsh and bash completion scripts would include lines
containing these options when doing command-line completion of SSH hosts
with `ssh **`.
This commit fixes that problem by only including lines with 'host '.
* Don't autocomplete SSH hostnames using ?
SSH config files support ? as well as * for wildcards in Host lines.
This commit excludes lines containing ? for zsh/bash command line
completeion using `ssh **`
6 years ago
Oliver Schrenk
5004ae3457
[fish] Use $version instead of $FISH_VERSION ( #1100 )
...
$FISH_VERSION is dropped in 2.7, but every version has $version
- https://github.com/fish-shell/fish-shell/issues/4414
- fb8ae04f80
Comment from @faho in #1316 :
Unfortunately, $FISH_VERSION was only ever a thing from fish 2.0 to fish 2.7.1.
All fish versions from the very beginning though used a variable called simply "$version" to store their version, so that is the one that should be used.
6 years ago
做梦专业户
e67cc75063
Update Makefile to support armv8l ( #1321 )
6 years ago
Junegunn Choi
0edbcbdf19
Allow search query longer than the screen width
...
By implementing horizontal scrolling of the prompt line.
Maximum length is hard-coded to 300-chars.
Close #1312
Fix #1225
6 years ago
Junegunn Choi
f0fe79dd3b
0.17.4
6 years ago
Akinori MUSHA
daa1958f86
Provide an option to reverse items only ( #1267 )
6 years ago
Junegunn Choi
2c26f02f5c
Improve preview window update events
...
- Update preview window even if there is no match for the query string
if any of the placeholder expressions evaluates to a non-empty string.
- Also, if the command template contains {q}, preview window will be
updated if the query string changes even though the focus remains on
the same item.
An example:
git log --oneline --color=always |
fzf --reverse --ansi --preview \
'[ -n {1} ] && git show --color=always {1} || git show --color=always {q}'
Close #1307
6 years ago
Junegunn Choi
af87650bc4
[docker] Build binary from source
6 years ago
ptzz
2b19c0bc68
[bash/zsh] Fix missing fuzzy completions ( #1303 )
...
* [bash/zsh] Fix missing fuzzy completions
`cat foo**<TAB>` did not display the file `foobar` if there was a directory
named `foo`.
Fixes #1301
* [zsh] Evaluate completion prefix
cat $HOME**
cat ~username**
cat ~username/foo**
6 years ago
Junegunn Choi
76a2dcb5a9
Add Dockerfile for running tests
...
make docker
make docker-test
6 years ago
Junegunn Choi
68ec3d1c10
Fix flaky test cases
6 years ago
Mark
2ff19084ca
[install] Support for XDG Base Directory Specification ( #1282 )
...
Add --xdg option which makes the installer generate files under $XDG_CONFIG_HOME/fzf.
6 years ago
Daniel Gray
62f062ecfa
Remove -y flag from Arch Linux installation ( #1290 )
...
https://wiki.archlinux.org/index.php/Partial_upgrades#Partial_upgrades_are_unsupported
You should never `pacman -Sy <pkg>`, Arch users are expected
to keep their system already up-to-date before installing anything.
6 years ago
Jan Edmund Lazo
cce17ad0a0
[vim] Use CRLF in batchfile for multibyte codepage ( #1289 )
...
Close #1288
6 years ago
Junegunn Choi
b8296a91b9
Clarify Vim plugin instruction
...
Close #1251
@amaravora
6 years ago
Junegunn Choi
6e9452b06e
Add Arch Linux installation instruction
...
Close #1273
@codingCoffee
6 years ago
Junegunn Choi
888fd35689
[fzf-tmux] Avoid unnecessary recovery of window options
...
fzf-tmux temporarily turns off remain-on-exit and synchronize-panes
options. We don't have to try to restore the values of the options if
they were already turned off when fzf-tmux was started.
6 years ago
ptzz
1fb0fbca58
[bash] Do not print error when falling back to default completion ( #1279 )
...
Fixes #1278
6 years ago
Heinrich Kruger
ddd2a109e4
[fzf-tmux] Restore tmux window options ( #1272 )
...
Restore the original values of 'remain-on-exit' and 'synchronize-panes'
options when exiting 'fzf-tmux'.
6 years ago
Junegunn Choi
87504a528e
[bash] Fix infinite loop on tab completion
...
awk may not set OFS to match FS depending on the implementation.
Close #1227
6 years ago
Junegunn Choi
6eac4af7db
[vim] Ignore Vim:Interrupt when "Abort" selected on E325
...
Close #1268
6 years ago
Junegunn Choi
89de1340af
[bash] Add --sync to the default CTRL-R options
...
This compensates the use of --tac. fzf will not render on the screen
until the complete list of commands are loaded.
6 years ago
Junegunn Choi
9e753a0d44
Implement ttyname() in case /dev/tty is not available
...
Close #1266
Close #447
6 years ago
Junegunn Choi
f57920ad90
Do not print non-displayable characters
...
fzf used to print non-displayable characters (ascii code < 32) as '?',
but we will simply ignore those characters with this patch, just like
our terminals do.
\n and \r are exceptions. They will be printed as a space character.
TODO: \H should delete the preceding character, but this is not implemented.
Related: #1253
6 years ago
Junegunn Choi
7dbbbef51a
Add support for alt-{up,down,left,right} keys
...
Close #1234
6 years ago
Avindra Goolcharan
7add75126d
ZSH and Bash completion: remove shebang ( #1248 )
...
Shebangs are only for files that are directly executable. In cases
where files are only sourced (such as completion scripts), these
are unneeded.
6 years ago
Akinori MUSHA
d207672bd5
Parse the output of `go version` to get the value of GOOS ( #1260 )
6 years ago
Robert Orzanna
851fa38251
Add reference to Fedora package documentation ( #1255 )
6 years ago
ZDNoFYVe
43345fb642
Implement flag for preserving whitespace around field ( #1242 )
6 years ago
xalexalex
9ff33814ea
Fix typo in README ( #1243 )
6 years ago
Ryan Boehning
21b94d2de5
Make fzf pass go vet
...
Add String() methods to types, so they can be printed with %s. Change
some %s format specifiers to %v, when the default string representation
is good enough. In Go 1.10, `go test` triggers a parallel `go vet`. So
this also makes fzf pass `go test`.
Close #1236
Close #1219
6 years ago
Jesse Leite
24236860c8
Document inverse prefix exact match search syntax ( #1224 )
...
* Document inverse prefix exact match search syntax.
* Reorder search syntax table to explain basic exact match first.
6 years ago
Junegunn Choi
3f868fd792
[bash] Fix CTRL-R to preserve the latest yank
...
Close #1216
1. Append a single space so that step 3 won't fail
2. CTRL-E to move to the end of the line
3. CTRL-U to delete the whole line before the cursor
4. CTRL-Y to paste the deleted line
5. ESC+Y to rotate the kill ring and bring back the previous yank before step 3
6. CTRL-U to delete the whole line again
7. Paste `__fzf_history__`
8. ESC+CTRL-E to expand the command substitution
9. ESC+R to redraw the line
10. ESC+^ to expand the history entry (!NUMBER)
6 years ago
Junegunn Choi
417bca03df
Add shift-up and shift-down
...
For now, they are respectively bound to preview-up and preview-down
by default (TBD).
Not available on tcell build.
Close #1201
6 years ago
Junegunn Choi
cce6aef557
[bash] Fix extra space issue of dynamic completion with 'nospace'
...
Close #1203
6 years ago
Junegunn Choi
eb3afc03b5
[vim] Make list options compatible with layout options
...
Fix #1205
6 years ago
Jan Edmund Lazo
7f0caf0683
Update Windows default command to print relative paths ( #1200 )
7 years ago
Pierre P
7f606665cb
[install] Make default answer "y" ( #1195 )
7 years ago
Junegunn Choi
202872c2dc
Remove PayPal donation button
...
I've decided not to take more donations.
Thanks to everyone who has supported my projects.
Edgar Hipp
Eyal Levin
Philip Stewart
James O'Beirne
Minh Triet Ly
Victor Alvarez
Max Hung
Gearoid Murphy
Aaron Taylor
Brett Bender
Phil Thompson
Anders Damsgaard
7 years ago
Junegunn Choi
93aeae1985
[bash] Trigger redraw-current-line before history-expand-line
...
Close #681
7 years ago
Junegunn Choi
5c34ab6692
[vim] Fix terminal buffer cleanup on Vim 8
...
Close #1172
7 years ago
Junegunn Choi
390b49653b
0.17.3
7 years ago
Junegunn Choi
b877c385f0
Fix assertions in test_dynamic_completion_loader
7 years ago
Junegunn Choi
9c47739c0e
Fix panic when replace-query is triggered on empty result set
7 years ago
Junegunn Choi
04aa2992e7
Revert "0.17.2"
...
This reverts commit 2f1edeff78
.
7 years ago
Junegunn Choi
2f1edeff78
0.17.2
7 years ago
Junegunn Choi
306d51cdcf
Update tcell to fix double-enter problem on Windows GVim
...
- Close #1169
- https://github.com/gdamore/tcell/pull/159
7 years ago
Junegunn Choi
54a026525a
[vim] Remove unnecessary term_wait workaround
...
The issue is fixed in 1232624ae5
7 years ago
Junegunn Choi
d6588fc835
[bash-completion] Fix custom completion with dynamic loader enabled
...
After _completion_loader is called, instead of loading the entire
completion.bash file, just restore the fzf completion for the current
command. `_fzf_orig_completion_$cmd` is only set if _completion_loader
actually changed the completion options to avoid infinite loop.
Close #1170
7 years ago
Junegunn Choi
5a7b41a2cf
Add accept-non-empty action
...
'accept-non-empty' is similar to 'accept' (which is bound to 'enter' and
'double-click' by default) but it prevents fzf from exiting without any
selection.
Close #1162
7 years ago
Junegunn Choi
338a73d764
[man] Describe 'cancel' action
7 years ago
Junegunn Choi
c20954f020
Add replace-query action
...
replace-query action replaces the query string with the current
selection. If the selection is too long, it will be truncated.
If the line contains meta-characters of fzf search syntax, it is
possible that the line is no longer included in the updated result.
e.g.
echo '!hello' | fzf --bind ctrl-v:replace-query
Close #1137
7 years ago
Junegunn Choi
1e8e1d3c9d
Fix test case on older versions of Ruby
7 years ago
Junegunn Choi
f6b1962056
Inject $LINES and $COLUMNS when running preview command
...
Close #1168
7 years ago
Junegunn Choi
b3b101a89c
Support binding of left-click and right-click
...
left-click and right-click are respectively bound to "ignore" and
"toggle" (after implicitly moving the cursor) by default.
Close #1130
7 years ago
Junegunn Choi
9615c4edf1
Fix test case for invalid FZF_DEFAULT_COMMAND
7 years ago
Junegunn Choi
85a75ee035
Revert default command: find with -fstype required
...
In #1061 we changed the default command to retry with a simpler find
command with fewer arguments if the first find command failed. This was
to support stripped-down verions of find that do not support -fstype
argument.
However, this caused an unwanted side-effect of yielding duplicate
entries when the first command failed after producing some lines.
We revert the change in this commit, so the default command will not
work with find without -fstype support. But we now print better error
message in that case so that the user can set up a working
$FZF_DEFAULT_COMMAND.
Close #1120 #1167
7 years ago
Junegunn Choi
1e5bd55672
[install] Change the order of case patterns for $archi ( #1060 )
...
/cc @ehandal
7 years ago
Jan Edmund Lazo
37d4015d56
[vim] Don't use :terminal on msys2 or Cygwin ( #1155 )
...
Close #1152
msys2 terminal Vim assumes that it runs in mintty
so `:terminal` uses `TERM=xterm`.
fzf doesn't support `TERM=xterm` on Windows.
7 years ago
Junegunn Choi
6b27554cdb
Clarify installation instructions
7 years ago
Junegunn Choi
fc1b119159
[vim] Add instruction to hide statusline of terminal buffer ( #1143 )
7 years ago
Aaron Jensen
2cd0d4a9f7
[zsh] Fire zsh precmd functions after cd ( #1136 )
...
Fixes #915
7 years ago
Elliott Sales de Andrade
fd03aabeb2
Add Fedora installation information ( #1141 )
7 years ago
Justin Toniazzo
8068c975c2
Fix broken link in readme TOC ( #1131 )
...
The `Respecting .gitignore` link pointed to a section of the readme which no longer exists.
7 years ago
Junegunn Choi
a6d2ab3360
Update README: Examples using fd
...
- https://github.com/sharkdp/fd
- https://mike.place/2017/fzf-fd/
/cc @williamsmj
7 years ago
Adam Dinwoodie
fe7b91dfd9
Add bin/fzf.exe to .gitignore ( #1111 )
...
On Cygwin and MinGW, the fzf binary will have a .exe extension, so
ignore that binary if it exists as well as the bare binary.
7 years ago
Junegunn Choi
5784101bea
Suggest ripgrep instead of the silver searcher
...
Since https://github.com/BurntSushi/ripgrep/issues/200 is fixed in
0.7.1, we can safely suggest ripgrep as the candidate generator as it
has a more precise implementation of gitignore filtering than the silver
searcher.
7 years ago
Igor Urazov
eaf6eb8978
[completion] Ensure ps called as command ( #1098 )
...
When `ps` is aliased for something uncommon, like `alias ps=grc ps` which colorizes ps output, the output of `ps` can be unexpected and/or undesired.
This change makes ps to be always executed as command, even if it's aliased.
7 years ago
Daniel Schaffrath
3af63bcf1f
[zsh] Use fc -r instead of fzf --tac to speed up loadtime ( #1097 )
...
Reference: http://zsh.sourceforge.net/Doc/Release/Shell-Builtin-Commands.html
> The flag -r reverses the order of the events
7 years ago
Andrey Chernih
80a21f7a75
[completion] Fix known_hosts completion for custom port number ( #1092 )
...
Handles records like "[20.20.7.168]:9722 ssh-rsa ..."
This is a standard format for servers running on custom port according to http://man.openbsd.org/sshd.8#SSH_KNOWN_HOSTS_FILE_FORMAT
A hostname or address may optionally be enclosed within ‘[’ and ‘]’
brackets then followed by ‘:’ and a non-standard port number.
7 years ago
Junegunn Choi
0b33dc6ce1
0.17.1
7 years ago
Junegunn Choi
64a6ced62e
Do not immediately check --height option on Windows ( #1082 )
7 years ago
Junegunn Choi
438f6c96cd
Fix compilation error of Windows binary
7 years ago
Junegunn Choi
6ae085f974
Add link to Windows wiki page
...
Related: #1072
/cc @janlazo
7 years ago
Junegunn Choi
cb8e97274e
Update README to add an example of _fzf_compgen_dir
...
/cc @chrisjohnson
Close #1067
Close #1083
7 years ago
Jan Edmund Lazo
c4185e81e8
Fix ExecCommandWith for cmd.exe in Windows ( #1072 )
...
Close #1018
Run the command as is in cmd.exe with no parsing and escaping.
Explicity set cmd.SysProcAttr so execCommand does not escape the command.
Technically, the command should be escaped with ^ for special characters,
including ". This allows cmd.exe commands to be chained together.
See https://github.com/neovim/neovim/pull/7343#issuecomment-333350201
This commit also updates quoteEntry to use strings.Replace instead of
strconv.Quote which escapes more than \ and ".
7 years ago
Ionel Cristian Mărieș
0580fe9046
Don't do shell quoting for weird chars ( #1079 )
...
* Don't do shell quoting for weird chars
This would prevent tabs from being escaped as `$'\t'` (definitely not what I would want to see as initial value in the search).
* Do different escape.
7 years ago
Junegunn Choi
1b1bc9ea36
[install] Download arm8 binaries on Linux aarch64
...
Close #1060
7 years ago
Junegunn Choi
c2614467cf
[neovim] Fix Neovim plugin to use terminal instead of --height
...
Close #1066
Close #1068
7 years ago
Junegunn Choi
077ae51f05
[vim] Use Vim 8 terminal when appropriate
...
Close #1055
7 years ago
Junegunn Choi
ee40212e97
Update FZF_DEFAULT_COMMAND
...
- Use bash for `set -o pipefail`
- Fall back to simpler find command when the original command failed
Related: #1061
7 years ago
Ricardo González
7f5f6efbac
[fzf-tmux] Executes fzf from fzf-tmux with a process name ( #1056 )
7 years ago
Josh Pencheon
45d4c57d91
[completion] Include host aliases in ssh completion ( #1062 )
7 years ago
Robert Orzanna
41e0208335
Update Homebrew/Linuxbrew instructions ( #1052 )
7 years ago
Lawrence Wu
2f8238342b
[install] Don't touch dotfiles if not requested ( #1048 )
7 years ago
Junegunn Choi
e1582b8323
Clean up renderer code
...
Remove code that is no longer relevant after the removal of ncurses
renderer. This commit also fixes background color issue on tcell-based
FullscreenRenderer (Windows).
7 years ago
Junegunn Choi
7cfa6f0265
Fix custom foreground color inside preview window (addendum)
...
This fixes foreground color inside preview window when the text has ANSI
attributes except for foreground color.
Close #1046
7 years ago
Junegunn Choi
e3973c74e7
Fix custom foreground color inside preview window
...
Close #1046
7 years ago
Junegunn Choi
a8deca2dd9
[vim] Update README-VIM: fzf can run inside GVim
7 years ago
Junegunn Choi
a78ade1771
Update link to performance chart
7 years ago
Jan Edmund Lazo
79d2ef4616
[vim] Do not pathshorten prompt in cygwin ( #1043 )
...
Prevents the following case:
before pathshorten - /usr/bin
after pathshorten - /u/bin
piped to cmd.exe - U:/bin
7 years ago
Junegunn Choi
5edc3f755c
[vim] Update FZF command not set up lengthy prompt on narrow screen
...
Port of e7928d154a
Since :FZF does not enable preview window, we determine based on full
&columns instead of &columns / 2.
7 years ago
Junegunn Choi
288976310b
Update g:fzf_colors example
7 years ago
Junegunn Choi
58b5be8ab6
0.17.0-2
7 years ago
Jan Edmund Lazo
26d7896877
[vim] Bind Ctrl-J in Vim terminal to fix enter key
...
Temporary workaround for non-Windows environment
Reference:
https://github.com/vim/vim/issues/1998
https://github.com/junegunn/fzf/pull/1019#issuecomment-327008348
7 years ago
Jan Edmund Lazo
fd6bc7308f
[vim] Use s:execute_term in Windows
...
IMPORTANT:
cmd.exe and powershell are fine in default Windows terminal.
cmd.exe prompt is broken on ConEmu because it natively supports ucs-2 only.
utf-16 support is exclusive to .Net (ie. powershell).
utf-8 supports requires chcp, external program, but does not fix the cmd.exe prompt.
Use powershell on ConEmu to avoid corrupted text on display
7 years ago
Jan Edmund Lazo
6c41c95f28
[vim] s:execute_term works in GVim on Windows
...
Requirements:
- compiled with +terminal
- has patch-8.0.995
- has('gui_running') returns 1
7 years ago
Jan Edmund Lazo
446e04469d
[neovim] use batchfile for s:execute_term in Windows
7 years ago
Michael Smith
5097e563df
[neovim] Fix terminal buffer marker on Windows
...
Original Patch: a9bf29b65e
7 years ago
Jan Edmund Lazo
c7ad97c641
[neovim] use terminal in Windows for v0.2.1+
7 years ago
Junegunn Choi
9516fe3324
[install] Add --no-{bash,zsh,fish}
...
Close #1040
7 years ago
Junegunn Choi
20cdbac8c3
[install] Ignore user-defined grep aliases
7 years ago
Junegunn Choi
e3e7b3360c
Delete ncurses implementation
7 years ago
Junegunn Choi
655dfb8328
[fzf-tmux] Remove cat command
...
Close #1039
7 years ago
Mike Hearn
9b9c67b768
[fzf-tmux] Add pane_height/pane_width fallback ( #1037 )
7 years ago
Junegunn Choi
5b7457ff08
[install] Wait for a linefeed when asking for confirmation
...
Close #1035
7 years ago
Junegunn Choi
48adad5454
[neovim] Set &shell to sh (again) after opening a new window
...
Close #1031
7 years ago
Jack O'Connor
b27dc3eb17
[vim] Add parens around piped source commands ( #1029 )
...
Previously a command like `echo a && echo b` would get transformed into
`echo a && echo b | fzf`, which only pipes the output of the second
command. Adding parentheses around the source command avoids this issue,
and works on both Unix and Windows.
7 years ago
Junegunn Choi
e89eebb7ba
0.17.0
7 years ago
Junegunn Choi
fee404399a
Make --expect additive
...
Similarly to --bind or --color.
--expect used to replace the previously specified keys, and
fzf#wrap({'options': '--expect=f1'}) wouldn't work as expected. It
forced us to come up with some ugly hacks like the following:
13b27c45c8/autoload/fzf/vim.vim (L1086)
7 years ago
Junegunn Choi
6b4805ca1a
Optimize rank comparison on x86 (little-endian)
7 years ago
Junegunn Choi
159699b5d7
Remove an unnecessary code branch
7 years ago
Junegunn Choi
af809c9661
Minor refactorings
7 years ago
Junegunn Choi
329de8f416
[fzf-tmux] Execute trap with bash instead of the default shell
...
Close #1007
7 years ago
Junegunn Choi
e825b07e85
[neovim] Allow running FZF in multiple windows
...
Close #1023
7 years ago
Junegunn Choi
71fdb99a07
Remove bound checkings in inner loops
7 years ago
Junegunn Choi
55ee4186aa
Ignore EvtReadNew if EvtReadFin is already set
7 years ago
Junegunn Choi
941b0a0ff7
Minor optimization of FuzzyMatchV2
...
Calculate the first row of the score matrix during phase 2
7 years ago
Junegunn Choi
6aae12288e
Extract debug code from FuzzyMatchV2
7 years ago
Junegunn Choi
302cc552ef
Remove unused clear arguments of alloc16 and alloc32
7 years ago
Junegunn Choi
a2a4df0886
Pass util.Chars by pointer
7 years ago
Jan Edmund Lazo
3399e39968
[vim] Escape backslashes in fzf#shellescape ( #1021 )
7 years ago
Junegunn Choi
87874bba88
Remove redundant read event when --sync is used
7 years ago
Junegunn Choi
c304fc4333
Delay slab allocation
7 years ago
Junegunn Choi
6977cf268f
Limit search scope of uppercase letter
7 years ago
Junegunn Choi
931c78a70c
Short-circuit ANSI processing if no ANSI codes are found
...
Rework of 656963e
. Makes --ansi processing around 20% faster on plain
strings without ANSI codes.
7 years ago
Junegunn Choi
8d23646fe6
Revert "Short-circuit ANSI processing if no ANSI codes are found"
...
This reverts commit 656963e018
.
7 years ago
Junegunn Choi
656963e018
Short-circuit ANSI processing if no ANSI codes are found
7 years ago
Junegunn Choi
644277faf1
Linuxbrew can install fzf
...
Close #1017
7 years ago
Junegunn Choi
0558dfee79
Remove count field from ChunkList
7 years ago
Junegunn Choi
487c8fe88f
Make Reader event notification asynchronous
...
Instead of notifying the event coordinator (EventBox) whenever a new
line is arrived, start a background goroutine that periodically does the
task. Atomic.StoreInt32 is much cheaper than mutex synchronization
that happens during EventBox update.
7 years ago
Junegunn Choi
0d171ba1d8
Remove special nilItem
7 years ago
Junegunn Choi
2069bbc8b5
[vim] Allow Funcref in g:fzf_action
...
https://github.com/junegunn/fzf.vim/issues/185
7 years ago
Jan Edmund Lazo
053d628b53
Add MinGW 64 to install fzf in Windows 64-bit ( #1015 )
7 years ago
Junegunn Choi
6bc592e6c9
Update FuzzyMatchV1 to use skip optimization used in V2
7 years ago
Junegunn Choi
6c76d8cd1c
Disallow escaping of meta characters except for spaces
...
https://github.com/junegunn/fzf/issues/444#issuecomment-321719604
7 years ago
Junegunn Choi
a09e411936
Treat | as proper query when it can't be an OR operator
7 years ago
Junegunn Choi
02a7b96f33
Treat $ as proper search query
...
When $ is the leading character in a query, it's probably not meant to
be an anchor.
7 years ago
Junegunn Choi
e55e029ae8
Build cache key for a pattern only once
7 years ago
Junegunn Choi
6b18b144cf
Fix escaping of meta characters after ' or ! prefix
...
https://github.com/junegunn/fzf/issues/444#issuecomment-321432803
7 years ago
Junegunn Choi
6d53089cc1
Allow escaping term starting with |
...
Close #444
7 years ago
Junegunn Choi
e85a8a68d0
Allow escaping meta characters with backslashes
...
One can escape meta characters in extended-search mode with backslashes.
Prefixes:
\'
\!
\^
Suffix:
\$
Term separator:
\<SPACE>
To keep things simple, we are not going to support escaping of escaped
sequences (e.g. \\') for matching them literally.
Since this is a breaking change, we will bump the minor version.
Close #444
7 years ago
Junegunn Choi
dc55e68524
Remove unnecessary SCP (Save Cursor Position)
...
It is reported that it can have an unwanted side effect of clearing the
screen on terminal emulators that do not properly support it.
Patch suggested by @arya.
Close #1011
7 years ago
Junegunn Choi
462c68b625
[vim] Fix issues with other plugins changing working directory
...
Close #1005
7 years ago
Junegunn Choi
999d374f0c
Fix invalid cache lookups
7 years ago
Junegunn Choi
b208aa675e
Update Travis build to run on Trusty
7 years ago
Junegunn Choi
2b98fee136
Fix Travis CI build
...
tcell build is commented out as it doesn't reliably respond to tmux
send-keys.
7 years ago
Junegunn Choi
e5e75efebc
[vim] Fix vader test cases
7 years ago
Junegunn Choi
4a4fef2daf
Update performance comparison chart
7 years ago
Junegunn Choi
ecb6b234cc
0.16.11
7 years ago
Junegunn Choi
39dbc8acdb
Exit 2 instead of panic when failed to open /dev/tty
7 years ago
Junegunn Choi
a56489bc7f
Remove non-exclusive access to ChunkList field
7 years ago
Junegunn Choi
99927c7071
Modify loop conditions in checkAscii function
7 years ago
Junegunn Choi
3e28403978
[man] Add note on `--no-` convention
...
Close #1003
7 years ago
Junegunn Choi
37370f057f
Do not use defer in performance-sensitive contexts
7 years ago
Junegunn Choi
f4b46fad27
Inline function calls in a tight loop
...
Manually inline function calls in a tight loop as Go compiler does not
inline non-leaf functions. It is observed that this unpleasant code
change resulted up to 10% performance improvement.
7 years ago
Junegunn Choi
9d2c6a95f4
Revert "[bash] Do not append space when path completion is cancelled"
...
This reverts commit 376a76d1d3
as it
affects normal completion
7 years ago
Junegunn Choi
376a76d1d3
[bash] Do not append space when path completion is cancelled
...
Close #990
7 years ago
Jan Edmund Lazo
1fcc07e54e
[vim] Fix escape of backslash in s:shortpath
...
Close #1000
7 years ago
Junegunn Choi
8db3345c2f
Optimize exact match by applying the same trick for fuzzy match
7 years ago
Junegunn Choi
69aa2fea68
Optimize fuzzy search performance for ASCII strings
7 years ago
Junegunn Choi
298749bfcd
Update README
7 years ago
Junegunn Choi
f1f31baae1
Update README: Missing TOC
7 years ago
Junegunn Choi
e1c8f19e8f
Update README: Advanced topics
7 years ago
Junegunn Choi
5e302c70e9
Update README: rg intead of pt
7 years ago
Junegunn Choi
4c5a679066
Make deselect-all instantaneous
7 years ago
Andrew Halberstadt
41f0b2c354
Add MinGW on Windows to install script ( #998 )
...
Running uname -sm yields:
MINGW32_NT-6.2 i686
7 years ago
Junegunn Choi
a0a3c349c9
Update preview window when selection has changed
...
Close #995
7 years ago
Alexey Shamrin
bc3983181d
Update fish comments, because 2.6.0 was released ( #991 )
7 years ago
Junegunn Choi
980b58ef5a
Update README
...
Removed outdated animated GIF.
7 years ago
Junegunn Choi
a2604c0963
[nvim] Disable number in fzf buffer
...
https://github.com/junegunn/fzf.vim/issues/396#issuecomment-317214036
One can override the setting on FileType fzf autocmd.
7 years ago
Junegunn Choi
6dbc108da2
0.16.10
7 years ago
Junegunn Choi
bd98f988f0
Further reduce unnecessary rune array conversion
...
I was too quick to release 0.16.9, this commit makes --ansi processing
even faster.
7 years ago
Junegunn Choi
06301c7847
Fix regression: ANSI color in preview window not cleared
7 years ago
Junegunn Choi
18a1aeaa91
0.16.9
7 years ago
Junegunn Choi
c9f16b6430
Avoid unconditionally storsing input as runes
...
When --with-nth is used, fzf used to preprocess each line and store the
result as rune array, which was wasteful if the line only contains ascii
characters.
7 years ago
Junegunn Choi
bc9d2abdb6
Improve preview window rendering
...
- Fix incorrect display of the last line when more than a line is
wrapped above
- Avoid unnecessary flickering of the window
7 years ago
Junegunn Choi
28810c178f
Optimize ANSI code scanner
...
This change gives 5x speed improvement
7 years ago
Junegunn Choi
a9e64efe45
Fix regression: output printed on alternate screen
7 years ago
Junegunn Choi
6b5886c034
Adjust --no-clear option for repetitive relaunching
...
Related: https://gist.github.com/junegunn/4963bab6ace453f7f529d2d0e01b1d85
Close #974
7 years ago
Junegunn Choi
7727ad43af
[vim] Use fnameescape to escape command line arguments
...
Fix https://github.com/junegunn/fzf.vim/issues/404
Thanks to @janlazo.
7 years ago
Junegunn Choi
bbe10f4f77
Consolidate Result and rank structs
...
By not storing item index twice, we can cut down the size of Result
struct and now it makes more sense to store and pass Results by values.
Benchmarks show no degradation of performance by additional pointer
indirection for looking up index.
7 years ago
Junegunn Choi
5e72709613
Speed up initial scanning with bitwise AND operation
7 years ago
Junegunn Choi
9e85cba0d0
Reduce memory footprint of Item struct
7 years ago
Junegunn Choi
4b59ced08f
Add gopath to gitignore
7 years ago
Junegunn Choi
8dbdd55730
Refactor cache lookup
...
- Remove multiple mutex locks in partial cache lookup
- Simplify return values
7 years ago
Junegunn Choi
6725151a99
Remove unnecessary copy of Chunk slice
7 years ago
Junegunn Choi
d4f3d5a164
Remove pointer indirection by changing Chunk definition
7 years ago
Tom Fitzhenry
7b5ccc45bc
[fish] Fix ctrl-r regression in versions <2.4 ( #972 )
...
Close #966
7 years ago
Jan Edmund Lazo
940214a1a2
[neovim] Fix lcd when fzf job exits on Windows ( #970 )
...
Related: #960 (relative filepaths)
7 years ago
Jan Edmund Lazo
68bd410159
[vim] Don't pipe FZF_DEFAULT_COMMAND in Windows ( #969 )
...
Related #960 , #552
7 years ago
Junegunn Choi
b13fcfd831
Add missing --no-expect flag
7 years ago
Junegunn Choi
07ef2b051c
Print [ERROR] on info line when the default command failed
...
With zero result.
Related: https://github.com/junegunn/fzf.vim/issues/22#issuecomment-311869805
7 years ago
Junegunn Choi
3fc795340d
Fix test failulre with non-zero pane-base-index
7 years ago
John Nguyen
70cfa6af13
[fish] Accept starting dir for <M-c> key binding ( #944 )
...
This also modifies <C-t> behaviour.
The longest file path in the input is used as root directory for `find`
command. The remainder of the input is passed to fzf's --query as a
initial search parameters.
7 years ago
Tom Fitzhenry
dbcaec59ae
[fish] Support multiline commands ( #954 )
...
Fix found by @amosbird at https://github.com/junegunn/fzf/issues/953#issuecomment-310309055
closes #440
7 years ago
Junegunn Choi
faedae708e
Fix FZF_CTRL_T_COMMAND example for fish
...
See #944
7 years ago
Junegunn Choi
0c66521b23
Fix handling of bracketed paste mode
...
fzf should immediately continue consuming the buffer after discarding
bracketed paste mode sequence.
Close #951
7 years ago
Junegunn Choi
bf92862459
Update man page: missing name "border" for --color
7 years ago
John Nguyen
1a68698d76
[fish] Fix <C-t> completion for current dir search ( #946 )
...
If "." is given as the argument to begin <C-t> completion, the leading
"." is not correctly removed. In general, if user selects a fzf
completion, the current token should be "consumed".
7 years ago
Junegunn Choi
842a73357c
[fish] Fix CTRL-T with paths that don't start with ./
...
Close #943
7 years ago
Junegunn Choi
5efdeccdbb
[vim] Expand 'dir' on Cygwin to handle Windows-style paths
...
See https://github.com/junegunn/fzf/pull/933#discussion_r120011934
Close https://github.com/junegunn/fzf.vim/pull/386
7 years ago
Jan Edmund Lazo
050777b8c4
[vim] Uncomment test case to escape % in cmd.exe ( #941 )
7 years ago
Uri Gorelik
a4d78e2200
Update CHANGELOG with unix-line-discard+top ( #940 )
...
Also change the example binding for `unix-word-rubout` to *ctrl-w* instead of *ctrl-u*
7 years ago
Junegunn Choi
b49f22cdf9
0.16.8
7 years ago
Jan Edmund Lazo
7e483b0c25
[vim] Add support for Cygwin ( #933 )
7 years ago
Junegunn Choi
3cf9ae04c7
[fzf-tmux] Fix cleanup of temporary files
...
Close #935
7 years ago
Junegunn Choi
bf0cb4bfe2
Use find as the default command on Cygwin environment
7 years ago
Junegunn Choi
773133c4ce
[vim] Allow running install --bin on Cygwin
7 years ago
Junegunn Choi
ca0b3b6fd7
Fixes for Cygwin
...
- Update install script to download Windows binary if $TERM == cygwin
- Unset TERM if $TERM == cygwin (#933 )
- Always use cmd.exe instead of $SHELL when running commands
7 years ago
Junegunn Choi
f4731c0514
Merge branch 'master' into devel
7 years ago
Junegunn Choi
34f16e5b7d
Fix Makefile and install script for the new project layout
7 years ago
Junegunn Choi
83e9af6601
Add git revision to --version output
7 years ago
Junegunn Choi
8bbf9335e1
Restructuring: main package in project root
7 years ago
Junegunn Choi
159f30b37f
Merge branch 'glide' of https://github.com/hinshun/fzf into hinshun-glide
7 years ago
Junegunn Choi
2e3dc75425
Fix inconsistent tiebreak scores when --nth is used
...
Make sure to consistently calculate tiebreak scores based on the
original line.
This change may not be preferable if you filter aligned tabular input on
a subset of columns using --nth. However, if we calculate length
tiebreak only on the matched components instead of the entire line, the
result can be very confusing when multiple --nth components are
specified, so let's keep it simple and consistent.
Close #926
7 years ago
Edgar Lee
7d3575b362
Use glide to handle go dependencies
7 years ago
Junegunn Choi
35d407021c
[vim] Replace invalid s:escape calls with fzf#shellescape
7 years ago
Junegunn Choi
076f49d447
[vim] Make sure to delete temporary batchfile on Windows
7 years ago
Junegunn Choi
0665fe0413
[vim] Remove unnecessary ternary expression
...
Related: https://github.com/junegunn/fzf.vim/issues/378
7 years ago
Jan Edmund Lazo
669a6fee40
[vim] Use utf-8 for cmd.exe ( #929 )
7 years ago
Jan Edmund Lazo
8aab0fc189
[vim] Replace s:fzf_shellescape and s:shellesc with fzf#shellescape ( #916 )
7 years ago
Junegunn Choi
5d6eb5bfd6
Respect ANSI color state from the previous line in preview output
7 years ago
Junegunn Choi
cf4711d878
Fix display of tab characters in --prompt
7 years ago
Junegunn Choi
21d664d670
Update extra bash completion example
7 years ago
Tw
ab182e276b
Use read syscall directly to get character ( #931 )
...
Due to go std lib uses poller for os.File introducing in this commit:
c05b06a12d
There are two changes to watch out:
1. os.File.Fd will always return a blocking fd except on bsd.
2. os.File.Read won't return EAGAIN error for nonblocking fd.
So
For 1, we just get tty's fd in advance and then set its block mode.
For 2, we use read syscall directly to get what we wanted error(EAGAIN).
Fix issue #910 .
Signed-off-by: Tw <tw19881113@gmail.com>
7 years ago
Junegunn Choi
96a3250152
Update test case for --cycle
7 years ago
Junegunn Choi
f5746002fd
Do not "--cycle" on page-up/page-down
...
Close #928
7 years ago
Junegunn Choi
e1e3339770
Implement bindable "change" event and "top" action
...
# Move cursor to the top result whenever the query string is changed
fzf --bind change:top
Close #925
7 years ago
Junegunn Choi
3a5086796d
[vim] Prevent 'wildignore' from affecting expand() ( #917 )
7 years ago
Junegunn Choi
11300913a4
[vim] Do not expand s:fzf_go
...
expand() may return an empty string depending on the value of
&wildignore. Since expand('<sfile>') always returns an absolute path, we
can remove expand() call here. Close #917 .
7 years ago
Aurelien Rainone
e65f14cbed
Update README: Add table of contents ( #927 )
7 years ago
Theodore Dubois
6898849e3e
Mention that the fish bug has been fixed ( #912 )
7 years ago
Junegunn Choi
2d61691bb2
0.16.7
7 years ago
Junegunn Choi
eba9e04e2e
Export FZF_PREVIEW_HEIGHT instead of FZF_HEIGHT
...
https://github.com/junegunn/fzf.vim/issues/361
7 years ago
Junegunn Choi
33f32de690
Merge branch 'master' into devel
7 years ago
Junegunn Choi
93b8f61551
[vim] Export $FZF_HEIGHT for previewer scripts
...
Preview script cannot properly determine the height of fzf finder if
`--height` option is used.
https://github.com/junegunn/fzf.vim/issues/361
7 years ago
Junegunn Choi
7f17a9d1b4
Update mattn/go-shellwords
7 years ago
Junegunn Choi
d34e4cf698
Support CTRL-Z (SIGSTOP)
7 years ago
Junegunn Choi
6b592137b9
Add support for ctrl-alt-[a-z] key chords
...
Close #906
7 years ago
Junegunn Choi
d5e72bf55d
Update README-VIM: options as list ( #896 )
7 years ago
Junegunn Choi
5677e5e133
[fish] Fix ~/.config/fish/functions/fish_user_key_bindings.fish
...
Install script will create the file with the proper function body only
if the file doesn't exist. If it already exists, it will try to append
`fzf_key_bindings` as before.
Close #851
7 years ago
Jan Edmund Lazo
7a11a06cbd
[vim] Use backslash for Windows filepaths ( #896 )
...
- Fix shellescaping issues for filepaths
- Supports both forward slashes or backslashes
- Paths with spaces
- Use jobstart for neovim in s:execute (Windows)
- https://github.com/neovim/neovim/pull/6497
- Make 2 s:fzf_shellescape functions
- (Windows) Substitute \" with \\" to escape the last backslash
- (Default) Regular shellescape
- Support list 'options'
- Add "@echo off" to the batchfile used to execute fzf
7 years ago
Junegunn Choi
a5862d4b9c
[bash-completion] Use -o dirnames instead of -o plusdirs
...
Close #903
Related #135
7 years ago
Junegunn Choi
a50909e806
Correction: fzf no longer depends on ncurses
7 years ago
Kouki Higashikawa
7c8f7d3f20
[fzf-tmux] Close with exit code 130 when tmux pane is killed
...
Fix #796
7 years ago
Junegunn Choi
9078197446
Add --version to --help output and man page
...
Close #888
Close #894
7 years ago
Junegunn Choi
0fe07cf9fe
Update README.md
...
Add PayPal donation button
7 years ago
Junegunn Choi
2216169ca1
Update doc/fzf.txt accordingly
7 years ago
Junegunn Choi
50e989ca85
Update example in README-VIM
7 years ago
Junegunn Choi
fa1fc3d855
Add vim doc
...
Close #893
7 years ago
五所和哉
bbe696e925
[fzf-tmux] Fix issue with zoomed pane on fish ( #891 )
7 years ago
Miodrag Milić
5d12f523a3
Add chocolatey upgrade instruction to Readme ( #890 )
7 years ago
Daniel Hahler
d295d20dc4
fzf#run: improve "is already running" message ( #885 )
...
This displays the buffer(s) in this case, which is useful when FZF got
stuck, and you have to manually remove the buffer.
7 years ago
Sam Van Den Berge
2ba10071c9
Add support for IPv6 addresses in ssh completion ( #877 )
...
Signed-off-by: Sam Van Den Berge <sam@drgt.net>
7 years ago
Christian Sturm
505dc0491b
Make install script to work with non GNU tar ( #871 )
7 years ago
Junegunn Choi
54a4ab0f26
Add Chocolatey instruction
...
Thanks to @majkinetor. Close #869 .
7 years ago
Junegunn Choi
e03e91477b
0.16.6
7 years ago
Junegunn Choi
88ac397158
Add test case for --no-clear
7 years ago
Junegunn Choi
6fd4be580b
Use alternate screen only when the value of height is 100%
...
Do not automatically decide to use alternate screen when the value of
height exceeds the height of the terminal.
# Use alternate screen
fzf
fzf --height 100%
fzf --no-height
# Still use current screen
fzf --height 10000
7 years ago
Junegunn Choi
53348feb89
Add --no-clear option
7 years ago
Junegunn Choi
337cdbb37c
[zsh] Use setopt noposixbuiltins instead of emulate -L zsh
...
Close #858
3a6af27586 (commitcomment-21135641)
7 years ago
Junegunn Choi
05fdf91fc5
Revert "[zsh] emulate -L zsh to avoid issues with incompatible options"
...
This reverts commit 3a6af27586
.
7 years ago
Junegunn Choi
c387689d1c
[shell] Enable sorting by default in CTRL-R
...
CTRL-R binding used to start with --no-sort to list the matched commands
in chronological order. However, it has been a constant source of
confusion. Let's enable it by default from now on. The sorted result
shouldn't be too confusing as we use --tiebreak=index.
7 years ago
Junegunn Choi
cb9238dc4e
Display -S if sort is disabled and toggle-sort is used
...
This is to address a common confusion that one does not realize that
sorting is intentionally turned off by default and can be enabled by
a bind key.
7 years ago
Junegunn Choi
a484811f78
[vim] Capitalize exception messages
7 years ago
Junegunn Choi
111d1934c4
[vim] Throw error if g:fzf_layout is incorrectly used
...
https://github.com/junegunn/fzf.vim/issues/327
https://github.com/junegunn/fzf.vim/issues/317
7 years ago
Junegunn Choi
972fb1a29d
Suppress ANSI colors in preview window if --no-color is set
7 years ago
Junegunn Choi
3a6af27586
[zsh] emulate -L zsh to avoid issues with incompatible options
...
Close #858
7 years ago
Junegunn Choi
c89ac341e4
Clear background even if background color is not set
...
This is needed when fzf is started from inside a program (e.g. Vim)
and it uses a different background color than the terminal.
- https://github.com/junegunn/fzf.vim/issues/325
- https://github.com/junegunn/fzf.vim/issues/300
7 years ago
Junegunn Choi
cd59e5d07b
[neovim] Set 'dir' to the current direcotry
...
Close https://github.com/junegunn/fzf.vim/issues/308
7 years ago
Junegunn Choi
0b940e4b2b
Redraw item if query string has changed
7 years ago
Junegunn Choi
b29375c844
[vim] Minor refactoring
7 years ago
Junegunn Choi
76d3f6d248
[vim] Escape ! when using :! to execute command
...
- call fzf#run({'source': "echo '!'"})
- call fzf#run({'source': "echo '!'", 'down': '40%'})
Close https://github.com/junegunn/fzf.vim/issues/315
7 years ago
Junegunn Choi
e87a85a179
0.16.5
7 years ago
Junegunn Choi
11407bf656
Exclude sysfs in find commands
7 years ago
Junegunn Choi
c82fb3c9b9
Add toggle-preview-wrap action
7 years ago
Junegunn Choi
309e1d8619
Properly truncate long query string
7 years ago
Junegunn Choi
c2db67c1c0
[vim] Prepend @echo off to $FZF_DEFAULT_COMMAND on Windows ( #847 )
7 years ago
Junegunn Choi
9526594905
[vim] Fix FZF_DEFAULT_COMMAND on Windows
...
Close #847 . Patch submitted by @wontoncc.
7 years ago
Junegunn Choi
3d74d277aa
Use cut instead of sed in the default command
7 years ago
Junegunn Choi
fc274c2ba4
[vim] Do not escape % when using system() instead of !
...
Close https://github.com/junegunn/fzf.vim/issues/309
7 years ago
Pierre Neidhardt
ce43ea9f42
[shell] Replace `sed` with `-mindepth 1` and `cut` ( #844 )
7 years ago
Junegunn Choi
21da02fac2
Fix indentation
7 years ago
Junegunn Choi
19569bd5c5
Move cursor to the top-left when returning to alternate screen
...
Fix broken preview border. Reported by Thomas Sattler.
fzf --bind 'enter:execute(date)' --preview=date --reverse
7 years ago
Daniel Gray
afa25d8c57
[zsh] Do not cd when cancelling alt+c keybind ( #840 )
7 years ago
Junegunn Choi
1ba7acf4bd
[fzf-tmux] Fix race condition when using -l/-u on zoomed panes
...
Using a dummy command that works as the barrier.
7 years ago
Prabir Shrestha
a847fe8754
Use "type" instead of "cat" on windows ( #836 )
7 years ago
Junegunn Choi
5bb18b6441
Remove Dockerfiles and clean up Makefile
...
Due to the recent removal of ncurses dependency, we can cross-compile
binaries for different platforms without virtual machines.
7 years ago
Junegunn Choi
876c233a26
Remove Ruby version
...
Related #832
7 years ago
Junegunn Choi
ee5aeb80a4
0.16.4
7 years ago
Junegunn Choi
02ceae15a2
[vim] Download instruction for Windows
7 years ago
Junegunn Choi
e514739280
Fix failing test case
7 years ago
Junegunn Choi
72265298f9
[vim] Apply --no-height when running fzf in full screen mode
...
To override --height option in FZF_DEFAULT_OPTS
7 years ago
Junegunn Choi
4b700192c1
Add --border option to draw horizontal lines above and below the finder
...
Goes well with --height
7 years ago
Junegunn Choi
fe83589ade
Add test case for --tiebreak=begin
7 years ago
Junegunn Choi
fcf63c74f1
Fix --tiebreak=begin with algo v2
...
Due to performance consideration, FuzzyMatchV2 does not return the exact
positions of the matching characters by default. However, the ommission
caused `--tiebreak=begin` to produce inaccurate result in some cases.
(echo baz foo bar; echo foo bar baz) | fzf --tiebreak=begin -fbar | head -1
# Expected: foo bar baz
# Actual: baz foo bar
This commit fixes the problem by using the end offset which is
guaranteed to be correct.
7 years ago
Junegunn Choi
c95bb109c8
Suppress CSI codes in the output
7 years ago
Junegunn Choi
bd9c46ee34
Update ANSI processor to strip ^H along with its preceding character
7 years ago
Junegunn Choi
736aeaa1d3
Update go-runewidth
...
https://github.com/junegunn/go-runewidth/pull/1
/cc @joshuarubin
7 years ago
Junegunn Choi
dd1f26522c
Fix caching scheme when --exact is set and '-prefix is used
7 years ago
Kassio Borges
712b7b2188
[vim] Expose buffer variable with the current fzf setup ( #828 )
...
Exposing the `b:fzf` variable will be useful to get information about
which command is being executed on the current fzf window. With that,
now, it's possible to use the current command name on the statusline:
```viml
au User FzfStatusLine call <SID>fzf_statusline()
function! s:fzf_statusline()
let fzf_cmd_name = get(b:fzf, 'name', 'FZF')
let &l:statusline = '> '.fzf_cmd_name
endfunction
```
7 years ago
Junegunn Choi
5b749e2d5c
Update documentation
7 years ago
Junegunn Choi
d85a69a709
0.16.3
7 years ago
Junegunn Choi
a425e96fb2
[vim] g:fzf_prefer_tmux for choosing fzf-tmux over --height
...
https://github.com/junegunn/fzf.vim/issues/296
7 years ago
Junegunn Choi
7763fdf6ba
Update man pages
7 years ago
Junegunn Choi
dd156b59fc
Fix display issues with execute action
...
- Move cursor to the top-left corner when starting a command in
alternate screen
- Fix cursor position when returning to alternate screen when fzf is
running in full screen mode
7 years ago
Junegunn Choi
36dceecd58
Add support for ctrl-space key
...
Close #825
7 years ago
Junegunn Choi
421b9b271a
Add execute-silent action
...
Close #823
7 years ago
Junegunn Choi
ed57dcb924
Extend placeholder expression for multiple selections
...
Close #788
7 years ago
Junegunn Choi
95c77bfb98
Use --bind instead of --toggle-sort
...
Related #822
7 years ago
Junegunn Choi
2e3e721344
Merge branch 'devel'
7 years ago
Junegunn Choi
da2c28d5c2
Add --read0 and --print0 to --help output
...
Close #822
7 years ago
Junegunn Choi
dbddee9de9
[fish] Add toggle-sort back to CTRL-R ( #759 )
7 years ago
Junegunn Choi
8731d75607
Recalculate the width of trimmed line
...
Close #821
7 years ago
Junegunn Choi
f2ce233a6d
0.16.2
8 years ago
Junegunn Choi
6a75e30941
Allow invisible preview window (--preview-window 0)
...
Close #820
8 years ago
Junegunn Choi
a3244c4892
Delete every line below the cursor
8 years ago
Junegunn Choi
a5ad8fd3bd
Minor refactoring
8 years ago
Junegunn Choi
deccdb1ec5
Cursor postition response can be preceded by user key strokes
8 years ago
Junegunn Choi
12a43b5e62
Disable mouse if failed to query cursor position
8 years ago
Junegunn Choi
e1291aa6d2
Fix make deps to see the right git dir
8 years ago
Junegunn Choi
bb26f32ac7
Allow build on OpenBSD/FreeBSD/Android
...
Close #497
8 years ago
Junegunn Choi
4d928001b8
Update release script to upload assets in parallel
8 years ago
Junegunn Choi
c4baa6a10c
Update man page: 24-bit color
8 years ago
Junegunn Choi
71dec3dc5e
Fix bug where screen is not properly cleared on toggle-preview
8 years ago
Junegunn Choi
e5017c0431
Remove unnecesasry test case
8 years ago
Junegunn Choi
cbb5134874
[vim] Use 24-bit colors if termguicolors is set
8 years ago
Junegunn Choi
ff248d566d
Drop ncurses dependency
...
Close #818
8 years ago
Junegunn Choi
6ccc12c332
Use alternate screen if --height needs the entire screen
...
- Remove unnecessary scrolling
- Allow us to use `--height 100%` under Neovim terminal for 24-bit colors
Related:
- #789
- https://github.com/neovim/neovim/issues/4151
8 years ago
Junegunn Choi
2a669e9a17
Clear lines even when background color is not set
...
Also revert the workaround in Vim plugin introduced in fa7c897
.
Related: #814
8 years ago
Junegunn Choi
5130abe76f
Merge branch 'master' into devel
8 years ago
Junegunn Choi
fa7c8977a8
[vim] tput el to clear the last line
...
Close #814
Not grouping commands to avoid errors on non-standard shells.
8 years ago
Junegunn Choi
24fa183297
make deps
8 years ago
Junegunn Choi
131aa5dd15
Composable actions in --bind
...
Close #816
8 years ago
Junegunn Choi
a06ccc928f
Fix flakies
8 years ago
Junegunn Choi
d09ad13208
[zsh] Workaround trailing esacped space bug in go-shellwords
...
https://github.com/mattn/go-shellwords/issues/3
Close #812
8 years ago
Junegunn Choi
8ac37d5927
[shell] Do not override --reverse in CTRL-R
...
Close #807
8 years ago
Junegunn Choi
7ef0e50507
[bash/zsh] Remove unused --reverse in CTRL-R binding
...
Related #807
8 years ago
Junegunn Choi
62ab8ece5e
0.16.1
8 years ago
Junegunn Choi
8e2e63f9b9
Propertly fill window with background color
...
Close #805
8 years ago
Junegunn Choi
f96173cbe4
Add -L flag to the default find command
...
Close #781
8 years ago
Amos Bird
11015df52f
Add half-page-{up,down} actions ( #784 )
8 years ago
Junegunn Choi
05ed57a9f0
Merge pull request #794 from junegunn/devel
...
0.16.0
8 years ago
Junegunn Choi
4bece04207
0.16.0
8 years ago
Junegunn Choi
ede7bfb901
Optimize LightRenderer for slow terminals
8 years ago
Junegunn Choi
44d3faa048
[completion] Restore --height option for kill completion
8 years ago
Junegunn Choi
e0036b5ad2
Add --filepath-word option
...
Close #802
8 years ago
Junegunn Choi
208d4f2173
[shell] Make layout configurable via $FZF_DEFAULT_OPTS and $FZF_{KEY}_OPTS
8 years ago
Junegunn Choi
dc3957ce79
[completion] Add preview window to kill completion
8 years ago
Junegunn Choi
4ecb7f3a16
Replace --normalize with --literal and enable normalization by default
...
Ref #790
8 years ago
Junegunn Choi
03f5ef08c8
Use crypto/ssh/terminal instead of external stty command
8 years ago
Junegunn Choi
2720816266
[vim] Use /dev/tty as STDIN when using --height w/o explicit source
8 years ago
Justin M. Keyes
1896aa1748
s:common_sink(): Avoid duplicate BufEnter. ( #803 )
...
Later versions of Vim/Nvim handle `:edit <dir>` inside try-catch.
e13b9afe12
https://github.com/vim/vim/pull/1375
8 years ago
Junegunn Choi
5b68027bee
Fix $FZF_COMPLETION_OPTS evaluation
...
Close #799
8 years ago
Junegunn Choi
48863ac55c
Update invalid $TERM test case
8 years ago
Junegunn Choi
d64828ce6d
Print error message to stderr on unexpected exit
8 years ago
Junegunn Choi
2aa739be81
Fix bug where occurrence of the pattern in header lines are highlighted
8 years ago
Junegunn Choi
9977a3e9fc
Make preview renderer suspend early on line wrap
8 years ago
Junegunn Choi
f8082bc53a
No need to use /bin/sh to execute stty and tput
8 years ago
Junegunn Choi
996dcb14a3
Make fzf immediately quit when failed to read /dev/tty
...
Close #798
8 years ago
Junegunn Choi
0c127cfdc1
No need to query row position of the cursor if mouse is disabled
8 years ago
Junegunn Choi
ae274158de
Add experimental support for 24-bit colors
8 years ago
Junegunn Choi
340af463cd
Add --min-height option for percent --height
8 years ago
Junegunn Choi
78a3f81972
Do not use \e[s and \e[u
...
Excerpt from http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html :
> - Save cursor position:
> \033[s
> - Restore cursor position:
> \033[u
>
> The latter two codes are NOT honoured by many terminal emulators. The
> only ones that I'm aware of that do are xterm and nxterm - even though
> the majority of terminal emulators are based on xterm code. As far as
> I can tell, rxvt, kvt, xiterm, and Eterm do not support them. They are
> supported on the console.
They are also unsupported by Neovim terminal.
8 years ago
Junegunn Choi
d18b8e0d2c
Retry flaky test cases
8 years ago
Junegunn Choi
6c6c0a4778
Make util.RuneWidth return 1 for non-displayable characters
...
Fix line wrapping in preview window
8 years ago
Junegunn Choi
a16d8f66a9
Normalize pattern string before passing it to Algo function
8 years ago
Junegunn Choi
45793d75c2
Add --normalize option to normalize latin script characters
...
Close #790
8 years ago
Junegunn Choi
9d545f9578
Fix update of multi-select pointer
8 years ago
Junegunn Choi
a30999a785
Prepare for 0.16.0 release
8 years ago
Junegunn Choi
1a50f1eca1
[vim] Use --height instead of fzf-tmux
8 years ago
Junegunn Choi
1448d631a7
Add --height option
8 years ago
Junegunn Choi
fd137a9e87
[bash/zsh-completion] Filter ~/.ssh/known_hosts
...
Close #791
8 years ago
Jan Edmund Lazo
3670273719
[vim] Use cmd.exe directly on GVim (launcher='%s') ( #787 )
8 years ago
Jan Edmund Lazo
6c0fd7f9ca
[vim] FZF command to handle Windows paths with spaces
...
- Use noshellslash for strict path expansion in fzf#run and s:cmd
(shellescape depends on shellslash)
- Double-quote the fzf command for cmd.exe
- Add fzf#shellescape to encapsulate the logic
- Close #786
8 years ago
Jan Edmund Lazo
42a2371d26
[vim] Use cmd.exe in Windows ( #785 )
8 years ago
Junegunn Choi
45faad7e04
[bash] Addendum fix for #580
8 years ago
Junegunn Choi
73eacf1137
[bash-completion] Always backup existing completion definitions
...
_fzf_completion_loaded is no longer checked. This change increases the
load time by a few milliseconds, but I can't think of a better way to
handle the issue.
Close #783 .
8 years ago
Junegunn Choi
7b0d9e1e07
Apply --tabstop to preview window
8 years ago
Pierre Neidhardt
c7b0764002
[shell] Use '-mindepth 1' to omit root folder in 'find' output ( #779 )
...
This removes the need for the 'sed' call. Faster, cleaner.
8 years ago
Daniel Hahler
847c512539
s:execute_term: switch_back: check that self.pbuf exists ( #776 )
...
With a `bufhidden=wipe` buffer (e.g. vim-startify) the buffer would not
exist anymore, resulting in an error.
8 years ago
Junegunn Choi
97330ee8fc
No need to set MANPATH
...
Close #774
8 years ago
Pierre Neidhardt
0508e70f9b
Overhaul fish functions ( #759 )
...
Replace the "temp file" workaround with the "read" function: it's
simpler and faster.
Use proper escaping, remove the custom function.
The "file" widget uses last token as root for the "find" command.
This replaces the equivalent of '**' completion in bash/zsh.
The "$dir" non-expanded variable can be used in FZF_CTRL_T_COMMAND to
set the root.
8 years ago
Marco Hinz
8a502af4c1
Neovim: event handlers always expect three arguments ( #768 )
8 years ago
Junegunn Choi
c60bfb2b0f
[neovim] Keep alternate file unchanged
...
Close https://github.com/junegunn/fzf.vim/issues/265
8 years ago
Junegunn Choi
16b5902aa2
Fix Linux build ( #756 )
8 years ago
Junegunn Choi
a442fe0fd0
Truncate long lines in preview window
...
Add `:wrap` to --preview-window to wrap lines instead
Close #756
8 years ago
Junegunn Choi
ab9ae4f643
[vim] Fix path display in FZF when cwd is ~
8 years ago
Junegunn Choi
d9a51030ea
[vim] Display relative path in prompt
8 years ago
Junegunn Choi
67026718c1
Add BUILD.md
8 years ago
Junegunn Choi
a71c471405
0.15.9
8 years ago
Junegunn Choi
3858086047
Always print scroll indicator in preview window
8 years ago
Junegunn Choi
dffef3d9f3
Update build instructions for ncurses 6 and tcell
...
Close #357
Close #738
8 years ago
Junegunn Choi
de1c6b8727
[tcell] 24-bit color support
...
TAGS=tcell make install
printf "\x1b[38;2;100;200;250mTRUECOLOR\x1b[m\n" |
TERM=xterm-truecolor fzf --ansi
8 years ago
Junegunn Choi
6f17f412ba
Workaround for rendering glitch in case of short-lived input process
...
: | fzf --preview 'echo foo'
8 years ago
Junegunn Choi
746961bf43
[ncurses6] Suppress tui.Italic on ncurses 5
8 years ago
Junegunn Choi
182a6d99fd
[ncurses6] Support italics
8 years ago
Junegunn Choi
af31088481
[ncurses6] Use wcolor_set to support more than 256 color pairs
...
To build fzf with ncurses 6 on macOS:
brew install homebrew/dupes/ncurses
LDFLAGS="-L/usr/local/opt/ncurses/lib" make install
8 years ago
Junegunn Choi
43425158f4
Make escape delay configurable via ncurses standard $ESCDELAY
...
Also reduce the default delay to 50ms. We should not set it to 0ms as it
breaks escape sequences on WSL. If 50ms is not enough, one can increase
the delay by setting $ESCDELAY to a larger value.
8 years ago
Junegunn Choi
8524ea7441
Do not ignore resize event from ncurses and tcell
8 years ago
Junegunn Choi
6a65006f55
0.15.8
8 years ago
Junegunn Choi
d75ed841a9
Fix --no-bold on --no-color
8 years ago
Junegunn Choi
3cd2547e91
Reduce ESC delay to 100ms
8 years ago
Junegunn Choi
8c661d4e8c
Revamp escape sequence processing for WSL
...
Also add support for alt-[0-9] and f1[12]
8 years ago
Junegunn Choi
4b332d831e
Add --no-bold option
8 years ago
Junegunn Choi
22487810ba
Update README: link to wiki page
8 years ago
Junegunn Choi
c49e65d926
[shell] Fix pruning condition of find command for CTRL-T and ALT-C
...
`-fstype dev` is invalid. It's devfs on macOS and devtmpfs on Linux.
8 years ago
Junegunn Choi
2e8814bb57
Add WSL to .github/ISSUE_TEMPLATE.md
8 years ago
Junegunn Choi
dc557c0d4c
Update ANSI processor to handle more VT-100 escape sequences
...
The updated regular expression should include not all but most of the
frequently used ANSI sequences. Close #735 .
8 years ago
Junegunn Choi
a2beb159f1
0.15.7
8 years ago
Junegunn Choi
7ce427ff47
Fix panic when color is disabled and header lines contain ANSI colors
...
Close #732
8 years ago
Junegunn Choi
a221c672fb
0.15.6
8 years ago
Junegunn Choi
f87d382ec8
Fix --color=bw on tcell build
8 years ago
Junegunn Choi
3dfc020fac
Merge pull request #730 from laur89/master
...
Minor README markup fix
8 years ago
Laur Aliste
2d87896939
Minor README markup fix.
8 years ago
Junegunn Choi
2192d8d816
GOOS=windows make release
8 years ago
Junegunn Choi
d206949f62
Wait for additional keys after ESC for up to 100ms
...
Close #661
8 years ago
Junegunn Choi
4accc69022
Fix flaky test cases
8 years ago
Junegunn Choi
898d8d94c8
Fix issues in tcell renderer and Windows build
...
- Fix display of CJK wide characters
- Fix horizontal offset of header lines
- Add support for keys with ALT modifier, shift-tab, page-up and down
- Fix util.ExecCommand to properly parse command-line arguments
- Fix redraw on resize
- Implement Pause/Resume for execute action
- Remove runtime check of GOOS
- Change exit status to 2 when tcell failed to start
- TBD: Travis CI build for tcell renderer
- Pending. tcell cannot reliably ingest keys from tmux send-keys
8 years ago
Michael Kelley
26895da969
Implement tcell-based renderer
8 years ago
Junegunn Choi
0c573b3dff
Prepare for termbox/windows build
...
`TAGS=termbox make` (or `go build -tags termbox`)
8 years ago
Junegunn Choi
2cff00dce2
`man fzf` in README
...
Close #726
8 years ago
Junegunn Choi
06a6ad8bca
Update ANSI processor to ignore ^N and ^O
...
This reverts commit 02c6ad0e59
.
8 years ago
Junegunn Choi
02c6ad0e59
Strip ^N and ^O from preview output
...
https://github.com/junegunn/fzf/issues/391#issuecomment-257090266
e.g. fzf --preview 'printf "$(tput setaf 2)foo$(tput sgr0)bar\nbar\n"'
8 years ago
Junegunn Choi
9f321cbe13
Fix header lines being cleared on toggle-preview
...
Close #722
8 years ago
Junegunn Choi
9f30ca2923
0.15.5
8 years ago
Junegunn Choi
37f2d8f795
[vim] Respect g:fzf_colors
...
Close #711
8 years ago
Junegunn Choi
400e443a0a
Make test cases less susceptible to timeout errors
8 years ago
Junegunn Choi
0a8d2996dc
Set foreground color without affecting background
...
Close #712
8 years ago
Junegunn Choi
cfdb00b971
Allow other options to follow --color without spec
8 years ago
Junegunn Choi
9b9ad39143
[vim] Set g:loaded_fzf
8 years ago
Junegunn Choi
0541c0dbcf
Use relative position instead of absolute distance for --tiebreak=end
...
Fix unintuitive result where `*fzf*/install` is ranked higher than
`fzf/src/fzf/*fzf*-linux_386` on --tiebreak=end.
8 years ago
Junegunn Choi
47b11cb8b4
Merge pull request #701 from nthapaliya/zsh_script_improvements
...
[zsh] GNU coreutils compatibility
8 years ago
Niraj Thapaliya
d3da310b92
Use `command` to ignore shell function
8 years ago
Niraj Thapaliya
93e0a6a9de
Gnu `[` evaluates both sides of a -o condition regardless
...
It doesn't short circuit like we expect, causing trouble when $dir is
empty
Use shell builtin instead
8 years ago
Junegunn Choi
ac549a853a
[fzf-tmux] Fix bash condition
...
Fix #702
8 years ago
Junegunn Choi
053af9a1c8
[fzf-tmux/vim/nvim] Do not split small window
...
Close #699
8 years ago
Junegunn Choi
60112def02
Merge pull request #698 from Ambrevar/master
...
[fish] Yank commandline in fzf-history-widget
8 years ago
Pierre Neidhardt
2134c0c8a9
key-bindings.fish: Yank commandline in fzf-history-widget
8 years ago
Junegunn Choi
3222d62ddf
0.15.4
8 years ago
Junegunn Choi
aeb957a285
Use exact match by default for inverse search term
...
This is a breaking change, but I believe it makes much more sense. It is
almost impossible to predict which entries will be filtered out due to
a fuzzy inverse term. You can still perform inverse-fuzzy-match by
prepending `!'` to the term.
| Token | Match type | Description |
| -------- | -------------------------- | --------------------------------- |
| `sbtrkt` | fuzzy-match | Items that match `sbtrkt` |
| `^music` | prefix-exact-match | Items that start with `music` |
| `.mp3$` | suffix-exact-match | Items that end with `.mp3` |
| `'wild` | exact-match (quoted) | Items that include `wild` |
| `!fire` | inverse-exact-match | Items that do not include `fire` |
| `!.mp3$` | inverse-suffix-exact-match | Items that do not end with `.mp3` |
8 years ago
Junegunn Choi
154cf22ffa
Display scroll indicator in preview window
8 years ago
Junegunn Choi
51f532697e
Adjust maximum scroll offset
...
It was possible that a few lines at the bottom may not be visible if
there are lines above that span multiple lines.
8 years ago
Junegunn Choi
01b88539ba
[vim] Apply --multi and --prompt to :FZF command
8 years ago
Junegunn Choi
3066b206af
Support field index expressions in preview and execute action
...
Also close #679 . The placeholder for the current query is {q}.
8 years ago
Junegunn Choi
04492bab10
Use unicode.IsSpace to cover more whitespace characters
8 years ago
Junegunn Choi
8b0d0342d4
0.15.3
8 years ago
Junegunn Choi
957c12e7d7
Fix SEGV when trying to render preview but the window is closed
...
Close #677
8 years ago
Junegunn Choi
3b5ae0f8a2
Fix failing unit tests on ANSI attributes
8 years ago
Junegunn Choi
1fc5659842
Add support for more ANSI color attributes ( #674 )
...
Dim, underline, blink, reverse
8 years ago
Junegunn Choi
1acd2adce2
Update man page: missing actions
8 years ago
Junegunn Choi
1bc223d4b3
0.15.2
8 years ago
Junegunn Choi
bef405bfa5
Ignore VT100-related escape codes
8 years ago
Junegunn Choi
0612074abe
Support high intensity colors
...
Close #671
8 years ago
Junegunn Choi
3bf51d8362
Merge pull request #670 from maverickwoo/fix-668
...
[bash-completion] Fix #668
8 years ago
Maverick Woo
2c8479a7c5
Fix #668
...
Handle uppercase letters in program names. This also deals with `-` and
`.`, both of which are quite common in program names, e.g., `xdg-open`
and `foo.sh`.
8 years ago
Junegunn Choi
8c8b5b313e
Add preview-page-up and preview-page-down actions
8 years ago
Junegunn Choi
66d55fd893
Make preview windows scrollable
...
Close #669
You can use your mouse or binadble preview-up and preview-down actions
to scroll the content of the preview window.
fzf --preview 'highlight -O ansi {}' --bind alt-j:preview-down,alt-k:preview-up
8 years ago
Junegunn Choi
7fa5e6c861
0.15.1
8 years ago
Junegunn Choi
00f96aae76
Avoid rendering delay when displaying extremely long lines
...
Related #666
8 years ago
Junegunn Choi
a749e6bd16
Fix temp directory in a test case
8 years ago
Junegunn Choi
791076d366
Fix panic when pattern occurs after 2^15-th column
...
Fix #666
8 years ago
Junegunn Choi
37f43fbb35
Add --print0 option
...
Related: #660
8 years ago
Junegunn Choi
401a5fd5ff
Printable character in --expect set should not affect --print-query
8 years ago
Junegunn Choi
1854922f0c
Truncate the query string if it's too long
...
Use hard-coded limit to keep it simple. An alternative is to dynamically
calculate the width of the visible area and use it as the limit, but it
can cause unwanted truncation of the query on screen resize/split.
8 years ago
Junegunn Choi
2fc7c18747
Revise ranking algorithm
8 years ago
Junegunn Choi
8ef2420677
Update README
8 years ago
Junegunn Choi
cf6f4d74c4
Merge pull request #657 from ishanray/patch-1
...
Fix typo in comment
8 years ago
ishanray
f44d40f6b4
Update algo.go
8 years ago
Junegunn Choi
1c81a58127
Merge pull request #654 from qiemem/fix-tmux-groups-dont-break-sockets
...
[fzf-tmux] Make fzf target correct session in group
8 years ago
Bryan Head
9baf7c4874
Make fzf target correct session in group
...
Fixes #643
Doesn't break #648
8 years ago
Junegunn Choi
22b089e47e
Revert "Unset TMUX before splitting window" ( #648 )
...
This reverts commit 4d4447779f
.
8 years ago
Junegunn Choi
b166f18220
Merge pull request #646 from qiemem/fix-tmux-groups
...
[fzf-tmux] Fix grouped tmux session confusion
8 years ago
Junegunn Choi
68600f6ecf
Merge pull request #645 from ckafi/split-without-IFS
...
[zsh-completion] Split default zsh binding at the correct place
8 years ago
Bryan Head
4d4447779f
Unset TMUX before splitting window
...
Avoids confusing grouped sessions.
Fixes #643
8 years ago
Tobias Frilling
639de4c27b
Split default zsh binding at the correct place
...
The command substitution and following word splitting to determine the default
zle widget for ^I formerly only works if the IFS parameter contains a space. Now
it specifically splits at spaces, regardless of IFS.
8 years ago
Junegunn Choi
d87390934e
[neovim] Do not resize if the size of the screen has changed
...
Related #642
8 years ago
Junegunn Choi
411ec2e557
Merge branch 'joshuarubin-master'
8 years ago
Joshua Rubin
f025602841
[vim] Reset window sizes on close
...
Fix #520
Fix junegunn/fzf.vim#42
8 years ago
Junegunn Choi
f958c9daf5
[vim] Tilde prefix is not allowed for `left` or `right` layout
8 years ago
Junegunn Choi
b86838c2b0
0.13.5
8 years ago
Junegunn Choi
1f7d1f9b15
Update Centos Dockerfile to use Go 1.7
8 years ago
Junegunn Choi
f8fdf9618a
No need to cache the result in filtering mode (--filter)
8 years ago
Junegunn Choi
827a83efbc
Remove Offset slice from Result struct
8 years ago
Junegunn Choi
3e88849386
[vim] Fix "E706: Variable type mismatch for: arg"
8 years ago
Junegunn Choi
608c416207
Add missing sources
8 years ago
Junegunn Choi
62f6ff9d6c
[vim] Make arguments to fzf#wrap() optional
...
fzf#wrap([name string,] [opts dict,] [fullscreen boolean])
8 years ago
Junegunn Choi
37dc273148
Micro-optimizations
...
- Make structs smaller
- Introduce Result struct and use it to represent matched items instead of
reusing Item struct for that purpose
- Avoid unnecessary memory allocation
- Avoid growing slice from the initial capacity
- Code cleanup
8 years ago
Junegunn Choi
f7f01d109e
Set the upper limit of the number of search go routines
8 years ago
Junegunn Choi
01ee335521
Remove duplicate code
8 years ago
Junegunn Choi
0e0de29b87
Inline function calls in tight loops
...
By only using leaf functions
8 years ago
Junegunn Choi
babf877fd6
Increase the number of go routines for search
...
Sort performance increases as the size of each sublist decreases (n in
nlog(n) decreases). Merger is then responsible for merging the sorted
lists in order, and since in most cases we are only interesed in the
matches in the first page on the screen so the overhead in the process
is negligible.
8 years ago
Junegunn Choi
935272824e
Setting GOMAXPROCS is no longer needed
...
https://golang.org/doc/go1.5
8 years ago
Junegunn Choi
3a9532c8fd
Increase read buffer size to 64KB
8 years ago
Junegunn Choi
c4c92142a6
0.13.4
8 years ago
Junegunn Choi
d4b6338102
Lint
8 years ago
Junegunn Choi
8df7d962e6
Improve rendering time of long lines
8 years ago
Junegunn Choi
41e916a511
[perf] evaluateBonus can start from sidx - 1
8 years ago
Junegunn Choi
d9c8a9a880
[perf] Remove memory copy when using string delimiter
8 years ago
Junegunn Choi
ddc7bb9064
[perf] Optimize AWK-style tokenizer for --nth
...
Approx. 50% less memory footprint and 40% improvement in query time
8 years ago
Junegunn Choi
1d4057c209
[perf] Avoid allocating rune array for ascii string
...
In the best case (all ascii), this reduces the memory footprint by 60%
and the response time by 15% to 20%. In the worst case (every line has
non-ascii characters), 3 to 4% overhead is observed.
8 years ago
Junegunn Choi
822b86942c
[test] Clear environment variables
8 years ago
Junegunn Choi
1e74dbb937
:hidden property of previous --preview-window should be cleared
...
Fix #636 . Patch suggested by @edi9999.
8 years ago
Junegunn Choi
7cef92fffe
[vim] Delete fzf buffer even when exit status is non-zero
...
Fix #183
8 years ago
Junegunn Choi
42e4992f06
[vim] Make sure to delete fzf buffer
...
Close junegunn/fzf.vim#173 and #630
8 years ago
Junegunn Choi
a6066175c6
Merge pull request #630 from kassio/master
...
Remove `name` option from `termopen`.
8 years ago
Kassio Borges
27444d6b1e
Remove `name` option from `termopen`.
...
`termopen` no longer accepts a `name` option, instead we should suffix the
command with `;#NAME`.
8 years ago
Junegunn Choi
d6a99c0391
[vim] v:shell_error can change around redraw!
...
Patch suggested by Mariusz Atamańczuk
8 years ago
Junegunn Choi
f787f7e651
[vim] Add fzf#wrap helper function
...
Close #627
8 years ago
Junegunn Choi
a7c9c08371
[vim] Make :FZF command configurable with g:fzf_layout
...
To make it consistent with the other commands in fzf.vim
8 years ago
Junegunn Choi
fccc93176b
0.13.3
8 years ago
Junegunn Choi
6439a138fe
[install] Build fzf if prebuilt binary doesn't work
...
Close #617
8 years ago
Junegunn Choi
a9a29dff4f
Fix duplicate rendering of the last line in preview window
8 years ago
Junegunn Choi
6a52f8b8dd
[zsh-completion] setopt localoptions noksh_arrays
...
Close #607
8 years ago
Junegunn Choi
a1049328d6
[vim] Adjust split size when --header option is set
...
Close #622
8 years ago
Junegunn Choi
5c2b96bd00
[vim] Fix error with multi-line $FZF_DEFAULT_COMMAND
...
Close #620
8 years ago
Junegunn Choi
c36413fdf6
[zsh] Suppress error message when pipefail is not supported
...
Close #615
8 years ago
Junegunn Choi
52cf5af91c
[test] Fix test failure on Travis CI
...
No guarantee in the order in which files are listed
8 years ago
Junegunn Choi
3a4e053af7
[bash] Fall back to send-keys if named paste buffer is not supported
...
Related: #616
8 years ago
Junegunn Choi
049bc9ec68
[fzf-tmux] Add man page
8 years ago
Junegunn Choi
b461a555b8
[fzf-tmux] Add --version and --help flags
8 years ago
Junegunn Choi
0f87b2d1e1
[fzf-tmux] Use double brackets
...
For consistency and (negligible) performance improvement
8 years ago
Junegunn Choi
0fb5b76c0d
[fzf-tmux] Fail fast if fzf excutable is not found
8 years ago
Junegunn Choi
0c918dd87a
Merge pull request #616 from seanlaguna/master
...
Use tmux buffers for sending output to preserve character encoding
8 years ago
Junegunn Choi
05299a0fee
[test] Use tmux buffer in unicode test cases
...
Related #616
8 years ago
Sean
b36b0a91f5
use tmux buffers for sending output to preserve character encoding
8 years ago
Junegunn Choi
6081eac58a
[shell] Suppress alias/function expansion
...
Close #611
8 years ago
Junegunn Choi
942ba749c7
[vim] Restore working directory even when new window is opened
...
Close #612
8 years ago
Junegunn Choi
f941012687
Merge pull request #610 from eigengrau/master
...
[zsh] Re-initialize zle when widgets finish
8 years ago
Sebastian Reuße
fed5e5d5af
[zsh] Re-initialize zle when widgets finish
...
zle automatically calls zle-line-init when it starts to read a new line. Many
Zsh setups use this hook to set the terminal into application mode, since this
will then allow defining keybinds based on the $terminfo variable (the escape
codes in said variable are only valid in application mode).
However, fzf resets the terminal into raw mode, rendering $terminfo values
invalid once the widget has finished. Accordingly, keyboard bindings defined
via $terminfo won’t work anymore.
This fixes the issue by calling zle-line-init when widgets finish. Care is taken
to not call this widget when it is undefined.
Fixes #279
8 years ago
Junegunn Choi
b864885753
[install] Make sure to unset pipefail
8 years ago
Junegunn Choi
64747c2324
[install] Fix error in install script
...
Close #608
8 years ago
Junegunn Choi
34965edcda
[install] Fall back to wget if curl failed
...
Close #605
8 years ago
Junegunn Choi
bd4377084d
Merge pull request #601 from blueyed/zsh-ret-for-fzf-file-widget
...
zsh: pass through exit code from fzf with fzf-file-widget
8 years ago
Daniel Hahler
38a2076b89
zsh: pass through exit code from widgets
...
This allows to have a custom widget like the following, which would
additionally accept the line, but only in case of entries being
selected:
fzf-file-widget-with-accept() {
zle fzf-file-widget
if [[ "$?" == 0 ]] && (( $#BUFFER )); then
zle accept-line
fi
}
zle -N fzf-file-widget-with-accept
bindkey '\e^T' fzf-file-widget-with-accept
With this `<C-a>t` will launch fzf, and simulate the pressing of "Enter"
afterwards.
8 years ago
Junegunn Choi
5759d50d4a
0.13.2
8 years ago
Junegunn Choi
e455836cc9
Fix race condition where preview window is not properly cleared
8 years ago
Junegunn Choi
8a90f26c8a
0.13.1
8 years ago
Junegunn Choi
24e1fabf2e
Do not process ANSI codes in --preview output at once
...
Close #598
8 years ago
Junegunn Choi
c39c039e15
[shell] Add $FZF_CTRL_T_OPTS and $FZF_ALT_C_OPTS
...
Close #596
8 years ago
Junegunn Choi
07f176f426
Merge pull request #595 from aykamko/speed-up-fzf-completion
...
Optimize fzf_default_completion binding
8 years ago
Aleks Kamko
19339e3a6d
optimize fzf_default_completion binding
8 years ago
Junegunn Choi
3e1d6a7bcf
0.13.0
8 years ago
Junegunn Choi
2bbc12063c
Add --preview and --preview-window
...
Close #587
8 years ago
Junegunn Choi
b8737b724b
Ignore controls chars for bracketed paste mode
...
Close #594
8 years ago
Junegunn Choi
d91c3a2f5e
Merge pull request #593 from edi9999/master
...
Add fzf_prefer_tmux option
8 years ago
Edgar Hipp
fe5db5aadc
Add fzf_prefer_tmux option
8 years ago
Junegunn Choi
cf9c957c66
Update test_execute_shell ( #590 )
8 years ago
Junegunn Choi
68b60c6d19
Update test_execute_multi ( #590 )
8 years ago
Junegunn Choi
3a644b16a4
Update test_execute ( #590 )
8 years ago
Junegunn Choi
95b34de339
[bash/zsh] Fix $FZF_CTRL_R_OPTS with option values with spaces
8 years ago
Junegunn Choi
6a431cbf49
[fzf-tmux] Escape $ in arguments
...
e.g. fzf-tmux -q '$PATH'
Related: #343
8 years ago
Junegunn Choi
56fb2f00b3
Use single-quoted strings in execute action
...
Close #590
8 years ago
Junegunn Choi
1c86aaf342
[vim/fzf-tmux] Handle fzf project directory with spaces
...
Close #583
8 years ago
Junegunn Choi
cfc0b18eaa
Revert "Change tmux pane title for fzf splits"
...
This reverts commit f074709fc9
.
Close #586 . /cc @akashin
8 years ago
Junegunn Choi
412c211655
[vim] Use lcd instead of chdir
...
https://github.com/junegunn/fzf.vim/issues/147
8 years ago
Junegunn Choi
923feb69ab
[zsh] Fix indentation
8 years ago
Junegunn Choi
92dba7035a
Merge pull request #584 from jimbocoder/master
...
Take SSH completion hints from known_hosts
8 years ago
Jim Howell
b8a3ba16a2
[bash/zsh] Take SSH completion hints from known_hosts
...
Signed-off-by: Junegunn Choi <junegunn.c@gmail.com>
8 years ago
Junegunn Choi
cd5e4d9402
Merge pull request #582 from akashin/master
...
[fzf-tmux] Change tmux pane title for fzf splits
8 years ago
Andrey Kashin
f074709fc9
Change tmux pane title for fzf splits
8 years ago
Junegunn Choi
e0b29e437b
[bash] Use backticks to avoid delay with blink-matching-paren
...
Close #580
8 years ago
Junegunn Choi
bdb94fba7d
[zsh] Fix #579 - Locally unset globsubst
8 years ago
Junegunn Choi
2f364c62f4
0.12.2
8 years ago
Junegunn Choi
7ed9f83662
Validate jump label characters
...
Also extend default jump labels
8 years ago
Junegunn Choi
f498a9b3fb
Revert version number
8 years ago
Junegunn Choi
13330738b8
Do not match jump labels beyond the screen limit
8 years ago
Junegunn Choi
e53535cc61
Update default jump labels
8 years ago
Junegunn Choi
c62fc5e75c
More named keys: F5 ~ F10, ALT-/
8 years ago
Junegunn Choi
70245ad98c
[make] Reduce the size of the binaries with `-ldflags -w`
...
Related: #555
8 years ago
Junegunn Choi
6d235bceee
Add jump and jump-accept actions for --bind
...
jump and jump-accept implement EasyMotion-like movement in fzf.
Suggested by @mhrebenyuk. Close #569 .
8 years ago
Junegunn Choi
4adebfc856
[install] go get -u github.com/junegunn/fzf/src/fzf
8 years ago
Junegunn Choi
faccc0a410
[fzf-tmux] Escape backslash in command-line arguments
8 years ago
Junegunn Choi
9078688baf
Add print-query action for --bind
...
Close #571
8 years ago
Junegunn Choi
9bd8b1d25f
Fix typo
8 years ago
Junegunn Choi
dd4be1da38
Allow alt-enter and alt-space for --bind ( #571 )
8 years ago
Junegunn Choi
66f86e1870
[fzf-tmux] Fix #562 - Check $TMUX instead of $TMUX_PANE
8 years ago
Junegunn Choi
4ab75b68dc
Fix flaky test case: test_execute
...
Should wait until execute action completes
8 years ago
Junegunn Choi
73cb70dbb3
Fix flaky test case: test_file_completion_unicode
8 years ago
Junegunn Choi
d082cccb6d
Fix flaky test case: test_ctrl_t_unicode
...
The width of the pseudo-terminal on Travis CI environment can be small
and cause the line to be wrapped.
8 years ago
Junegunn Choi
88a80e3c2c
Determine 256-color capability using tigetnum("colors")
...
Close #570
8 years ago
Junegunn Choi
24516bcf4d
[install] Set a temporary GOPATH
8 years ago
Junegunn Choi
b4c4a642ed
Update README
...
Close #560 , #561
8 years ago
Junegunn Choi
0231617857
[neovim] Fix issues with `enew` and `tabnew` layouts
...
Related: #559
8 years ago
Junegunn Choi
7f64fba80f
Update Makefile to allow build on i686 ( #555 )
8 years ago
Junegunn Choi
633aec38f5
Merge pull request #554 from gene-pavlovsky/patch-1
...
Fix missing reference to UNAME_M
8 years ago
Gene Pavlovsky
d1b402a23c
Fix missing reference to UNAME_M
...
The `Build on $(UNAME_M) is not supported, yet` message was referencing an undefined UNAME_M. Fixed that.
8 years ago
Junegunn Choi
35a9aff8e1
0.12.1
8 years ago
Junegunn Choi
988c9bd9be
[zsh] Fix issues with unicode characters
8 years ago
Junegunn Choi
095f31b316
[vim] Explicitly set source to FZF_DEFAULT_COMMAND
...
Helps when your `$SHELL` is slow.
Close #552 .
8 years ago
Junegunn Choi
d86cee2a69
[bash] Export fzf-file-widget function for bash 4+ ( #546 )
...
e.g. Remapping fzf-file-widget to CTRL-X CTRL-T intead of CTRL-T
bind -x '"\C-x\C-t": fzf-file-widget'
bind '"\C-t": transpose-chars'
8 years ago
Junegunn Choi
e986f20a85
[fish] Use consistent function names for key bindings ( #546 )
...
- fzf-file-widget
- fzf-history-widget
- fzf-cd-widget
8 years ago
Junegunn Choi
c727ba1d99
[fzf-tmux] Do not split pane if the height is too small
8 years ago
Junegunn Choi
bb70923cd8
Fix flaky test cases
8 years ago
Junegunn Choi
772fa42dcb
[fish] Fix intermittent errors on CTRL-T
...
Related: 23244bb
8 years ago
Junegunn Choi
85ef3263fc
Fix incorrect cache reference in --exact mode ( #547 )
...
When we prepend a single quote to our query in --exact mode, we are not
supposed to limit the scope of the new search to the previous
exact-match result.
8 years ago
Junegunn Choi
4bde8de63f
Apply new ranking algorithm to exact match as well
8 years ago
Junegunn Choi
654a7df9b0
[neovim] Set bufhidden and nobuflisted after opening terminal
8 years ago
Junegunn Choi
c3aa836ec0
[bash] Update completion.bash
...
[bash] Update completion.bash
8 years ago
Junegunn Choi
95764bef6f
Merge pull request #550 from gene-pavlovsky/gene-pavlovsky-patch-2
...
[bash] Update key-bindings.bash
8 years ago
Gene Pavlovsky
63dbf48546
Update key-bindings.bash
...
Faster startup. Use internal bash globbing instead of external grep binary (adapter from Gentoo's `/etc/bash/bashrc` TERM checking). Insignificant on Linux, but on Cygwin this cuts startup time by 40 ms on my Core i7 laptop.
8 years ago
Gene Pavlovsky
e2401350a3
Update completion.bash
...
Fixes #548 . Avoid using a subshell in _fzf_defc().
8 years ago
Junegunn Choi
e867355b2a
[neovim] Restore winfixwidth and winfixheight
...
Fix https://github.com/junegunn/fzf.vim/issues/128
8 years ago
Junegunn Choi
b28c14b93a
0.12.0
8 years ago
Junegunn Choi
879ead210f
0.11.2
8 years ago
Junegunn Choi
2f6d23b91e
Enhanced ranking algorithm
...
Based on the patch by Matt Westcott (@mjwestcott).
But with a more conservative approach:
- Does not use linearly increasing penalties; It is agreed upon that we
should prefer matching characters at the beginnings of the words, but
it's not always clear that the relevance is inversely proportional to
the distance from the beginning.
- The approach here is more conservative in that the bonus is never
large enough to override the matchlen, so it can be thought of as the
first implicit tiebreak criterion.
- One may argue the change breaks the contract of --tiebreak, but the
judgement depends on the definition of "tie".
8 years ago
Junegunn Choi
5f63a7b587
Fix flaky test case
8 years ago
Junegunn Choi
d9ce797d88
Merge pull request #540 from WChargin/bash-vimode-delay-fix
...
[bash] Fix vi mode pre-launch delay
8 years ago
William Chargin
12230f8043
Fix bash-vimode normal-mode cd completion
8 years ago
William Chargin
0c8de1ca44
Fix Bash+vimode pre-launch delay
...
Summary:
Fix adapted from [@adamheins: fzf, vi-mode, and fixing delays][1].
[1]: https://adamheins.com/blog/fzf-vi-mode-and-fixing-delays
The basic problem is that
fzf presses <Esc> to enter vi-movement-mode
(as opposed to insert mode)
and then presses a bunch of keys to set up the buffer.
But the <Esc> keypress is also the prefix for a bunch of other commands,
so Bash will dutifully wait an excruciating half-second
before actually executing this command.
Instead, we bind <C-x><C-a>, which is unused by default
and seems reasonably unlikely to be custom-bound,
to be another way to enter vi-movement-mode;
this binding is unambiguous, so fzf can use it without delay.
This change was made by just `:s/\\e/\\C-x\\C-a/gc`
in the relevant section,
after adding the actual binding and comment at the top.
8 years ago
Junegunn Choi
89687105f4
[install] Ask before updating shell configuration files
8 years ago
Junegunn Choi
74d1694be9
Fix #541 - Print double-click when --expect=double-click is set
8 years ago
Junegunn Choi
935e986be5
[zsh] Remove unnecessary evals
8 years ago
Junegunn Choi
e5ac2ebd7c
[vim] Escape $
...
https://github.com/junegunn/fzf.vim/issues/114
8 years ago
Junegunn Choi
8d6e13bf94
Merge pull request #535 from mjwestcott/master
...
Fix algorithm tests
8 years ago
Matt Westcott
2ca704405a
Fix algorithm tests
8 years ago
Junegunn Choi
802c1c2937
Clean up install script
...
- Do not create zsh files if zsh is not installed (@adam8157)
- Use command -v instead of which (@netei)
- Reenable --pre option
Close #531
8 years ago
Junegunn Choi
3cb5fef6b6
Merge pull request #529 from mjwestcott/master
...
Fix typo in README.md
8 years ago
Matt Westcott
6da2e0aa1e
Fix typo in README.md
8 years ago
Junegunn Choi
24f3ec7f33
Fix FZF_CTRL_R_OPTS for zsh ( #526 )
8 years ago
Junegunn Choi
a57b375b41
Add $FZF_CTRL_R_OPTS for overriding the default options for CTRL-R
...
Close #526
8 years ago
Junegunn Choi
6cc9d53978
[fzf-tmux] Fix invalid redirection
8 years ago
Junegunn Choi
df32c05833
[fzf-tmux] Fix issues on tmux 1.8
8 years ago
Junegunn Choi
c0652adf4c
[fzf-tmux] tmux 1.6 compatibility
...
Patch submitted by @netei. Close #524 .
8 years ago
Junegunn Choi
6ea760a336
Make 32-bit linux binary (partially) static ( #523 )
8 years ago
Junegunn Choi
f704b94603
[neovim] Open tab before current tab
...
Related: https://github.com/junegunn/gv.vim/issues/19
8 years ago
Junegunn Choi
444a67cafa
Fix flaky test cases
8 years ago
Junegunn Choi
f91cbd5688
Add ISSUE_TEMPLATE.md
...
Close #500
8 years ago
Junegunn Choi
3073ca3e5a
[neovim] Take total number of tab pages into account ( #520 )
...
This fixes the problem where a new tab page is not closed when the
following configuration is used:
let g:fzf_layout = { 'window': 'execute (tabpagenr()-1)."tabnew"' }
8 years ago
Junegunn Choi
b47ab633e2
0.11.4
8 years ago
Junegunn Choi
09a2ab39fe
[bash] Fix shellcheck warnings
...
Close #516
8 years ago
Junegunn Choi
6cf54833f7
Fix flaky test case
8 years ago
Junegunn Choi
2ccdf21a1f
Add --hscroll-off=COL option
...
Close #513
8 years ago
Junegunn Choi
cf8afc527e
Remove .gitmodules
8 years ago
Junegunn Choi
1d6f05f974
[man] Fix invalid exit status in man page
...
Close #511
8 years ago
Junegunn Choi
85751966e9
Merge pull request #506 from justinmk/fixvarmismatch
...
[vim] s:callback: Always return list.
8 years ago
Justin M. Keyes
a7bc9d5351
s:callback: Always return list.
...
Fixes "E706: Variable type mismatch for: ret" when an exception is
caught.
8 years ago
Junegunn Choi
42c006d07c
Update install script to try "go get ..."
...
Related: #470 , #497
8 years ago
Junegunn Choi
1b9ca314b8
Update build script
...
- GOPATH is no longer required
- fzf repository does not have to be in GOPATH
- Build Linux binary with Go 1.5.3
8 years ago
Junegunn Choi
e72a360337
Minor refactoring
...
- Slightly more efficient processing of Options
- Do not return reference type arguments that are mutated inside the
function
- Use util.Constrain function when appropriate
8 years ago
Junegunn Choi
45108ddd53
Merge pull request #496 from noscript/master
...
Go 1.3 compatibility
8 years ago
Sergey Vlasov
e3401a0645
Go 1.3 compatibility
8 years ago
Junegunn Choi
26b9100709
Minor code cleanup
8 years ago
Junegunn Choi
a568120e42
Fix #494 - _fzf_complete hangs on zsh when not using tmux pane
8 years ago
Junegunn Choi
e57182c658
Merge pull request #488 from nhooyr/man-fix-redirect
...
[man] Remove useless `.R` macros
8 years ago
Anmol Sethi
6354dbbbdf
Removed the useless `.R` macros
...
If you do `man fzf > /dev/null`, you'll get the following output
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
`R' is a string (producing the registered sign), not a macro.
Removing these `.R` macros with a newline seems to have no effect on the
page but gets rid of the error.
8 years ago
Junegunn Choi
2b3e740569
[neovim] Fix error in finally block when callback failed
...
e.g. Opening another buffer when `set nohidden`
https://github.com/junegunn/fzf.vim/issues/77
8 years ago
Junegunn Choi
40d934e378
0.11.3
8 years ago
Junegunn Choi
e95d82748f
Use $SHELL to start $FZF_DEFAULT_COMMAND ( #481 )
8 years ago
Junegunn Choi
30bd0b53db
Fix #481 - Use $SHELL instead of sh in execute action
...
Note that $SHELL only points to the default shell instead of the current
shell. If you're on a non-default shell, you might want to override the
value like follows.
SHELL=zsh fzf --bind 'enter:execute:echo $ZSH_VERSION; sleep 1'
8 years ago
Junegunn Choi
1893eca41a
Handle SIGTERM gracefully ( #482 )
8 years ago
Junegunn Choi
82067463b8
[completion] _fzf_complete_COMMAND_post for post processing
...
e.g.
_fzf_complete_foo() {
_fzf_complete "--multi --reverse --header-lines=3" "$@" < <(
ls -al
)
}
_fzf_complete_foo_post() {
awk '{print $NF}'
}
[ -n "$BASH" ] && complete -F _fzf_complete_foo -o default -o bashdefault foo
9 years ago
Junegunn Choi
ce9c51d399
Typo
9 years ago
Junegunn Choi
96176476f3
Make fuzzy completion customizable with _fzf_compgen_{path,dir}
...
Notes:
- You can now override _fzf_compgen_path and _fzf_compgen_dir functions
to use custom commands such as ag instead of find for listing
completion candidates.
- The first argument is the base path to start traversal
- Removed file-only completion in bash, i.e. _fzf_file_completion.
Maintaining a list of commands that only expect files, not
directories, is cumbersome (there are too many) and error-prone.
TBD:
- Added $FZF_COMPLETION_DIR_COMMANDS to customize the list of commands
which use directory-only completion. The default is "cd pushd rmdir".
Not sure if it's the best approach to address the requirement, I'll
leave it as an undocumented feature.
Related: #406 (@thomcom), #456 (@frizinak)
9 years ago
Junegunn Choi
68c84264af
Update CHANGELOG
9 years ago
Junegunn Choi
69438a55ca
Update CHANGELOG: 0.11.2
9 years ago
Junegunn Choi
8695b5e319
Reduce the initial delay when --tac is not given
...
fzf defers the initial rendering of the screen up to 100ms if the input
stream is ongoing to prevent unnecessary redraw during the initial
phase. However, 100ms delay is quite noticeable and might give the
impression that fzf is not snappy enough. This commit reduces the
maximum delay down to 20ms when --tac is not specified, in which case
the input list quickly fills the entire screen.
9 years ago
Junegunn Choi
95970164ad
0.11.2
9 years ago
Junegunn Choi
f6c6e59a50
Add toggle-in and toggle-out for --bind
...
Related: #452
When `--multi` is set, tab key will bring your cursor down, and
shift-tab up. But since fzf by default draws the screen in bottom-up
fashion, one may feel that the opposite of the behavior is more
desirable and choose to customize the key bindings as follows.
export FZF_DEFAULT_OPTS="--bind tab:toggle-up,shift-tab:toggle-down"
This configuration, however, becomes no longer straightforward when
`--reverse` is set and fzf switches to top-down layout. To address the
requirement, this commit adds `toggle-in` and `toggle-out` option which
switch direction depending on `--reverse`-ness.
export FZF_DEFAULT_OPTS="--bind tab:toggle-out,shift-tab:toggle-in"
9 years ago
Junegunn Choi
45143f9541
Ignore leading whitespaces when calculating 'begin' index
9 years ago
Junegunn Choi
23244bb410
[fish] Fix intermittent errors on CTRL-T
...
This seems like a bug of fish, but sometimes when you select an item
fish complains:
"insertion mode switches can not be used when not in insertion mode"
This only happens when using tmux pane. Injecting a dummy command
somehow fixes the issue.
9 years ago
Junegunn Choi
edb647667e
Change temporary file names to fix flaky tests
9 years ago
Junegunn Choi
8d3a302a17
Simplify Item structure
...
This commit compensates for the performance overhead from the
extended tiebreak option.
9 years ago
Junegunn Choi
1d2d32c847
Accept comma-separated list of sort criteria
9 years ago
Junegunn Choi
d635b3fd3c
Update license: 2016
9 years ago
Junegunn Choi
0f281ef894
[vim] Try to make 'dir' option compatible with &autochdir
...
When 'dir' option is passed to fzf#run(), the current working directory
is temporarily changed to the given directory, and restored at the end.
However, this behavior is not compatible with &autochdir. This commit
introduces a heuristic to determine whether or not to restore the
previous working directory.
Related: https://github.com/junegunn/fzf.vim/issues/70
9 years ago
Junegunn Choi
b18db4733c
[vim] Do not restore working directory on unexpected cwd
...
We should not restore the previous working directory if the current
directory has changed somehow. This can happen when &autochdir is set.
9 years ago
Junegunn Choi
6e08fe337c
[nvim] setlocal nospell on terminal buffer
...
Close #469 . `setlocal nospell` should appear before `setf fzf` to allow
customization of the option.
9 years ago
Junegunn Choi
2a2c0a0957
[fzf-tmux] Turn off remain-on-exit option
...
Related: https://github.com/junegunn/fzf.vim/issues/67
9 years ago
Junegunn Choi
4230b6f3c9
[fzf-tmux] Fix #466 - Make fifos writable by other users
9 years ago
Junegunn Choi
aa171b45cb
Fix ubuntu-android target of Makefile
9 years ago
Junegunn Choi
661d06c90a
Add regression test case for #458
9 years ago
Junegunn Choi
a9aa263d3a
Merge pull request #458 from frizinak/fix-autocomplete-abs
...
Fix auto-completion for `/`
9 years ago
Kobe Lipkens
6208fc9cfd
Fix autocompletion for absolute paths
9 years ago
Junegunn Choi
e1dd798482
[bash/zsh-completion] List hidden files as well
...
Close #456 and #457
9 years ago
Junegunn Choi
c8a3f6f06a
Merge pull request #455 from frizinak/master
...
Pass FZF_DEFAULT_OPTS to non-interactive bash instance
9 years ago
Kobe Lipkens
3b9984379c
Pass FZF_DEFAULT_OPTS to non-interactive bash instance
9 years ago
Junegunn Choi
a1b60b1d42
Fix Travis CI build
...
The size of pseudo-terminal in Travis CI environment can be small
9 years ago
Junegunn Choi
b5850ebd4c
[vim] Open selected file in the current window if it's empty
...
Close #451
9 years ago
Junegunn Choi
ac0a62e494
Merge pull request #446 from chaoren/master
...
Fix CTRL-T in tmux
9 years ago
Chaoren Lin
54b4b0c56f
Dynamically select which __fzf_select__ to use for tmux with bash 4+.
...
Instead of choosing one at initialization, choose the correct one
when it's actually called, so that the behavior is correct even after
resizing.
Bonus fixes for tmux with bash 4+:
- No extra space when cancelling CTRL-T.
- Fix cursor position problem in vi mode.
9 years ago
Chaoren Lin
033afde3b5
Fix CTRL-T in tmux with non-standard configuration.
...
- Don't assume ~/.fzf.bash exists.
- Source the current script for __fzf_select__.
- Forward $PATH.
9 years ago
Junegunn Choi
a07944a5bb
Merge pull request #439 from pokey/master
...
Correct fzf-tmux tmux checking bug
9 years ago
Pokey Rule
32010055e1
Correct fzf-tmux tmux checking bug
9 years ago
Junegunn Choi
971ea2217c
Merge pull request #433 from pokey/master
...
Support fzf-tmux when zoomed
9 years ago
Pokey Rule
d513a210c6
Support fzf-tmux when zoomed
9 years ago
Junegunn Choi
a1db64e7b1
Unset GO15VENDOREXPERIMENT in linux build env ( #430 )
9 years ago
Junegunn Choi
0b9c4e1e74
Remove submodules and disable GO15VENDOREXPERIMENT ( #430 )
...
Having submodules causes vim-plug or other vim plugin managers to clone
them with no real benefit to the end-users. There's currently no
compelling reason for me to use submodules.
9 years ago
Junegunn Choi
248320fa55
0.11.1
9 years ago
Junegunn Choi
d4e26707c7
GO15VENDOREXPERIMENT=1 ( #430 )
9 years ago
Junegunn Choi
99ea1056ac
Add --tabstop option
...
Related: https://github.com/junegunn/fzf.vim/issues/49
9 years ago
Junegunn Choi
7bcf4effa5
Fix test failure - use absolute path
9 years ago
Junegunn Choi
e1df876b61
Merge pull request #380 from acornejo/android
...
Add android build: `make android`
9 years ago
Alex Cornejo
28ffb9638d
add android build
9 years ago
Junegunn Choi
1c20255504
Fix typos in help message
...
Close #425 . Thanks to @blueyed.
9 years ago
Junegunn Choi
1fd884b34f
Merge pull request #423 from blueyed/zsh-fzf-completion-localoptions
...
zsh: fzf-completion: use noshwordsplit local option
9 years ago
Daniel Hahler
701687faab
zsh: fzf-completion: use noshwordsplit local option
...
This also fixes the completion causing a bell / flickering in case
"shwordsplit" was not set, because then the function would return false.
9 years ago
Junegunn Choi
bbc3055feb
Merge pull request #421 from blueyed/zsh-completion-grep-command
...
zsh completion: use \grep to skip any alias
9 years ago
Daniel Hahler
95c69083c7
zsh completion: use \grep to skip any alias
9 years ago
Junegunn Choi
57a37b5832
[bash-completion] Fix #417 - Update command list
9 years ago
Junegunn Choi
d29ae1c462
[install] Add --32 / --64 options
...
Related: #373
9 years ago
Junegunn Choi
df468fc482
0.11.0
9 years ago
Junegunn Choi
31278bcc68
Fix compatibility issues with OR operator and inverse terms
9 years ago
Junegunn Choi
e7e86b68f4
Add OR operator
...
Close #412
9 years ago
Junegunn Choi
a89d8995c3
Add execute-multi action
...
Close #413
9 years ago
Junegunn Choi
dbc854d5f4
Handle wide unicode characters in --prompt
9 years ago
Junegunn Choi
f1cd0e2daf
[zsh] Fix #404 - Escape $ in $LBUFFER
9 years ago
Junegunn Choi
90d32bd756
[install] Fix #414 - Respect $ZDOTDIR
9 years ago
Junegunn Choi
e99731ea85
[shell] Add FZF_ALT_C_COMMAND for ALT-C ( #408 )
9 years ago
Junegunn Choi
15659ac6e6
Merge pull request #409 from freitass/master
...
[bash-completion] Add nvim to f_cmds
9 years ago
Leandro Freitas
3ef41845a9
[bash-completion] Add nvim to f_cmds
9 years ago
Junegunn Choi
c84e681581
Merge pull request #403 from JackDanger/not-relying-on-exit-status-for-ctrl-r
...
Not relying on exit status for CTRL-R
Patch submitted by @robinro and @JackDanger
Close #403 #242 #241 #203
9 years ago
Jack Danger Canty
c3cf3427b1
Not relying on exit status for CTRL-R
...
In the case that fzf-tmux returns a user-selected result but with a
non-zero exit status (which can happen if a function inside $PS1 returns
non-zero) this allows CTRL-R to continue working as expected.
Addresses #203 (Tranquility's comment)
9 years ago
Junegunn Choi
2c4f71d85b
[zsh] fzf-history-widget - update local declaration
9 years ago
Junegunn Choi
c6328affae
Update extended-search mode section of README
9 years ago
Junegunn Choi
aaef18295d
Update FZF_DEFAULT_COMMAND example
9 years ago
Junegunn Choi
14f0d2035e
Update Homebrew instructions
9 years ago
Junegunn Choi
64afff6b9a
0.10.9
9 years ago
Junegunn Choi
6bddffbca4
Setup signal handlers before ncurses initialization
...
This prevents fzf from missing SIGWINCH during startup which
occasionally happens with fzf-tmux
9 years ago
Junegunn Choi
81a88693c1
Make --extended default
...
Close #400
9 years ago
Junegunn Choi
68541e66b7
[man] double-click for --bind ( #374 )
9 years ago
Junegunn Choi
672b593634
Update FZF_DEFAULT_COMMAND example ( #310 )
9 years ago
Junegunn Choi
5769d3867d
[nvim] setf fzf
9 years ago
Junegunn Choi
724ffa3756
[install] Do not download binary if it's found in $PATH ( #373 )
...
/cc @xconstruct
9 years ago
Junegunn Choi
5694b5ed30
Fix #394 - --bin option is broken
9 years ago
Junegunn Choi
a1184ceb4e
Fix travis CI build
9 years ago
Junegunn Choi
02203c7739
Add command-line flags to install script
...
Close #392
usage: ./install [OPTIONS]
--help Show this message
--bin Download fzf binary only
--all Download fzf binary and update configuration files
to enable key bindings and fuzzy completion
--[no-]key-bindings Enable/disable key bindings (CTRL-T, CTRL-R, ALT-C)
--[no-]completion Enable/disable fuzzy completion (bash & zsh)
--[no-]update-rc Whether or not to update shell configuration files
9 years ago
Junegunn Choi
4d709e0dd2
Fix #391 - Strip non-printable characters
9 years ago
Junegunn Choi
ae04f56dbd
Fix --bind "double-click:execute(...)" ( #374 )
9 years ago
Junegunn Choi
f80ff8c917
Add bindable double-click event ( #374 )
9 years ago
Junegunn Choi
b4ce89bbf5
[build] Link libncursesw when building 64-bit linux binary
...
Close #376
9 years ago
Junegunn Choi
486b87d821
[bash-completion] Retain original completion options ( #288 )
9 years ago
Junegunn Choi
b3010a4624
0.10.8
9 years ago
Junegunn Choi
7d53051ec8
Merge pull request #371 from wilywampa/edit_directory
...
Trigger netrw autocommand when opening directory
9 years ago
Jacob Niehus
ed893c5f47
Trigger netrw autocommand when opening directory
9 years ago
Junegunn Choi
a4eb3323da
Fix #370 - Panic when trying to set colors when colors are disabled
9 years ago
Junegunn Choi
1da065e50e
0.10.7
9 years ago
Junegunn Choi
86bc9d506f
Fix invalid interrupt handler during execute action
...
Interrupt handling during execute action was not serialized and often
caused crash, failed to restore the terminal state.
9 years ago
Junegunn Choi
eee45a9578
[completion] Revamp completion API
...
* _fzf_complete is the helper function for custom completion
* _fzf_complete FZF_OPTS ARGS
* Reads the output of the source command instead of the command string
* In zsh, you can use pipe to feed the data into the function, but
it's not possible in bash as by doing so COMPREPLY is set from the
subshell and thus nullified
* Change the naming convention for consistency:
* _fzf_complete_COMMAND
e.g.
# pass completion suggested by @d4ndo (#362 )
_fzf_complete_pass() {
_fzf_complete '+m' "$@" < <(
local pwdir=${PASSWORD_STORE_DIR-~/.password-store/}
local stringsize="${#pwdir}"
find "$pwdir" -name "*.gpg" -print |
cut -c "$((stringsize + 1))"- |
sed -e 's/\(.*\)\.gpg/\1/'
)
}
# Only in bash
complete -F _fzf_complete_pass -o default -o bashdefault pass
9 years ago
Junegunn Choi
659f49a09a
[fzf-tmux] Create temp files in $TMPDIR if defined
9 years ago
Junegunn Choi
8fa9e85980
[zsh-completion] Allow custom completion function
...
While in bash you can externally register custom completion functions
using `complete` command, it was not possible to do so in zsh without
changing completion.zsh as the name of the supported commands are
hard-coded within the code (See #362 ). With this commit, fzf-completion
of zsh will first look if `_fzf_COMMAND_completion` exists and calls the
function, so one can externally define completion functions for specific
commands.
This commit also tries to make the interface of (yet undocumented)
_fzf_list_completion helper function consistent across bash and zsh.
So the following code works both on bash and zsh.
_fzf_pass_completion() {
local pwdir=${PASSWORD_STORE_DIR-~/.password-store/}
local stringsize="${#pwdir}"
let "stringsize+=1"
_fzf_list_completion '+m' "$@" << "EOF"
find "$pwdir" -name "*.gpg" -print | cut -c "$stringsize"- | sed -e 's/\(.*\)\.gpg/\1/'
EOF
}
# Only on bash
complete -F _fzf_pass_completion -o default -o bashdefault pass
Note that the suggested convention and the interface are not yet final
and subject to change.
/cc @d4ndo
9 years ago
Junegunn Choi
92a75c9563
Use trimmed length when --nth is used with --tiebreak=length
...
This change improves sort ordering for aligned tabular input.
Given the following input:
apple juice 100
apple pie 200
fzf --nth=2 will now prefer the one with pie. Before this change fzf
compared "juice " and "pie ", both of which have the same length.
9 years ago
Junegunn Choi
7c7a30c472
Merge pull request #364 from halostatue/use-zsh-regex-module
...
Remove dependency on zsh/pcre module
9 years ago
Austin Ziegler
ea271cd4e2
Remove dependency on zsh/pcre module
...
Fixes #363 .
9 years ago
Junegunn Choi
6a38d07a4c
Merge pull request #361 from justinmk/swapexists
...
[vim] handle SwapExists
9 years ago
Justin M. Keyes
c4e5ee63bb
[vim] handle SwapExists
...
The SwapExists dialog prevents multiple files from being opening if the
dialog occurs before all files are opened. Opening the files is more
important than showing the dialog, so choose "readonly" automatically
and continue opening files.
9 years ago
Junegunn Choi
862da2c0b1
[vim] Consistent exit status handling
9 years ago
Junegunn Choi
545370d2b3
Merge branch 'jebaum-master'
9 years ago
James Baumgarten
59220c63a6
[vim] handle exit status 1 properly ( #359 )
9 years ago
Junegunn Choi
86306dd45a
[vim] Display proper error message when GVim launcher failed
...
Related: https://github.com/junegunn/fzf.vim/issues/16
9 years ago
Junegunn Choi
98d2bfa0db
[install] Terminate install script when failed to update shell config
...
Close #354
9 years ago
Junegunn Choi
aec48f159b
[neovim] Remove redraw! hack that is no longer needed
9 years ago
Junegunn Choi
ad7e433a7d
Use build tags to enable static linking
9 years ago
Junegunn Choi
5a60aa5050
[vim] Display proper error message when command failed
9 years ago
Junegunn Choi
ebea470875
Build linux binary on Centos
9 years ago
Junegunn Choi
d980e00961
Revert "Revert "0.10.6""
...
This reverts commit 987799f8fb
.
9 years ago
Junegunn Choi
987799f8fb
Revert "0.10.6"
...
This reverts commit d2f3604c1d
.
9 years ago
Junegunn Choi
d2f3604c1d
0.10.6
9 years ago
Junegunn Choi
72cc558fdc
Fix travis CI build
9 years ago
Junegunn Choi
6bc3fe6e67
Build partially-static binary for linux ( #350 )
...
Instead of building a separate statically-linked binary, build
partially-static binary that only contains ncurses to avoid
compatibility issues in libc.
9 years ago
Junegunn Choi
9398878048
[fzf-tmux] Exit with the same exit status as with fzf
9 years ago
Junegunn Choi
ca19762e58
Exit status 130 when fzf is terminated by the user
...
Related: #345
9 years ago
Junegunn Choi
8764be07e2
[vim] Ignore exit status of 2 ( #345 )
9 years ago
Junegunn Choi
2022a3ad96
Replace --header-file with --header ( #346 )
...
and allow using --header and --header-lines at the same time.
Close #346 .
9 years ago
Junegunn Choi
65d9d416b4
Change exit status (0: OK, 1: No match, 2: Error/Interrupted)
...
A la grep. Close #345
9 years ago
Junegunn Choi
fa2f9f1f21
Remove flattr badge
9 years ago
Junegunn Choi
c656cfbdce
Update doc
9 years ago
Junegunn Choi
de829c0938
0.10.5
9 years ago
Junegunn Choi
64443221aa
Fix #344 - Backward scan when `--tiebreak=end`
9 years ago
Junegunn Choi
9017e29741
Make it possible to unquote the term in extended-exact mode
...
Close #338
9 years ago
Junegunn Choi
0a22142d88
[fzf-tmux] Fix #343 - Escape backticks in --query
9 years ago
Junegunn Choi
ac160f98a8
[gvim] Fix #342 - Should not escape launcher part of the command
9 years ago
Junegunn Choi
62e01a2a62
[vim] Escape newline character when running fzf with :!
...
Fixes Helptags! command from fzf.vim
9 years ago
Junegunn Choi
5660cebaf6
[zsh-completion] Temporarily unset shwordsplit ( #328 )
9 years ago
Junegunn Choi
a7e588ceac
Merge pull request #336 from fazibear/fix-fish-streams
...
Fix CTRL-T on fish to work asynchronously
9 years ago
Michał Kalbarczyk
5baf1c5536
fix fish streams
9 years ago
Junegunn Choi
9a2d9ad947
0.10.4
9 years ago
Junegunn Choi
90b0cd44ac
Should not strip ANSI codes when --ansi is not set
9 years ago
Junegunn Choi
698e8008df
[vim] Dynamic height specification for 'up' and 'down' options
...
Values for 'up' and 'down' can be written with ~ prefix. Only applies
when the source is a Vim list.
e.g. { 'source': range(10), 'down': '~40%' }
9 years ago
Junegunn Choi
1de4cc3ba8
[install] Fall back statically-linked binary on 64-bit linux
...
Close #322
9 years ago
Junegunn Choi
0d66ad23c6
Fix build script
9 years ago
Junegunn Choi
7f7741099b
make linux-static ( #322 )
9 years ago
Junegunn Choi
5a72dc6922
Fix #329 - Trim ANSI codes from output when --ansi & --with-nth are set
9 years ago
Junegunn Choi
80ed02e72e
Add failing test case for #329
9 years ago
Junegunn Choi
8fb31e1b4d
[vim] Escape % and # when running source command with :!
9 years ago
Junegunn Choi
148f21415a
Mention fzf.vim project
9 years ago
Junegunn Choi
1c31e07d34
[install] Improve error message
9 years ago
Junegunn Choi
55d566b72f
Revert "[vim] Open silently"
...
This reverts commit c601fc6437
.
9 years ago
Junegunn Choi
60336c7423
Remove Vim examples from README.md
9 years ago
Junegunn Choi
7ae877bd3a
[vim] Handle single/double quote characters in 'dir' option
9 years ago
Junegunn Choi
c601fc6437
[vim] Open silently
9 years ago
Junegunn Choi
e5fec408c4
[vim] tab split instead of tabedit
9 years ago
Junegunn Choi
8156e9894e
0.10.3
9 years ago
Junegunn Choi
cacc212f12
[install] Prerelease of 0.10.3
9 years ago
Junegunn Choi
d0f2c00f9f
Fix --with-nth performance; use simpler regular expression
...
Related #317
9 years ago
Junegunn Choi
766427de0c
Fix --with-nth performance; avoid regex if possible
...
Close #317
9 years ago
Junegunn Choi
a7b75c99a5
[install] Stop installer when failed to download the binary
...
Close #312
9 years ago
Junegunn Choi
bae10a6582
[install] Add an extra new line character
...
so that it doesn't corrupt file that doesn't end with a new line
character. Close #311 .
9 years ago
Junegunn Choi
c4cf90a3d2
0.10.2
9 years ago
Junegunn Choi
15c49a3e08
Fix race condition
9 years ago
Junegunn Choi
ae87f6548a
GoLint
9 years ago
Junegunn Choi
7833fa7396
[install] Always download binary when --pre is set
9 years ago
Junegunn Choi
9278f3acd2
[install] Add --pre option for downloading prerelease binary
9 years ago
Junegunn Choi
e83ae34a3b
Update CHANGELOG - 0.10.2
9 years ago
Junegunn Choi
e13bafc1ab
Performance fix - unnecessary rune convertion on --ansi
...
> time cat /tmp/list | fzf-0.10.1-darwin_amd64 --ansi -fqwerty > /dev/null
real 0m4.364s
user 0m8.231s
sys 0m0.820s
> time cat /tmp/list | fzf --ansi -fqwerty > /dev/null
real 0m4.624s
user 0m5.755s
sys 0m0.732s
9 years ago
Junegunn Choi
0ea66329b8
Performance tuning - eager rune array conversion
...
> wc -l /tmp/list2
2594098 /tmp/list2
> time cat /tmp/list2 | fzf-0.10.1-darwin_amd64 -fqwerty > /dev/null
real 0m5.418s
user 0m10.990s
sys 0m1.302s
> time cat /tmp/list2 | fzf-head -fqwerty > /dev/null
real 0m4.862s
user 0m6.619s
sys 0m0.982s
9 years ago
Junegunn Choi
634670e3ea
Lint
9 years ago
Junegunn Choi
dea60b11bc
Only consider the lengths of the relevant parts when --nth is set
9 years ago
Junegunn Choi
5e90f0a57b
Fix default command so that it doesn't fail on dash-prefixed files
...
Close #310
9 years ago
Junegunn Choi
0b4542fcdf
[vim] Temporarily disable &autochdir when opening files ( #306 )
9 years ago
Junegunn Choi
02bd2d2adf
Do not proceed if $TERM is invalid
...
Related #305
9 years ago
Junegunn Choi
dce6fe6f2d
[fzf-tmux] Ensure that the same $TERM value is used in split
...
Fix #305 . ncurses can crash on invalid $TERM. fzf-tmux uses bash on
a new pane so we have to make sure that the $TERM is consistent with
that of the hosting shell.
9 years ago
Junegunn Choi
fcae99f09b
No need to "tmux list-panes" when obviously not on tmux ( #303 )
9 years ago
Junegunn Choi
fb1b026d3d
Always check if the pane is zoomed
...
Close #303
9 years ago
Junegunn Choi
9f953fc944
Do not use tmux pane if the current pane is zoomed
...
Close #303
9 years ago
Junegunn Choi
909ea1a698
0.10.1
9 years ago
Junegunn Choi
7231acd442
Fix mouse scroll when --margin is set
9 years ago
Junegunn Choi
7814371a9a
Revert "0.10.1"
...
This reverts commit 6166e2dd80
.
9 years ago
Junegunn Choi
6166e2dd80
0.10.1
9 years ago
Junegunn Choi
ee0c8a2635
Add --margin option
...
Close #299
9 years ago
Junegunn Choi
2bebddefc0
Do not print the entire --help on invalid option
9 years ago
Junegunn Choi
fdbf3d3fec
Replace eof action with cancel ( #289 )
9 years ago
Junegunn Choi
f9136cffe6
Update man page
9 years ago
Junegunn Choi
51d84b1869
[bash] Update fzf option completion
9 years ago
Junegunn Choi
13e040baee
Bind CTRL-D to the new delete-char/eof action
...
- CTRL-D - delete-char/eof
- DEL - delete-char
9 years ago
Junegunn Choi
cc0d5539ba
Add "eof" action which closes the finder only when input is empty
...
Close #289
9 years ago
Junegunn Choi
b53f61fc59
Remove cbreak before raw
9 years ago
Junegunn Choi
4e0e03403e
Fix --header-lines unaffected by --with-nth
9 years ago
Junegunn Choi
928fccc15b
Fix header not shown when the lines go beyond the screen limit
9 years ago
Junegunn Choi
bbaa3ab8bd
Update CHANGELOG
9 years ago
Junegunn Choi
5e3cb3a4ea
Fix ANSI processor to handle multi-line regions
9 years ago
Junegunn Choi
f71ea5f3ea
Add test cases for header and fix corner cases
9 years ago
Junegunn Choi
f469c25730
Add --header-lines option
9 years ago
Junegunn Choi
18469b6954
Adjust header color for dark color scheme
9 years ago
Junegunn Choi
d01db4862b
Update documentation
9 years ago
Junegunn Choi
8b2adba8d6
Redraw of header on resize
9 years ago
Junegunn Choi
d459e9abce
Add --header-file option
9 years ago
Junegunn Choi
c9abe1b1ff
Show more specific error message on invalid binding
9 years ago
Junegunn Choi
a0e6147bb5
Fix #292 - Allow binding of colon and comma
9 years ago
Junegunn Choi
b0f491d3c3
Fix travis CI build
...
- Fix test failures on new fish 2.2.0
- Make timeout-based test cases more robust
9 years ago
Junegunn Choi
392da53f53
[bash] Make CTRL-R work when histexpand is unset ( #286 )
...
Note that it still can't handle properly multi-line commands.
Thanks to @jpcirrus for the bug report and the fix.
9 years ago
Junegunn Choi
ae72b0fb70
Merge pull request #285 from evverx/possible-retry-loop
...
[bash-completion] Fix g++: possible retry loop
9 years ago
Evgeny Vereshchagin
a79d080ea8
Fix g++: possible retry loop
...
See http://unix.stackexchange.com/q/213432/120177
9 years ago
Junegunn Choi
ec85fd552d
Update README - how to use `ag` with CTRL-T
9 years ago
Junegunn Choi
11db046fc7
[neovim] Fix #281 - Properly close window with winnr 1
9 years ago
Junegunn Choi
938151a834
[shell] Add FZF_CTRL_T_COMMAND for CTRL-T
...
Close #40
9 years ago
Junegunn Choi
14e3b84073
[zsh] No need to define __fsel in non-interactive shell
...
Since we now use fzf-tmux instead of tmux split-window
9 years ago
Junegunn Choi
56100f0fa7
[bash] Use `command \find` for ALT-C
...
ALT-C can fail with the following aliases as pointed out in #272
alias find='noglob find'
alias command='command '
9 years ago
Junegunn Choi
5254ee2e2a
Update documentation ( #277 )
9 years ago
Junegunn Choi
355d004895
[neovim] Fix error with {'window': 'enew'} ( #274 )
9 years ago
Junegunn Choi
a336494f5d
0.10.0
9 years ago
Junegunn Choi
8270f7f0ca
Rename --null to --read0 and undocument the option
...
`--null` is ambiguous. For completeness' sake, we need both `--read0`
and `--print0`.
`--read0` only makes sense when the input contains multiline entries.
However, fzf currently cannot correctly display multiline entries,
I'm going to make `--read0` an undocumented feature.
9 years ago
Junegunn Choi
638a956a9e
Merge pull request #272 from okapia/zsh-simplify
...
Use vi-fetch-history on zsh to get history line
9 years ago
Oliver Kiddle
d395ebd28f
use vi-fetch-history on zsh to get history line
...
In addition to being simpler, it allows subsequent up/down history
or accept-line-and-down-history widgets to work.
Also allow for find being and alias if alias expansion
after command is enabled.
9 years ago
Junegunn Choi
c0d3faa84f
Hide --toggle-sort from --help output
...
Since the same can be now achieved with --bind KEY:toggle-sort
9 years ago
Junegunn Choi
3492c8b780
Rename --history-max to --history-size
...
Considering HISTSIZE and HISTFILESIZE of bash
9 years ago
Junegunn Choi
a8b2c257cd
Improve handling of key names
...
Remember the exact string given as the key name so that it's possible to
correctly handle synonyms and print the original string.
9 years ago
Junegunn Choi
5e8d8dab82
More key names for --bind
9 years ago
Junegunn Choi
b504c6eb39
Avoid intermittent test failures
...
by making sure that we're back on shell command-line
9 years ago
Junegunn Choi
d261c36cde
Keep the spinner spinning even when the source stream is idle
9 years ago
Junegunn Choi
fe4e452d68
Add --cycle option for cyclic scrolling
...
Close #266
9 years ago
Junegunn Choi
d54a4fa223
Add key name "bspace" for --bind (bspace != ctrl-h)
9 years ago
Junegunn Choi
45bd323cab
Allow binding CTRL-G and CTRL-Q
9 years ago
Junegunn Choi
8677dbded1
Change alternative notation for execute action ( #265 )
...
e.g. fzf --bind "ctrl-m:execute:COMMAND..." --bind ctrl-j:accept
9 years ago
Junegunn Choi
794ad5785d
Fix `.` to match newlines as well ( #265 )
9 years ago
Junegunn Choi
fa5b58968e
Add alternative execute notation that does not require closing char
...
This can be used to avoid parse errors that can happen when the command
contains the closing character. Since the command does not finish at
a certain character, the key binding should be the last one in the
group. Suggested by @tiziano88. (#265 )
e.g. fzf --bind "ctrl-m:execute=COMMAND..." --bind ctrl-j:accept
9 years ago
Junegunn Choi
e720f56ea8
Fix test code for docker build
9 years ago
Junegunn Choi
7db53e6459
Add synonyms for some keys to be used with --bind and --toggle-sort
...
enter (return), space, tab, btab, esc, up, down, left, right
9 years ago
Junegunn Choi
e287bd7f04
Fix Travis CI build
9 years ago
Junegunn Choi
022435a90a
More alternative notations for execute action
...
execute(...)
execute[...]
execute~...~
execute!...!
execute@...@
execute#...#
execute$...$
execute%...%
execute^...^
execute&...&
execute*...*
execute:...:
execute;...;
execute/.../
execute|...|
9 years ago
Junegunn Choi
6c99cc1700
Add bind action for executing arbitrary command ( #265 )
...
e.g. fzf --bind "ctrl-m:execute(less {})"
fzf --bind "ctrl-t:execute[tmux new-window -d 'vim {}']"
9 years ago
Junegunn Choi
fe5b190a7d
Remove unnecessary regexp matches
...
This change does have positive effect on startup time of fzf when many
number of options are provided.
time fzf --query=____ --filter=____ --delimiter=q --prompt=________ \
--nth=1,2,3,4 --with-nth=1,2,3,4 --toggle-sort=ctrl-r \
--expect=ctrl-x --tiebreak=index --color=light --bind=ctrl-t:accept \
--history=/tmp/xxx --history-max=1000 --help
0m0.013s -> 0m0.008s
9 years ago
Junegunn Choi
77bab51696
GoLint fix
9 years ago
Junegunn Choi
77048f3e3b
Fix Travis CI build
9 years ago
Junegunn Choi
8b618f7439
Test refactoring
9 years ago
Junegunn Choi
8973207bb4
Fix Travis CI build
9 years ago
Junegunn Choi
6ad1736832
Fix ignore action
9 years ago
Junegunn Choi
9fca611c4a
Add `ignore` action for --bind
9 years ago
Junegunn Choi
8e7164553f
Add missing files from the previous commit
...
:(
9 years ago
Junegunn Choi
3b52811796
Add support for search history
...
- Add `--history` option (e.g. fzf --history ~/.fzf.history)
- Add `--history-max` option for limiting the size of the file (default 1000)
- Add `previous-history` and `next-history` actions for `--bind`
- CTRL-P and CTRL-N are automatically remapped to these actions when
`--history` is used
Closes #249 , #251
9 years ago
Junegunn Choi
2e84b1db64
Merge pull request #264 from kassio/master
...
Do not rename terminal buffer
9 years ago
Kassio Borges
9f33068ab3
Avoid conflict with other neoterm plugins.
...
To avoid conflict with other neoterm plugins that manage terminals,
prefer named terminals.
9 years ago
Junegunn Choi
eaa3c67a5e
Add actions for --bind: select-all / deselect-all / toggle-all
...
Close #257
9 years ago
Junegunn Choi
1b9b1d15bc
Adjust --help output
9 years ago
Junegunn Choi
97f433a274
Merge branch 'dullgiulio-121-accept-nil-input'
9 years ago
Junegunn Choi
45a3655eaf
Add test case for --null option
9 years ago
Junegunn Choi
81ffde92fb
Merge branch '121-accept-nil-input' of https://github.com/dullgiulio/fzf into dullgiulio-121-accept-nil-input
9 years ago
Junegunn Choi
0be4cead20
Allow ^EqualMatch$
9 years ago
Giulio Iotti
f6dd32046e
add support to nil-byte separated input strings, closes #121
9 years ago
Junegunn Choi
443a80f254
Always use the same color for multi-select markers
9 years ago
Junegunn Choi
8017635a71
Merge pull request #252 from dominikh/portable-swapOutput
...
Use ncurses's newterm instead of swapping stdout and stderr
9 years ago
Dominik Honnef
98f62b191a
Use ncurses's newterm instead of swapping stdout and stderr
9 years ago
Junegunn Choi
52771a6226
0.9.13
9 years ago
Junegunn Choi
b00bcf506e
Fix #248 - Premature termination of Reader on long input
9 years ago
Junegunn Choi
fdbfe36c0b
Color customization ( #245 )
9 years ago
Junegunn Choi
446e822723
Update CHANGELOG
9 years ago
Junegunn Choi
b68e59a24b
Fix ANSI offset calculation
9 years ago
Junegunn Choi
4e0e492427
Minor refactoring
9 years ago
Junegunn Choi
8f99f8fcc6
More test cases for --bind
9 years ago
Junegunn Choi
3cdf71801e
Update --help
9 years ago
Junegunn Choi
801cf9ac62
Add unbound "toggle" action for customization
9 years ago
Junegunn Choi
34946b72a5
0.9.12
9 years ago
Junegunn Choi
1592bedbe8
Custom key binding support ( #238 )
9 years ago
Junegunn Choi
15099eb13b
Remove duplicate processing of command-line options
9 years ago
Junegunn Choi
c511b45ff6
Minor tweak in test case
...
It may take long for find command to spot the temporary file created on
the home directory
9 years ago
Junegunn Choi
40761b11b1
[bash] Ignore asterisk (modified) in history
9 years ago
Junegunn Choi
cca543d0cd
[zsh-completion] Fix #236 - zle redisplay
9 years ago
Junegunn Choi
34e5e2dd82
[vim] Use close+bufhidden=wipe instead of bd
9 years ago
Junegunn Choi
2b7c3df66b
[neovim] Check tabpagenr() as well
9 years ago
Junegunn Choi
f766531e74
[neovim] Make sure that fzf buffer is closed ( #225 )
...
- bd! leaves the window open when there's no other listed buffer
- redraw! seems to help avoid Neovim issues.
9 years ago
Junegunn Choi
7f59b42b05
[vim] Escape % # \
9 years ago
Junegunn Choi
f41de932d6
[vim] Refocus MacVim window
9 years ago
Junegunn Choi
b4a05ff27e
[bash] CTRL-R to use history-expand-line
...
Close #146
9 years ago
Junegunn Choi
3b91467941
Suppress error message when loading completion.{zsh,bash}
...
Temporary workaround for https://github.com/Homebrew/homebrew/issues/39669
9 years ago
Junegunn Choi
26d2af5ee8
[zsh-completion] Respect backslash-escaped spaces ( #230 )
9 years ago
Junegunn Choi
2b61dc6557
[zsh-completion] Do not overwrite $fzf_default_completion
9 years ago
Junegunn Choi
0b770cd48a
[zsh-completion] Remember what ^I was originally bound to ( #230 )
9 years ago
Junegunn Choi
c14aa99ef6
[zsh/bash-completion] Avoid caret expansion
...
Close #233
setopt extendedglob on zsh caused caret in grep pattern to be expanded.
Problem identified and patch submitted by @lazywei.
9 years ago
Junegunn Choi
8f371ee81c
[zsh-completion] fzf-zsh-completion -> fzf-completion
9 years ago
Junegunn Choi
3b63b39810
[zsh-completion] Allow empty prefix & trigger sequence ( #232 )
9 years ago
Tiziano Santoro
0cd238700c
[zsh-completion] Add comment clarifying trigger expansion. ( #230 )
9 years ago
Tiziano Santoro
14fbe06d9e
[zsh-completion] Allow specifying empty completion trigger. ( #230 )
9 years ago
Junegunn Choi
64949bf467
[bash-completion] Allow specifying empty completion trigger ( #230 )
9 years ago
Junegunn Choi
732f133940
[test] Make sure to kill background process
9 years ago
Junegunn Choi
5dc4df9570
Fix test cases
9 years ago
Junegunn Choi
7dde8dbbd9
Merge pull request #231 from robinro/head-argument-typo
...
[zsh] `head -n1` instead of `head -1`
9 years ago
Robin Roth
01405ad92e
fix typo in argument of head
...
at least my version of head wants -n1 to only display the first line
9 years ago
Junegunn Choi
683abb86ef
Dump screen content on test failure
9 years ago
Junegunn Choi
207aa07891
[zsh-completion] Temporarily set nonomatch ( #230 )
...
No error on ~INVALID_USERNAME**<TAB>
9 years ago
Junegunn Choi
26a141c6a6
[zsh-completion] Fix `~USERNAME**` ( #230 )
9 years ago
Junegunn Choi
dc64568c83
[zsh-completion] Completion for unknown commands
9 years ago
Junegunn Choi
f4a595eedd
Fix Travis CI build
9 years ago
Junegunn Choi
5a17a6323a
[zsh-completion] "\find" to bypass alias
9 years ago
Junegunn Choi
2b8e445321
Fuzzy completion for zsh ( #227 )
9 years ago
Junegunn Choi
315499b1d4
Merge pull request #229 from sullyj3/master
...
fix typo in README.md
9 years ago
James Sully
65a2bdb01d
fix typo in README.md
9 years ago
Junegunn Choi
ed8202efc6
[bash-completion] Ignore 0.0.0.0
...
Close #228
9 years ago
Junegunn Choi
0937bd6c16
[vim] Improve binary detection
...
/cc @alerque
- Ask for user confirmation before running `install --bin`
- Removed `s:fzf_rb` since `install --bin` will create a wrapper
executable that just runs Ruby version on the platforms where prebuilt
binaries are not available.
9 years ago
Junegunn Choi
3d26b5336c
[vim] Fix #220 - Prevent error after update
9 years ago
Junegunn Choi
c8f208b96b
Merge pull request #171 from oschrenk/vi-insert-mode-key-bindings-fish
...
Support for vi insert mode in upcoming fish 2.2.0
9 years ago
Oliver Schrenk
2e339e49b8
Support for vi insert mode in upcoming fish 2.2.0
9 years ago
Junegunn Choi
5d9107fd15
Print info after prompt on redraw
...
This fixes the issue where "inline-info" is not immediately rendered
when the terminal is resized.
9 years ago
Junegunn Choi
4b7c571575
Fix race condition in test case
9 years ago
Junegunn Choi
5502b68a1d
Test refactoring
9 years ago
Junegunn Choi
5794fd42df
Fix test code
9 years ago
Junegunn Choi
9c6e46ab15
[fzf-tmux] Fix #215 - Prepend env to avoid error on fish
9 years ago
Junegunn Choi
09d0ac0347
[vim] Update default launcher for GVim ( #212 )
...
Code submitted by @lydell
9 years ago
Junegunn Choi
22ae7adac8
Update completion for fzf itself
9 years ago
Junegunn Choi
36924d0b1c
[zsh] Do not change LBUFFER on empty selection (CTRL-R)
9 years ago
Junegunn Choi
6ed9de9051
[zsh] Temporarily unset no_bang_hist for CTRL-R
...
Close #214
9 years ago
Junegunn Choi
857619995e
[vim] Ignore E325 ( #213 )
9 years ago
Junegunn Choi
9310ae28ab
[vim] Redraw screen after running fzf on tmux pane ( #213 )
9 years ago
Junegunn Choi
27e26bd1ea
[vim] Add g:Fzf_launcher for funcrefs ( #212 )
9 years ago
Junegunn Choi
305ec3b3ce
[fish] Remove buffering delay by not using subroutines
...
Close #169
9 years ago
Junegunn Choi
f4fe93338b
Update README
9 years ago
Junegunn Choi
3b84c80d56
Update README
9 years ago
Junegunn Choi
5e120e7ab5
Update man page
9 years ago
Junegunn Choi
a4cf5510e3
0.9.11
9 years ago
Junegunn Choi
edb5ab5622
Update test cases for #203
9 years ago
Junegunn Choi
06b4f75680
Fix broken FZF_TMUX switch and update test cases ( #203 )
9 years ago
Junegunn Choi
318edc8c35
Apply fzf-tmux to key bindings ( #203 )
...
Note that CTRL-T on bash is still using the old trick of send-keys.
9 years ago
Junegunn Choi
651a8f8cc2
Add --inline-info option
...
Close #202
9 years ago
Junegunn Choi
9f64a00549
Fix double-click result when scroll offset is positive
9 years ago
Junegunn Choi
a88bf87e2a
Update test case
9 years ago
Junegunn Choi
e82eb27787
Smart-case for each term in extended-search mode
...
Close #208
9 years ago
Junegunn Choi
3f0e6a5806
Fix #209 - Invalid mutation of input on case conversion
9 years ago
Junegunn Choi
917b1759b0
[fzf-tmux/vim] Fixes for fish ( #204 )
9 years ago
Junegunn Choi
16ca9c688b
Revert "[fzf-tmux] Fix #204 - Escape command substitution"
...
This reverts commit 7b6a27cb5e
.
9 years ago
Junegunn Choi
7b6a27cb5e
[fzf-tmux] Fix #204 - Escape command substitution
9 years ago
Junegunn Choi
869a234938
[fzf-tmux] Use bash instead of sh ( #204 )
...
The default shell can be a non-standard shell (e.g. fish)
9 years ago
Junegunn Choi
537d07c1e5
[vim] Use "system" fzf when available
...
1. Go binary: ../bin/fzf
2. System fzf: $(which fzf)
3. Download fzf from GitHub or create wrapper script to Ruby version (../fzf)
when the binary for the platform is not available
4. If install script is not found or for some reason failed, try to use Ruby
version in its expected location (../fzf)
5. If fzf is found to be a shell function, use it (type fzf)
9 years ago
Junegunn Choi
d091a2c4bb
[fzf-tmux] Minor adjustment
9 years ago
Junegunn Choi
d2f95d69fb
[fzf-tmux] Fix #200 - Double-quote handling
...
Related #199
9 years ago
Junegunn Choi
1169cc8653
0.9.10
9 years ago
Junegunn Choi
f66d94c6b0
Add `--color=[dark|light|16|bw]` option
...
- dark: the current default for 256-color terminal
- light: color scheme for 256-color terminal with light background
- 16: the default color scheme for 16-color terminal (`+2`)
- bw: no colors (`+c`)
9 years ago
Junegunn Choi
2fe1e28220
Improvements in performance and memory usage
...
I profiled fzf and it turned out that it was spending significant amount
of time repeatedly converting character arrays into Unicode codepoints.
This commit greatly improves search performance after the initial scan
by memoizing the converted results.
This commit also addresses the problem of unbounded memory usage of fzf.
fzf is a short-lived process that usually processes small input, so it
was implemented to cache the intermediate results very aggressively with
no notion of cache expiration/eviction. I still think a proper
implementation of caching scheme is definitely an overkill. Instead this
commit introduces limits to the maximum size (or minimum selectivity) of
the intermediate results that can be cached.
9 years ago
Junegunn Choi
288131ac5a
Update man page to be consistent with --help
9 years ago
Junegunn Choi
3610acec5a
0.9.9
9 years ago
Junegunn Choi
cc67d2e1cf
Test case for visual indicator of --toggle sort ( #194 )
9 years ago
Junegunn Choi
f77ed0fb07
Fix typo in man page
9 years ago
Junegunn Choi
a30908c66a
[vim] Automatically download Go binary when not found
9 years ago
Junegunn Choi
f9225f98e7
Fix sort control from Terminal
9 years ago
Junegunn Choi
2db2feea37
`install --bin` just for downloading the binary
9 years ago
Junegunn Choi
d1d59272a2
Add visual indication of --toggle-sort
...
Close #194
9 years ago
Junegunn Choi
d08542ce5d
Prepare for 0.9.9 release
9 years ago
Junegunn Choi
b8904a8c3e
Add --tiebreak option for customizing sort criteria
...
Close #191
9 years ago
Junegunn Choi
48ab87294b
Add --no-hscroll option to disable horizontal scroll
...
Close #193
9 years ago
Junegunn Choi
3e1e75fe08
Remove unused variable
9 years ago
Junegunn Choi
120cc0aadd
[vim] README: Pointer to the wiki page
9 years ago
Junegunn Choi
853012ceef
[vim] Add g:fzf_action for customizing key bindings
...
Close #189
9 years ago
Junegunn Choi
2add45fe2f
[vim] Rename g:fzf_tmux_height to g:fzf_height
...
Because tmux panes are not used on Neovim.
9 years ago
Junegunn Choi
b882de87ab
Fix Travis CI build
9 years ago
Junegunn Choi
2d68cb8639
Fix #185 - Terminate on RuneError
9 years ago
Junegunn Choi
3a9d1df026
Fix unicode test case
9 years ago
Junegunn Choi
5c25984ea0
Fix Unicode case handling ( #186 )
9 years ago
Junegunn Choi
319d6ced80
[vim] Simplify :FZF
...
Ruby version can also accept `--expect` option although it's ignored.
9 years ago
Junegunn Choi
51a19a2804
[vim] Remove unnecessary pushd/popd in :FZF
...
It is already handled by its caller.
9 years ago
Junegunn Choi
a7cb1a78df
Merge pull request #188 from justinmk/non-interactive-shell
...
install: wait for LF in non-interactive shell
9 years ago
Justin M. Keyes
d4daece76b
install: wait for LF in non-interactive shell
...
"read -n 1 ..." ignores all but the first character of a line-delimited
stream (e.g. "yes n | ./install").
9 years ago
Junegunn Choi
3ec83babac
FZF_TMUX and FZF_TMUX_HEIGHT for fuzzy completion
9 years ago
Junegunn Choi
91fc6c984b
Fix fuzzy completion test
9 years ago
Junegunn Choi
a4f3d09704
Fuzzy completion using fzf-tmux
9 years ago
Junegunn Choi
40180c18ac
Merge pull request #183 from qiemem/generalized-check-if-running
...
Check if fzf#run() is already executing
9 years ago
Bryan Head
82bea6758a
Move active check to fzf#run.
9 years ago
Junegunn Choi
348731fc3b
Make fzf-tmux work when fzf is not in $PATH but in the same directory
...
See: #181
9 years ago
Junegunn Choi
797f42ecc6
Update README
9 years ago
Junegunn Choi
8385a55bda
[vim] s:pushd after s:split
...
It is possible that the user has an autocmd that changes the current
directory.
9 years ago
Junegunn Choi
8406cedf2d
[vim] Improved compatibility with sidebar plugins (e.g. NERDtree)
9 years ago
Junegunn Choi
f22b83db6c
Update README
9 years ago
Junegunn Choi
1481304d3b
Suppress message from :file
...
Suggested by @noahfrederick
9 years ago
Junegunn Choi
2cec5c0f30
Fix typo in README
9 years ago
Junegunn Choi
4760bb7743
Merge pull request #180 from mhinz/check-if-already-running
...
Check if :FZF is already executing
9 years ago
Marco Hinz
c1adf0cd3d
Check if :FZF is already executing
...
Prior to this change, you'd get a longer error message if you did:
:FZF
<esc>
:FZF
The main problem being that `:file [FZF]` can be used only once.
9 years ago
Junegunn Choi
622e69ff54
[vim] Neovim compatibility ( #137 )
...
Use terminal emulator of Neovim to open fzf
9 years ago
Junegunn Choi
68503d32df
[vim] Code cleanup
9 years ago
Junegunn Choi
57319f8c58
[vim] Fix #177 - :FZF with relative paths
9 years ago
Junegunn Choi
dd4d465305
Update Homebrew instruction
...
Close #175
9 years ago
Junegunn Choi
467a22dd36
Period.
9 years ago
Junegunn Choi
50292adacb
Implement --toggle-sort option ( #173 )
9 years ago
Junegunn Choi
84a7499ae3
Fix #172 - Print empty line when fzf with expect finished by -1 or -0
9 years ago
Junegunn Choi
39d7177bd3
[ruby] Stub out --expect option
...
So that it can be used with the recent Vim plugin although extra key
bindings are not available
9 years ago
Junegunn Choi
1c65139888
Update git ls-tree example ( close #168 )
9 years ago
Junegunn Choi
8a4db3c004
[vim] Fix #167 - :FZF with directory
9 years ago
Junegunn Choi
cef93f700b
0.9.6
9 years ago
Junegunn Choi
0a3d3460b1
Update man page
9 years ago
Junegunn Choi
d988f3fa50
Retain ANSI background color
9 years ago
Junegunn Choi
e865144ace
[vim] Implement ctrlp-compatible key bindings ( #139 , #96 , #61 )
9 years ago
Junegunn Choi
2a167aa030
Implement --expect option to support simple key bindings ( #163 )
9 years ago
Junegunn Choi
9cfecf7f0b
Fix test failure
9 years ago
Junegunn Choi
f9d6b83f5e
Drop patch number and stick with M.m.p convention
9 years ago
Junegunn Choi
ce7d4a1c53
Fix #162 - Ignore \e[K
9 years ago
Junegunn Choi
9bba6bd172
Merge pull request #158 from mrap/update-macvim-link
...
Updates MacVim wiki link in README
9 years ago
Michael Rapadas
4ad92e3a0b
Updates MacVim wiki link in README
9 years ago
Junegunn Choi
c4bf820dc3
Update man page
9 years ago
Junegunn Choi
39f43587d0
Fix typo in man page
9 years ago
Junegunn Choi
fdaa4e9b18
Append (not prepend) bin directory to PATH
...
Prepending can be problematic when the user install fzf using Homebrew,
execute the install script, and later upgrade fzf with Homebrew, and do
not rerun the install script. In that case, even though the homebrew
package is upgraded, the older version will still be used.
9 years ago
Junegunn Choi
91876e98cd
Avoid duplicate paths in MANPATH
9 years ago
Junegunn Choi
eb8fef0031
Add man path only when the directory exists
...
$fzf_base/man may not exist when installed with Homebrew.
9 years ago
Junegunn Choi
87447ddd6d
Add man page ( #157 )
9 years ago
Junegunn Choi
9d138173be
Fix #155 - Empty ANSI color code to reset color state
9 years ago
Junegunn Choi
eae53576bd
Update --help message
9 years ago
Junegunn Choi
f8c49effd4
Respect "boldness" of input string
9 years ago
Junegunn Choi
618706a5f5
Fix ANSI output in the presence of multibyte characters
...
tree -C | fzf --ansi --tac
9 years ago
Junegunn Choi
9ffcd26d50
Update CHANGELOG - 0.9.5
9 years ago
Junegunn Choi
b431e227da
Code cleanup
9 years ago
Junegunn Choi
d94dfe0876
Fix #151 - reduce initial memory footprint
9 years ago
Junegunn Choi
6130026786
Bump up the version - 0.9.5
9 years ago
Junegunn Choi
a723977b9f
Fix #149 - panic on empty string filter
9 years ago
Junegunn Choi
3dddbfd8fa
Fix string truncation
9 years ago
Junegunn Choi
e70a2a5817
Add support for ANSI color codes
9 years ago
Junegunn Choi
d80a41bb6d
Update README
...
Use --depth option to avoid pulling devel branches
9 years ago
Junegunn Choi
2bebd5cdb4
Update README with fzf image
9 years ago
Junegunn Choi
7bb75b0213
Update README
9 years ago
Junegunn Choi
bc2e82efc1
[vim] Suppress error message when clear command is N/A
9 years ago
Junegunn Choi
c04e8de9b0
Make sure to start tmux pane from the current directory ( #143 )
...
- fzf-tmux
- CTRL-T of bash/zsh/fish
- fish implementation may not work if the path contains
double-quote characters (FIXME)
9 years ago
Junegunn Choi
4977174def
[fzf-mux] Remove unnecessary env var from command
9 years ago
Junegunn Choi
5eef0acea1
Merge pull request #145 from junegunn/refactor-shell-ext
...
Refactor shell extensions
9 years ago
Junegunn Choi
3935aa84d8
Refactor shell extensions
...
- Use symlinks instead of generating the full content
- Update fish_user_paths and remove ~/.config/fish/functions/fzf.fish
- Create wrapper script for fzf when Ruby version and use it instead of
exported function not to break fzf-tmux
9 years ago
Junegunn Choi
dd6138a655
Fix #142 , #144 - Improve CTRL-R for zsh
9 years ago
Junegunn Choi
68c5bea3f8
Fix install script for platforms w/o matching Go binary ( #141 )
9 years ago
Junegunn Choi
0f474d541d
Note on upgrade
9 years ago
Junegunn Choi
c4d59aeec4
Remove legacy test code
9 years ago
Junegunn Choi
b2c423d1ff
Cleanup - no more rubygems
9 years ago
Junegunn Choi
49c752b1f7
[vim] up/down/left/right options to take boolean values
...
When 1 is given, 50% of the screen width or height will be used as the
default size of the pane.
9 years ago
Junegunn Choi
daa79a6df2
[vim] fzf#run with tmux panes can now return values to the caller
...
As they're made synchronous with the use of fzf-tmux script
9 years ago
Junegunn Choi
48e0c1e721
Ignore new options in legacy Ruby version
9 years ago
Junegunn Choi
12d81e212f
[vim] Use fzf-tmux script for tmux integration
9 years ago
Junegunn Choi
c22e729d9c
[fzf-tmux] Apply environment variables
9 years ago
Junegunn Choi
2b8a1c0d70
Update README - Homebrew instruction and fzf-tmux options
9 years ago
Junegunn Choi
e4b56b9702
Merge pull request #138 from junegunn/fzf-tmux-swap-pane
...
[fzf-tmux] Allow opening fzf on any position (up/down/left/right)
9 years ago
Junegunn Choi
789a474b28
[fzf-tmux] Allow opening fzf on any position (-u/-d/-l/-r)
...
The previous -w and -h will be synonyms for -r and -d respectively.
9 years ago
Junegunn Choi
fb2959c514
[fzf-tmux] Fix duplicate arguments to fzf
...
fzf-tmux -w -q q
fzf-tmux -w -- -q q
9 years ago
Junegunn Choi
62a28468a7
[fzf-tmux] Fix `--`
9 years ago
Junegunn Choi
23dba99eda
[fzf-tmux] Allow -w / -h without size argument
9 years ago
Junegunn Choi
5f62d224b0
Fix fzf-tmux script (bash 3.2 compatibility)
9 years ago
Junegunn Choi
6728870071
Merge pull request #136 from junegunn/fzf-tmux
...
Add fzf-tmux script
9 years ago
Junegunn Choi
87c71a3ea6
Increase timeout in test cases
9 years ago
Junegunn Choi
06ab399497
Improve how vim plugin finds fzf executable
...
This avoids the problem in which :FZF command silently fails when fzf
executable cannot be found in $PATH of the hosting tmux server.
9 years ago
Junegunn Choi
f7b52d2541
Use absolute path of fzf when splitting tmux window
9 years ago
Junegunn Choi
c111af0ed2
Use the term `pane` instead of `split` when not ambiguous
...
/cc @Tranquility
9 years ago
Junegunn Choi
07e2bd673e
Update README
9 years ago
Junegunn Choi
e4ce64d10b
Add fzf-tmux script
9 years ago
Junegunn Choi
5f3326a888
Deprecation alert
9 years ago
Junegunn Choi
1304428003
Update bash completion *for* fzf
9 years ago
Junegunn Choi
55828f389a
Add test case for 7e2c18a
9 years ago
Junegunn Choi
7e2c18a1f6
Fix directory completion matching regular files
...
Related: #135
9 years ago
Junegunn Choi
79c147ed78
Fix #135 - Directory completion to append /
9 years ago
Junegunn Choi
d4b41c5e03
Merge pull request #134 from junegunn/devel
...
0.9.4
9 years ago
Junegunn Choi
b15a0e9650
Update CHANGELOG
9 years ago
Junegunn Choi
fe09559ee9
Build with Go 1.4.2
9 years ago
Junegunn Choi
94e8e6419f
Make --filter non-blocking when --no-sort ( #132 )
...
When fzf works in filtering mode (--filter) and sorting is disabled
(--no-sort), there's no need to block until input is complete. This
commit makes fzf print the matches on-the-fly when the following
condition is met:
--filter FILTER --no-sort [--no-tac --no-sync]
or simply:
-f FILTER +s
This removes unnecessary delay in use cases like the following:
fzf -f xxx +s | head -5
However, in this case, fzf processes the input lines sequentially, so it
cannot utilize multiple cores, which makes it slightly slower than the
previous mode of execution where filtering is done in parallel after the
entire input is loaded. If the user is concerned about the performance
problem, one can add --sync option to re-enable buffering.
9 years ago
Junegunn Choi
4d2d18649c
Add basic test cases for shell extensions ( #83 )
...
- Key bindings for bash, zsh, and fish
- Fuzzy completion for bash (file, dir, process)
9 years ago
Junegunn Choi
c1aa5c5f33
Add --tac option and reverse display order of --no-sort
...
DISCLAIMER: This is a backward incompatible change
9 years ago
Junegunn Choi
4a1752d3fc
0.9.3
9 years ago
Junegunn Choi
b9b1eeffce
Update Vader tests
9 years ago
Junegunn Choi
5667667d1f
Add test case for --sync option
9 years ago
Junegunn Choi
f5b034095a
Fix race condition in asynchronous -1 and -0
9 years ago
Junegunn Choi
95e5beb34e
Update Homebrew instruction
9 years ago
Junegunn Choi
e808151c28
Make --select-1 and --exit-0 asynchronous
9 years ago
Junegunn Choi
d760b790b3
Fix typo in code
9 years ago
Junegunn Choi
1b5599972a
Update installation instruction
9 years ago
Junegunn Choi
6c2ce28d0d
Add `--sync` option
9 years ago
Junegunn Choi
ff09c275d4
Fix bash script when fzf_base contains spaces
9 years ago
Junegunn Choi
93dcd932e8
Merge pull request #123 from junegunn/fix-travis-ci
...
Fix Travis CI build
10 years ago
Junegunn Choi
e6a0de4094
Fix Travis CI build
10 years ago
Junegunn Choi
9f39671e65
Update README.md
...
Update outdated --help output
10 years ago
Junegunn Choi
423317b82a
Update README.md
10 years ago
Junegunn Choi
47201c2c4d
Merge pull request #122 from blueyed/improve-find-cdwidget
...
Improve `find` command for ALT-C: exclude proc/dev
10 years ago
Daniel Hahler
53d5d9d162
Improve `find` command for cd widgets: exclude proc/dev etc
...
When using the widget in "/", it would descend into 'dev/'.
Using '*' for the starting path would do so also with the new '-fstype'
excludes.
`cut -b3-` and `sed 1d` have been added to massage the different format
of the list.
This also uses `-L` with all calls to find, especially for the file
finders.
Ref: https://github.com/junegunn/fzf/pull/122
10 years ago
Junegunn Choi
9cb0cdb4ac
0.9.2
10 years ago
Junegunn Choi
448132c46c
Fix error when --query contains wide-length characters
10 years ago
Junegunn Choi
1476fc7f3b
Refactor test code
10 years ago
Junegunn Choi
71a7b3a26f
Improve rendering performance by caching rune widths
...
Related: 8bead4a
10 years ago
Junegunn Choi
a47c06cb61
Fix update_assets script
10 years ago
Junegunn Choi
48e16edb47
Redraw and adjust upon terminal resize
10 years ago
Junegunn Choi
c35d98dc42
Nullify --nth option when it's irrelevant
10 years ago
Junegunn Choi
8bead4ae34
Improved handling of tab characters
10 years ago
Junegunn Choi
1b6cb3532d
Update src/README.md
10 years ago
Junegunn Choi
0a0955755a
Add note on installation
10 years ago
Junegunn Choi
a3101120fd
Update install script
10 years ago
Junegunn Choi
30f9651f99
0.9.1
10 years ago
Junegunn Choi
4dcc0f10b8
Fix Travis CI build by ignoring trailing empty lines
...
😭
10 years ago
Junegunn Choi
3d39ab5ded
Fix flaky tests
10 years ago
Junegunn Choi
c3a198d0c7
Add test cases for --select-1 and --exit-0
10 years ago
Junegunn Choi
be5c17612a
Add basic test case for --reverse
10 years ago
Junegunn Choi
fe89ac8a89
Add script for updating release assets
10 years ago
Junegunn Choi
4c3ae847b6
Add test case for --with-nth + --multi
10 years ago
Junegunn Choi
5c0dc79ffa
Print selected items in the order they are selected
10 years ago
Junegunn Choi
0a83705d21
Use Go 1.4.1 to build linux binaries
10 years ago
Junegunn Choi
ea22292d2c
Merge pull request #117 from junegunn/fix-ctrl-y
...
Fix CTRL-Y key binding
10 years ago
Junegunn Choi
1990f3c992
Do not build i386 binary on Travis CI to speed up the process
10 years ago
Junegunn Choi
c0b432f7b4
Fix Travis-CI build
10 years ago
Junegunn Choi
ae3180f919
Fix CTRL-Y key binding
...
With tmux-based test cases
10 years ago
Junegunn Choi
62acb9adc4
Fix error with empty list and release 0.9.1-dev
10 years ago
Junegunn Choi
0b5fa56444
Remove brew target
10 years ago
Junegunn Choi
789f26b1a5
Add GIF to src/README
10 years ago
Junegunn Choi
a3068a33d5
Update install/build script from Homebrew
10 years ago
Junegunn Choi
b8c4b35415
`make archive` for homebrew release
10 years ago
Junegunn Choi
209a6d36ad
Merge pull request #116 from junegunn/go
...
Rewritten in Go
10 years ago
Junegunn Choi
5c491d573a
Fix fzf.{bash,zsh} when Go version is not supported
10 years ago
Junegunn Choi
2c86e728b5
Update src/README.md
10 years ago
Junegunn Choi
cd847affb7
Reorganize source code
10 years ago
Junegunn Choi
7a2bc2cada
Lint
10 years ago
Junegunn Choi
9dbf6b02d2
Fix race conditions
...
- Wait for completions of goroutines when cancelling a search
- Remove shared access to rank field of Item
10 years ago
Junegunn Choi
1db68a3976
Avoid unnecessary update of search progress
10 years ago
Junegunn Choi
1c31352675
Update src/README.md and package comment
10 years ago
Junegunn Choi
6c3489087c
Refactor Makefile and Dockerfiles
10 years ago
Junegunn Choi
313578a1a0
Improve prefix/suffix cache lookup
10 years ago
Junegunn Choi
bd7331ecf5
Remove unnecessary loop label
10 years ago
Junegunn Choi
e293cd4d08
Add test cases for ChunkCache
10 years ago
Junegunn Choi
ca4bdfb4bd
Fix Transform result cache to speed up subsequent searches
10 years ago
Junegunn Choi
4f40314433
Fix --with-nth option when query is non-empty
10 years ago
Junegunn Choi
f670f4f076
Make sure that cy is properly limited
10 years ago
Junegunn Choi
6e86fee588
Change Merger implementation on --no-sort
10 years ago
Junegunn Choi
2d9b38b93e
Constrain cy in vmove()
10 years ago
Junegunn Choi
b8a9861f95
Fix double click on an empty row not to close fzf
10 years ago
Junegunn Choi
188c90bf25
Fix incorrect behaviors of mouse events when --multi enabled
10 years ago
Junegunn Choi
8b02ae650c
Update src/README.md
10 years ago
Junegunn Choi
b7bb100810
Improve response time by only looking at top-N items
10 years ago
Junegunn Choi
aa05bf5206
Reduce memory footprint
10 years ago
Junegunn Choi
d303c5b3eb
Minor refactoring
10 years ago
Junegunn Choi
f401c42f9c
Adjust initial coordinator delay
10 years ago
Junegunn Choi
efec9acd6f
Fix missing mutex unlock
10 years ago
Junegunn Choi
3ed86445e1
Remove call to ncurses set_tabsize()
...
Not available on old verions of ncurses
10 years ago
Junegunn Choi
23f27f3ce5
Improve install script
10 years ago
Junegunn Choi
f99f66570b
Add small initial delay to screen update
...
To avoid flickering when the input is small
10 years ago
Junegunn Choi
3e129ac68c
Remove extraneous quote-escape
10 years ago
Junegunn Choi
8a0ab20a70
Update vim plugin to use Go binary
10 years ago
Junegunn Choi
b277f5ae6f
Fix i386 build
10 years ago
Junegunn Choi
6109a0fe44
Refactor Makefile
10 years ago
Junegunn Choi
383f908cf7
Remove unnecessary event dispatch
10 years ago
Junegunn Choi
3e6c950e12
Build i386 binary as well
10 years ago
Junegunn Choi
ee2ee02599
Fix index out of bounds error during Transform
10 years ago
Junegunn Choi
b42dcdb7a7
Update README for Go - System requirements
10 years ago
Junegunn Choi
82156d34cc
Update Makefile and install script
...
fzf may not run correctly on some OS even when the binary the platform
is successfully downloaded. The install script is updated to check if
the system has no problem running the executable and fall back to Ruby
version when necessary.
10 years ago
Junegunn Choi
4a5142c60b
Do not sort terms when building cache key
10 years ago
Junegunn Choi
ea25e9674f
Refactor install script
10 years ago
Junegunn Choi
dee0909d2b
Fix mouse click offset when list is scrolled
10 years ago
Junegunn Choi
8e5ecf6b38
Update Makefile and installer to use version number
10 years ago
Junegunn Choi
7557737569
Remove outdated information from README
10 years ago
Junegunn Choi
53bce0581e
Update fish function
10 years ago
Junegunn Choi
f9f9b671c5
Ask if fzf executable already exists
10 years ago
Junegunn Choi
606d33e77e
Remove race conditions from screen update
10 years ago
Junegunn Choi
d2f7acbc69
Remove race conditions when accessing the last chunk
10 years ago
Junegunn Choi
0dd024a09f
Remove unnecessary delay on non/defered interactive mode
10 years ago
Junegunn Choi
0a6cb62169
Fall back to Ruby version when download failed
10 years ago
Junegunn Choi
9930a1d4d9
Update install script to download tarball
10 years ago
Junegunn Choi
40d0a6347c
Fix scan limit for --select-1 and --exit-0 options
10 years ago
Junegunn Choi
baad26a0fd
Fix exit conditions of --select-1 and --exit-0
10 years ago
Junegunn Choi
f3177305d5
Rewrite fzf in Go
10 years ago
Junegunn Choi
4ceb520c1d
Merge pull request #115 from JackDanger/sleep-when-curses-is-unavailable
...
Sleep when curses is unavailable
10 years ago
Jack Danger Canty
d761ea5158
Sleep when curses is unavailable
...
When the curses gem is not installed and the session is running inside
tmux the user will see a flash of an opened and closed tmux pane but
will not have a chance to read the error message.
10 years ago
Junegunn Choi
7ba93d9f83
Merge pull request #113 from thedrow/patch-1
...
Use travis' new build workers
10 years ago
Omer Katz
b34f93f307
Use travis' new build workers
...
They boot faster and since we don't use root we can use them.
10 years ago
Junegunn Choi
ec040d82dd
Improve word motions: ALT-B, ALT-F, ALT-D, ALT-BS ( #112 )
10 years ago
Junegunn Choi
00190677d4
Add support for ALT-D and ALT-BS key bindings
...
https://github.com/junegunn/fzf/issues/111#issuecomment-67832143
10 years ago
Junegunn Choi
d38f7a5eb5
Merge pull request #109 from brettanomyces/reorder_fish_history
...
Reverse the order of fish history
10 years ago
brettanomyces
ee433ef6e9
reverse history for fish shell
10 years ago
Junegunn Choi
d89c9e94ba
Handle dynamically loaded completion functions ( #107 / #79 )
10 years ago
Junegunn Choi
7e2dfef930
Merge pull request #106 from jagajaga/master
...
Change `/bin/bash` to `/usr/bin/env bash`
10 years ago
Arseniy Seroka
0296fcb5cd
bash -> env bash
10 years ago
Junegunn Choi
80819f3c44
Merge pull request #104 from junegunn/add-with-nth
...
Add --with-nth option
10 years ago
Junegunn Choi
7571baadb4
Fix test failure on Ruby 1.8.7
...
Hashes are unordered on Ruby 1.8
10 years ago
Junegunn Choi
da03a66e69
Add test cases for --with-nth option
10 years ago
Junegunn Choi
3c47b7fa5f
Fix --with-nth option on --multi
10 years ago
Junegunn Choi
ba9365c438
Fix --with-nth option on Ruby 1.8
10 years ago
Junegunn Choi
db37e67575
Skip failing tests on Ruby 1.8
10 years ago
Junegunn Choi
76a3ef8c37
Add --with-nth option ( #102 )
10 years ago
Junegunn Choi
6fd6fff3a6
[vim] Ignore 'dir' option if empty
...
This makes it easier to override FZF command like follows:
autocmd VimEnter * command! -nargs=? -bang -complete=dir FZF call fzf#run({
\ 'sink': 'tabe',
\ 'dir': <q-args>,
\ 'options': '-m',
\ 'tmux_height': empty('<bang>') ? '40%' : '' })
10 years ago
Junegunn Choi
d1387bf512
Use IO.console when possible
10 years ago
Junegunn Choi
4c923a2d19
[uninstall] Remove both patterns of source command ( #97 )
...
- `[ -f ~/.fzf.${shell} ] && source ~/.fzf.${shell}"`
- `source ~/.fzf.${shell}"`
10 years ago
Junegunn Choi
4ee85f11e8
[install] Join line numbers when multiple matches found
10 years ago
Junegunn Choi
829c7f909c
Merge branch 'mjwhitta-master'
10 years ago
Miles Whittaker
990fa00660
Check before sourcing, no longer need to remove
10 years ago
Miles Whittaker
77592825f0
Sometimes users prefer . instead of source
...
So only check for file name
10 years ago
Miles Whittaker
ce53b9b2a5
Ignore user-defined grep aliases
10 years ago
Junegunn Choi
175fe158ed
Add vim-plug recipe
10 years ago
Junegunn Choi
80efafcceb
Fix ALT-C keybinding to include symlinked directories
...
Related #95 .
10 years ago
Junegunn Choi
b241409e4b
Merge pull request #95 from Neki/topic/resolve_symlinks
...
Follow symlinks when using bash autocompletion.
10 years ago
Benoît Faucon
11967be017
Follow symlinks when using bash autocompletion.
10 years ago
Junegunn Choi
6ee811ea03
Update version
10 years ago
Junegunn Choi
d5e7303a25
Change --nth option for CTRL-R key binding ( #90 )
...
Remove `1` from --nth option. With the change you can no more use `$`
anchor to match the tail of a command index. But it makes search
around 15% faster.
jg@jg:~> time cat history | fzf +s -n..,1,2.. -f fzf > /dev/nul
real 0m2.929s
user 0m2.766s
sys 0m0.154s
jg@jg:~> time cat history | fzf +s -n2..,.. -f fzf > /dev/null
real 0m2.535s
user 0m2.422s
sys 0m0.112s
10 years ago
Junegunn Choi
2924fd3e23
Add regression test case for #91
10 years ago
Junegunn Choi
75b44aac13
Ignore UTF-8 Error ( #91 )
10 years ago
Junegunn Choi
86c73105ee
Improve performance of `--nth` option ( #90 contd.)
10 years ago
Junegunn Choi
2d00abc7cb
Improve performance of `--nth` option ( #90 )
10 years ago
Junegunn Choi
1e07b3b1c2
[vim] Apply FZF_DEFAULT_{OPTS,COMMAND} when using tmux splits ( #87 )
...
Fixed escaping bug of the previous commit
10 years ago
Junegunn Choi
4313c1c25c
Revert "[vim] Apply FZF_DEFAULT_{OPTS,COMMAND} when using tmux splits ( #87 )"
...
This reverts commit cc9938d4c9
.
10 years ago
Junegunn Choi
cc9938d4c9
[vim] Apply FZF_DEFAULT_{OPTS,COMMAND} when using tmux splits ( #87 )
10 years ago
Junegunn Choi
a54784cd53
Display 'gem install curses' when curses cannot be loaded
10 years ago
Junegunn Choi
22989b0488
Update version number
10 years ago
Junegunn Choi
892aa1e78b
Merge pull request #80 from wilywampa/master
...
Add control + left/right key mappings
10 years ago
Jacob Niehus
b9ab7d2413
Add control + left/right key mappings
10 years ago
Junegunn Choi
69b2a0a733
Suppress error message from bash-completion
10 years ago
Junegunn Choi
13cd4ed546
Handle dynamically loaded completion functions ( #79 )
...
On Ubuntu/Debian, completion functions can be dynamically loaded via
_completion_loader. Since those functions are not visible when
fzf-completion.bash is loaded, we need this special hack to make it
possible to fail back to the original completion function when trigger
sequence is not found.
10 years ago
Sencer Selcuk
7261d3afcd
allow installation with sudo privileges
10 years ago
Junegunn Choi
84fc73ad9c
[bash-completion] unset / unalias / export
10 years ago
Junegunn Choi
4103f5c3cc
[bash-completion] Remove -E option from sed
...
Old versions of sed does not have -E option
10 years ago
Junegunn Choi
5390616694
[bash-completion] Export _fzf_orig_completion_xxx
10 years ago
Junegunn Choi
daf08f801f
[fish] Fix fish key binding issues ( #60 )
...
Although a major overhaul is ongoing (#67 ), it is not yet finished and
cannot be considered stable enough for the next release. This commit
fixes a few apparent issues with small change to the current
implementation.
- Fixed error when $TMPDIR is not defined
- Better escaping of file/directory names
- Splitted functions to workaround fish bug
10 years ago
Junegunn Choi
4e2a1fe5c8
Merge pull request #75 from junegunn/issue-72
...
[bash-completion] Fail back to original completion
10 years ago
Junegunn Choi
03f155484c
[bash-completion] Merge eval statements into one
10 years ago
Junegunn Choi
89298a8d23
[vim] Do not print error message on exit status 1
10 years ago
Junegunn Choi
3b14c5230c
[bash-completion] Fail back to original completion ( #72 )
10 years ago
Junegunn Choi
91401514ab
Merge pull request #71 from junegunn/issue-70
...
Add options: --prompt and --print-query
10 years ago
Junegunn Choi
91d986b6c0
Update README (--print-query)
10 years ago
Junegunn Choi
4d72bd098a
Add --print-query option ( #70 )
10 years ago
Junegunn Choi
502973ff75
Add --prompt option ( #70 )
10 years ago
Junegunn Choi
3e91c189ae
[vim] Defer `type fzf` to reduce startup time
10 years ago
Junegunn Choi
b0f80b686c
chmod +x fzf
10 years ago
Junegunn Choi
b824928b0b
Merge pull request #69 from junegunn/scrollable
...
Make the list scrollable
10 years ago
Junegunn Choi
ccca34f9f7
Minor refactoring
10 years ago
Junegunn Choi
b5350b24ff
Avoid unnecessary redraw
10 years ago
Junegunn Choi
56ace10a37
Fix mouse-click on --reverse mode
10 years ago
Junegunn Choi
72ec0a3408
Add test cases for result scroll
10 years ago
Junegunn Choi
05118cc440
Minor corrections
...
- Suppress warning message on Ruby 1.8.5
- Remove unnecessary code
10 years ago
Junegunn Choi
e392da20e8
Make scrollable ( #68 )
10 years ago
Junegunn Choi
6e69339f6b
Merge pull request #66 from patspam/master
...
Add vi-command keymap mappings
10 years ago
Patrick Donelan
30cdc06bcd
Add vi-command keymap mappings
...
fzf does not currently define vi-command mode mappings. This is particularly annoying for <C-r>, which opens bash's old-fashioned recursive history search.
This patch adds vi-command mode mappings that simply drop back into vi-insert mode ("i") and then trigger the primary mapping.
10 years ago
Junegunn Choi
9ce43d46f6
Guide on running fzf with MacVim and iTerm2 ( #65 )
10 years ago
Junegunn Choi
de09656197
Merge pull request #57 from sencer/master
...
Use `command find` rather than plain `find`
10 years ago
Sencer Selcuk
3827a1b09e
Use `command find` rather than plain `find`
...
Aliases are expanded in shell scripts, and one may have an alias
for the `find` command that conflicts with fzf. So make sure fzf
is using real find command rather than the alias.
10 years ago
Junegunn Choi
61ba8d5a11
Add a small delay when search is interrupted
...
Search is interrupted when the query string has changed. This frequently
happens when the user is actively typing in a query. This (rather
arbitrary) delay is introduced not to start the next search immediately,
which is likely to be interrupted as well. The result of it is that fzf
feels more responsive.
10 years ago
Junegunn Choi
4a3a5ee70d
[vim] External terminal emulator for GVim
10 years ago
Junegunn Choi
f58a53a001
Fix mouse click on --reverse mode
10 years ago
Junegunn Choi
65c1b53275
[vim] Options to xterm command
10 years ago
Junegunn Choi
0b43f988c7
[vim] Enable fzf in GVim using xterm
10 years ago
Junegunn Choi
f8e357fa19
Extend --nth option to take ranges
...
As discussed in #55
10 years ago
Junegunn Choi
c3a4e4cd23
Implement CTRL-D
10 years ago
Junegunn Choi
9dac12cb32
Remove duplicate examples from README
...
As discussed in #54
10 years ago
Junegunn Choi
d76a3646b7
Update Vim example: Rename functions
...
See: ftp://ftp.vim.org/pub/vim/patches/7.4/7.4.260
10 years ago
Junegunn Choi
d7c734acd6
Ignore regex error inside trim call ( #51 )
10 years ago
Junegunn Choi
ed13fc8618
Fix fzf-history-widget ( #48 )
10 years ago
Junegunn Choi
edcd7c6aa6
Remove UTF-8 NFD conversion
...
We have iconv.
10 years ago
Junegunn Choi
b0fdd6db99
Merge pull request #47 from cskeeters/master
...
[zsh-keybinding] Remove tailing substitution
10 years ago
Chad Skeeters
edf27f47f2
removed tailing substitution causing all trailing space to be removed when extendedglob is set
10 years ago
Junegunn Choi
3b218b77eb
Merge pull request #46 from takac/install-update
...
Fix fzf-history-widget to strip `*` from history lines when using tmux and fc
10 years ago
Tom Cammann
1e02471940
Update install
...
Update sed regex to strip "*" from history lines when using tmux and fc
e.g. "637* ls -a"
10 years ago
Junegunn Choi
1b9dadb3d3
Avoid unnecessary confirmation
10 years ago
Junegunn Choi
c3827dea10
Add linewise user confirmation
10 years ago
Junegunn Choi
6a1b916598
OK
10 years ago
Junegunn Choi
a2c7b001d5
Update version/date
10 years ago
Junegunn Choi
3c6e938bb1
Fix arrow keys on zsh widget
...
Fixes the problem reported by @elemakil. For some reason unknown,
sometimes the escape sequences of arrow keys are prefixed by 27-79
instead of the ordinary 27-91.
10 years ago
Junegunn Choi
5a0afc5fea
Merge branch 'aboettger-master'
10 years ago
Junegunn Choi
f37be006c3
Update uninstall script
10 years ago
Andreas Böttger
459c332351
Some improvements
10 years ago
Andreas Böttger
153a87d84a
uninstall script
10 years ago
Junegunn Choi
05da892cd2
On writing fzf-tmux combo
10 years ago
Junegunn Choi
f6b1a6278f
Add --reverse option (top-to-bottom layout)
10 years ago
Junegunn Choi
db58182483
Customization of key bindings ( #40 )
10 years ago
Junegunn Choi
6e9f0882da
Update README (missing link to fish key bindings file)
10 years ago
Junegunn Choi
7ed18579dc
`set -o vi` is required for vi-mode bash key bindings ( #39 )
10 years ago
Junegunn Choi
f250fc8f86
Fix #41 : [CTRL-T] long file paths causing wrapping artifacts
10 years ago
Junegunn Choi
6eea9603c2
Fix bug in install script
10 years ago
Junegunn Choi
20915529b7
Add link to examples wiki page
10 years ago
Junegunn Choi
b3efccca81
[fish] Remove temporary file after use
10 years ago
Junegunn Choi
809d465de5
Tip on using git ls-tree ( #31 )
10 years ago
Junegunn Choi
7d15071c63
Fish shell support - installer / key bindings ( #33 )
10 years ago
Junegunn Choi
89eb1575e7
Simpler check for curses
10 years ago
Junegunn Choi
5d6ed935a4
Update README: master.tar.gz
10 years ago
Junegunn Choi
0528435386
Update README
10 years ago
Junegunn Choi
fe22213b51
Remove gif link
10 years ago
Junegunn Choi
aab42eaaba
Update Vim plugin example
10 years ago
Junegunn Choi
16031b0d54
[Vim] Allow vertical split of tmux window
10 years ago
Junegunn Choi
ded184daaf
Typo
10 years ago
Junegunn Choi
ecf90bd25b
Update README
10 years ago
Junegunn Choi
d82e38adc1
0.8.3
10 years ago
Junegunn Choi
af677e7e35
Vim plugin: do not enable tmux-integration if version < 1.7
10 years ago
Junegunn Choi
6ad38bdad3
Update example: suppress error message from fc on bash ( #37 )
...
`'fc' -l 1` generated an error message on bash
10 years ago
Junegunn Choi
8b80136a87
Merge pull request #37 from wellle/zsh-history
...
Feed all zsh history into fzf
10 years ago
Christian Wellenbrock
97de919152
Feed all zsh history into fzf
10 years ago
Junegunn Choi
0eafa725b9
Fix test code indentation
10 years ago
Junegunn Choi
fa212efe5f
Fix ranking when multiple regions overlap
...
e.g.
Match region #1 : [-----------]
Match region #2 : [---]
Match region #3 : [------]
10 years ago
Junegunn Choi
a9056ce90c
Add gif showing tmux integration
10 years ago
Junegunn Choi
16682a3f92
Update fe example as the exit status from -0 has changed ( #36 )
10 years ago
Junegunn Choi
02c01c81a0
Improve -0 and -1 as suggested in #36
...
- Make -0 and -1 work without -q
- Change exit status to 0 when exiting with -0
10 years ago
Junegunn Choi
22d3929ae3
Implement --select-1 and --exit-0 ( #27 , #36 )
10 years ago
Junegunn Choi
ab9fbf1967
Allow --nth option to take multiple indexes (comma-separated)
10 years ago
Junegunn Choi
608ec2b806
set -o nonomatch for zsh ( #34 )
...
Avoid error message in an empty directory
10 years ago
Junegunn Choi
e5ae4f0ef6
Do not load interactive parts when not required ( #34 )
10 years ago
Junegunn Choi
67ba87d390
Avoid CTRL-T error when default shell != zsh ( #34 )
10 years ago
Junegunn Choi
77d45cb173
Avoid starting interactive bash ( #34 )
10 years ago
Junegunn Choi
d83febea46
Merge pull request #35 from junegunn/fix-tmux-on-linux
...
Fix #34 : tmux integration on Linux
10 years ago
Junegunn Choi
546a315884
Fix #34 : tmux integration on Linux
10 years ago
Junegunn Choi
af616457e3
Use -p option of split-window instead of manual calculation
10 years ago
Junegunn Choi
1a100a2919
No need for screenrow()
10 years ago
Junegunn Choi
a85bb93b69
Fix use of screenrow when tmux height is given in %
10 years ago
Junegunn Choi
057eda060c
Installation on other shells
10 years ago
Junegunn Choi
48f9ee6763
Update install script
10 years ago
Junegunn Choi
52b74abb99
Merge pull request #32 from junegunn/nth
...
Add --nth and --delimiter option
10 years ago
Junegunn Choi
ec4b8a59fa
Implement --nth and --delimiter option
10 years ago
Junegunn Choi
cf8dbf8047
Allow setting tmux split height in %
10 years ago
Junegunn Choi
995d380200
Merge pull request #30 from junegunn/keybinding-tmux-split
...
Make CTRL-T use tmux split when possible
10 years ago
Junegunn Choi
ae86cdf09a
Make CTRL-T use tmux split when possible
10 years ago
Junegunn Choi
2b346659a0
Vim plugin: tmux integration
10 years ago
Junegunn Choi
49081711a9
Execute clear before fzf
10 years ago
Junegunn Choi
e7439ce193
Major update to Vim plugin
10 years ago
Junegunn Choi
b8e438b6be
Prefer pre-existing function/alias in Vim plugin
10 years ago
Junegunn Choi
678e950b6d
Use --reverse option in fco example ( #29 )
10 years ago
Junegunn Choi
9ea651f1cd
Merge pull request #29 from wellle/fix/fco
...
Fix small typo in Readme
10 years ago
Christian Wellenbrock
bd98a08b89
Fix small typo in Readme
10 years ago
Junegunn Choi
f02bb4fdac
Add `fe` command to examples section as suggested in #27
10 years ago
Junegunn Choi
0a8352a5cd
Quote $1 in vimf example ( #26 )
10 years ago
Junegunn Choi
737423995d
Merge pull request #28 from wellle/ignore-dsstore
...
Add .DS_Store to .gitignore
10 years ago
Christian Wellenbrock
2916bf7ee4
Add .DS_Store to .gitignore
10 years ago
Junegunn Choi
fa54c5d9b0
Merge pull request #26 from wellle/vimf-query
...
Add --query parameter to fzf invocation in vimf function
10 years ago
Christian Wellenbrock
693b6651b4
Add --query parameter to fzf invocation in vimf function
10 years ago
Junegunn Choi
5c71ecb267
Implement C-Y (yank)
10 years ago
Junegunn Choi
1ba50eba98
Fix gemspec
...
Reference:
16ead977fa
10 years ago
Junegunn Choi
2c8a256b13
Update README and install
...
- Unset multi-select option with +m
10 years ago
Junegunn Choi
f4c5aa03d7
Update README and install script
...
- Added examples: fbr and fco
- Always use local variables
10 years ago
Junegunn Choi
c6acb2a639
Update README
10 years ago
Junegunn Choi
2296013174
Add ALT-C keybinding for bash
10 years ago
Junegunn Choi
8a3e8c2d81
Install curses gem in user's home directory
10 years ago
Junegunn Choi
ae84d8c7a4
Update README
10 years ago
Junegunn Choi
dbd627c38a
Update README: Remove section on --disable-gems
...
This is automatically set in install script. It may only cause unnecessary
confusion.
10 years ago
Junegunn Choi
d172c3ce03
Update README
10 years ago
Junegunn Choi
9904f5354e
Add --black for terminals incapable of use_default_colors
...
See the discussion in #18 .
Use --black option to use black background regardless of the default
background color of the terminal. Also, this option can be used to fix
rendering issues on terminals that don't support use_default_colors (man
3 default_colors). Depending on the terminal, use_default_colors may or
may not succeed, but the Ruby version of it always returns nil, it's
currently not possible to automatically enable this option.
10 years ago
Junegunn Choi
f345bf7983
Shift-left/right on OSX
10 years ago
Junegunn Choi
875f9b6534
Reduce timeout to 0.1 sec
10 years ago
Junegunn Choi
871dfb709d
Introduce escape time-out for better handling of escape sequences
10 years ago
Junegunn Choi
19e24bd644
Home/End/PgUp/PgDn/Del/(Ins)
10 years ago
Junegunn Choi
457a240457
Add option to disable 256-color output (related #18 )
10 years ago
Junegunn Choi
bbf4567dd8
Allow command/control-click/wheel
...
e.g. urxvt
10 years ago
Junegunn Choi
27d3b52843
Update gem version
10 years ago
Junegunn Choi
dcb4694ec1
Reimplement mouse input without using Curses.getch
10 years ago
Junegunn Choi
2fb8ae010f
Completely remove mouse support
...
Since the version 0.7.0, fzf internally used Curses.getch() call to take user
input, which allowed it to support mouse input as well. However it has turned
out that Curses.getch() has introduced glitches that cannot be easily handled
(e.g. Try resize the terminal). So I finally decided that it's not worth the
trouble and drop the mouse support.
10 years ago
Junegunn Choi
65ae6cabb5
Rename variables
10 years ago
Junegunn Choi
86a66da04d
Synchronize getch calls to reduce screen glitches
10 years ago
Junegunn Choi
d66b02b0cd
Disable typeahead optimization in Ruby 1.8
10 years ago
Junegunn Choi
b3182c3304
Performance optimization: batch application of input chars
10 years ago
Junegunn Choi
2dbca00bfb
Implement --extended-exact option ( #24 )
10 years ago
Junegunn Choi
b22fd6de6d
Fix #22 . Keybindings for vi-mode bash.
10 years ago
Junegunn Choi
245ee42763
Update installation instruction
10 years ago
Junegunn Choi
98bef4600c
Merge pull request #20 from wellle/zsh-history-fc
...
Use `fc` instead of `history` to avoid `oh-my-zsh` alias
10 years ago
Christian Wellenbrock
f5d53b94fe
Use `fc` instead of `history` to avoid omz alias
10 years ago
Junegunn Choi
00c8a68430
Unalias history on zsh (related #19 )
10 years ago
Junegunn Choi
c1be834ff9
Merge pull request #19 from wellle/zsh_history
...
Feed all zsh history into fzf (not only most recent)
10 years ago
Christian Wellenbrock
2c0dc2f3b1
Feed all zsh history into fzf (not only most recent)
10 years ago
Junegunn Choi
1c94fef720
Update version number
10 years ago
Junegunn Choi
b711d76b8e
Choose to use 256-colors when $TERM includes 256 (related: #18 )
...
It turned out that Curses.can_change_color? returns false when $TERM is
set to screen-256color, which is perfectly capable of rendering 256
colors.
10 years ago
Junegunn Choi
4396ab7548
Do not set key bindings in non-interactive shell
10 years ago
Junegunn Choi
2b8c2b9f2a
CTRL-R for bash: Unset $HISTTIMEFORMAT
10 years ago
Junegunn Choi
426284c87e
Change CTRL-T binding to include directories
11 years ago
Junegunn Choi
089691faaf
Cache the result as sorted
11 years ago
Junegunn Choi
301290663d
Add -f (--filter) option ( #15 )
...
This commit adds --filter option so that fzf can be used as a simple unix
filter instead of being an interactive fuzzy finder.
11 years ago
Junegunn Choi
1155da7e1c
Install curses 1.0.0
11 years ago
Junegunn Choi
eca0a99fb4
Proper handling of typeahead arrow keys
...
To reproduce: `sleep 2; fzf` and press arrow keys
11 years ago
Junegunn Choi
96215c4619
CTRL-L to clear and redraw the screen
11 years ago
Junegunn Choi
b2d2be55ef
init_screen must be called within render block
11 years ago
Junegunn Choi
7280e8ebc2
Merge pull request #17 from junegunn/mouse
...
Add mouse support
11 years ago
Junegunn Choi
c7e86ad4f1
Add --no-mouse option to replace FZF_MOUSE_ENABLED
11 years ago
Junegunn Choi
f2b2c022be
Update gem version
11 years ago
Junegunn Choi
7747daa9ec
Merge branch 'master' into mouse
11 years ago
Junegunn Choi
c2943e7681
Fix `incompatible encoding regexp match` from width call
11 years ago
Junegunn Choi
d5fc03d867
Update README
11 years ago
Junegunn Choi
b0eca20dc2
Minor refactoring
11 years ago
Junegunn Choi
aad335475c
Shift-click and wheel
11 years ago
Junegunn Choi
c3676bf986
Make install script prefer system ruby
11 years ago
Junegunn Choi
6fb4b6d097
Do not move vcursor on select using mouse
11 years ago
Junegunn Choi
6aa168833b
Ruby 1.8 compatibility
11 years ago
Junegunn Choi
0d83cae2ec
Implement mouse support
11 years ago
Junegunn Choi
773d9976a0
Use Curses.getch to support mouse (WIP)
11 years ago
Junegunn Choi
3723829b0a
Add FZF_DEFAULT_OPTS and update command-line options
11 years ago
Junegunn Choi
13cb198b5c
Update README
11 years ago
Junegunn Choi
79f645aa6c
Update README
11 years ago
Junegunn Choi
42d479d071
--version
11 years ago
Junegunn Choi
d7f50b1e41
Fix typo in install script
11 years ago
Junegunn Choi
39eb85596c
Fix error on Rubinius
11 years ago
Junegunn Choi
bff7e9edf5
Should not `--disable-gems` when curses gem is used ( #14 )
11 years ago
Junegunn Choi
98ccc03a21
Update README.md
11 years ago
Junegunn Choi
3b668ed448
Install curses gem when not found ( #14 )
11 years ago
Junegunn Choi
33b28be941
Make host name completion require trigger sequence ( #13 )
11 years ago
Junegunn Choi
76fe23b928
Fix host completion to include ssh_config entries ( #13 )
11 years ago
Junegunn Choi
622c54f4a3
Update gem version (0.6.0)
...
- Smart-case pattern matching
- CTRL-Q
11 years ago
Junegunn Choi
e09993f919
Update README
11 years ago
Junegunn Choi
7ee6fd1f6d
Make install script to add key bindings as well
11 years ago
Junegunn Choi
2dca6f0cb2
Update `Last update`
11 years ago
Junegunn Choi
159dd7f069
Implement smart-case match ( #12 )
11 years ago
Junegunn Choi
b30f21e074
CTRL-Q to terminate the finder ( #11 )
11 years ago
Junegunn Choi
636c86cf6f
Update bash host completion for ssh and telnet commands
11 years ago
Junegunn Choi
5483e41b2a
Update README
11 years ago
Junegunn Choi
1c89994c94
Suppress warnings on old version of Ruby
11 years ago
Junegunn Choi
e1bc4b983e
Update gem version
11 years ago
Junegunn Choi
cb3645ea95
Fix `^.*$` pattern matching in extended-search mode ( #9 )
11 years ago
Junegunn Choi
04ebaddf5e
0.5.1
11 years ago
Junegunn Choi
45e1f1ae57
Last update: December 5, 2013
11 years ago
Junegunn Choi
c1d5f7cef7
Do not use 256-color if not supported ( #8 )
11 years ago
Junegunn Choi
df663c4e41
Improve bash completion
...
- kill completion: do not even start fzf on non-empty word
- host completion: start fzf with initial query
11 years ago
Junegunn Choi
d3742782f3
Fix a typo in README
11 years ago
Junegunn Choi
faff17b2a9
Hostname completion for ssh and telnet commands
11 years ago
Junegunn Choi
9a3cddc92e
Apply FZF_COMPLETION_OPTS to kill completion
11 years ago
Junegunn Choi
bd2763d863
Add bash completion for kill command
11 years ago
Junegunn Choi
b2bb22d883
A minor update to install script
11 years ago
Junegunn Choi
ad8ec7f387
Encourage use of function instead of alias (exportability)
11 years ago
Junegunn Choi
cf0ca8578c
Update bash key binding example
11 years ago
Junegunn Choi
07aee79bd8
Update examples and bash completion
...
- Use tput sc/rc instead of redraw-current-line
- Escape selected items with printf
11 years ago
Junegunn Choi
344b57fe33
grep -F
11 years ago
Junegunn Choi
18a2fbf54a
Fix install script (use export-able function instead of alias)
11 years ago
Junegunn Choi
39af56cf8f
Revert "Reduce the number of Curses.refresh calls"
...
This reverts commit 2d3a0a1034
(which doesn't make any noticeable difference)
11 years ago
Junegunn Choi
2d3a0a1034
Reduce the number of Curses.refresh calls
11 years ago
Junegunn Choi
655fa5d9aa
Update query line after update_list call
...
This commit is the workaround for the curses issue where the query
string on the screen is truncated after the cursor when the list is
updated: e.g. `aaac|bbb`
11 years ago
Junegunn Choi
9a49a29c7f
Fix bash completion (~/abc/def/ghi**)
...
~/abc/def/ghi** should match ghi under ~/abc/def/, not ~/abc/def*
11 years ago
Junegunn Choi
89ae45cda4
Merge branch 'master' of github.com:junegunn/fzf
...
Conflicts:
fzf-completion.bash
11 years ago
Junegunn Choi
f660ad35b2
Improve bash completion: `[DIRECTORY/][FUZZY_PATTERN]**<TAB>`
11 years ago
Junegunn Choi
c61738ae43
Bump up gem version
11 years ago
Junegunn Choi
c4dec4d34b
Add -q option (initial query)
11 years ago
Junegunn Choi
a797604255
-o default as well as -o bashdefault
11 years ago
Junegunn Choi
25840d3bc7
`-o bashdefault` instead of `-o default`
11 years ago
Junegunn Choi
4745d50931
Add CTRL-G and ESC (C-[) as abort key ( #7 )
11 years ago
Junegunn Choi
04bf3abe99
Fix bash completion example
11 years ago
Junegunn Choi
57f7963eee
Remove obsolete lines
11 years ago
Junegunn Choi
2fa21e5dd6
Remove obsolete lines
11 years ago
Junegunn Choi
9c4c37aa36
Adjust completion types (all/file/dir)
11 years ago
Junegunn Choi
2540c9062f
The last argument doesn't have to be a path
11 years ago
Junegunn Choi
f28274109f
Update Vim plugin to take path argument
11 years ago
Junegunn Choi
724724bd8c
Extend the list of commands for fzf-completion
11 years ago
Junegunn Choi
64541cb5f8
Fix install script (source ~/.xxxrc has no effect)
11 years ago
Junegunn Choi
179b00ed6c
Reload .bashrc/.zshrc after installation
11 years ago
Junegunn Choi
a9fd496691
Merge pull request #6 from junegunn/completion
...
Prototype implementation of bash auto-completion
11 years ago
Junegunn Choi
b14c57e656
Update README
11 years ago
Junegunn Choi
fa5617e076
Implement bash auto-completion with fzf
11 years ago
Junegunn Choi
e52a1d5fad
Update bash example
11 years ago
Junegunn Choi
423e26b0c9
Better handling of NFD chars
11 years ago
Junegunn Choi
84921df0e3
Fix extended-search on non-darwin env
11 years ago
Junegunn Choi
6a5e1de6f3
Fix missing NFD conversion in extended-search mode
11 years ago
Junegunn Choi
90adda73b0
Update Vim plugin
...
Changes:
- Rename g:fzf_command to g:fzf_source
- Support multi-select mode
- Add fzf#run(vim_command, fzf_args) function
Todo:
- Faster startup with --disable-gems option when available
11 years ago