dependabot[bot]
76dcfe85f2
Bump github/codeql-action from 3 to 4
...
Bumps [github/codeql-action](https://github.com/github/codeql-action ) from 3 to 4.
- [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/v3...v4 )
---
updated-dependencies:
- dependency-name: github/codeql-action
dependency-version: '4'
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
2025-10-13 13:32:21 +00:00
Junegunn Choi
8cdfb23df6
0.66.0
2025-10-12 22:17:52 +09:00
Junegunn Choi
4ffde48e2f
Fix --bold inheritance
...
Fix #4548
2025-10-12 13:58:46 +09:00
Junegunn Choi
f2b33f038a
Revert "Make query string in --disabled state bold as before"
...
This reverts commit ab407c4645 .
2025-10-12 13:58:46 +09:00
junegunn
d5913bf86e
Deploying to master from @ junegunn/fzf@0e9026b817 🚀
2025-10-12 00:02:08 +00:00
Jacobo de Vera
0e9026b817
feat: Allow disabling Ctrl-R binding in shell integration ( #4535 )
...
Close #4417
2025-10-12 01:57:31 +09:00
Junegunn Choi
ab407c4645
Make query string in --disabled state bold as before
...
Fix #4546
2025-10-11 09:35:48 +09:00
Junegunn Choi
91c4bef35f
Update CHANGELOG
2025-10-10 03:41:37 +09:00
Junegunn Choi
bf77206221
Improve Unix domain socket handling
...
- Check if the file is in use
- Change the permission to 0600
2025-10-09 13:52:10 +09:00
Junegunn Choi
0cb1be3f04
Fix --help output: socket path cannot be omitted
2025-10-09 01:12:30 +09:00
Junegunn Choi
01cb38a5fb
Add Unix domain socket support for --listen
...
Close #4541
2025-10-09 01:07:59 +09:00
Junegunn Choi
c38c6cad79
Update CHANGELOG
2025-10-09 00:17:00 +09:00
Junegunn Choi
ba6fc40cfd
Add 'best' to man page
2025-10-09 00:17:00 +09:00
Junegunn Choi
dd46a256c0
Fix offset-up and offset-down with --layout=reverse-list
...
Related: 3df06a1c68
2025-10-09 00:17:00 +09:00
Junegunn Choi
d19ce0ad8d
Add 'best' action
2025-10-09 00:17:00 +09:00
Junegunn Choi
ed7becfb47
Go to the closest match when disabling raw mode
2025-10-09 00:17:00 +09:00
Junegunn Choi
9ace1351ff
ADD $FZF_DIRECTION
2025-10-09 00:17:00 +09:00
Junegunn Choi
e1de29bc40
CTRL-R: Bind ALT-R to toggle-raw
2025-10-09 00:17:00 +09:00
Junegunn Choi
0df7d10550
Rename: '--color hidden' to '--color nomatch'
2025-10-09 00:17:00 +09:00
Junegunn Choi
91e119a77e
Fix non-matching items not refreshing after clearing query
2025-10-09 00:17:00 +09:00
Junegunn Choi
3984161f6c
Fix: 'hidden' style not applied to text without colors
2025-10-09 00:17:00 +09:00
Junegunn Choi
91beacf0f4
Add special 'strip' style attribute for stripping colors
...
Test cases:
fd --color always | fzf --ansi --delimiter /
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim,nth:regular
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular --raw
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strikethrough --raw
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strip:strikethrough --raw
fd --color always | fzf --ansi --delimiter / --nth -1 --color fg:dim:strip,nth:regular,hidden:strip:dim:strikethrough --raw
2025-10-09 00:17:00 +09:00
Junegunn Choi
e6ad01fb90
Revise color configuration
2025-10-09 00:17:00 +09:00
Junegunn Choi
ce2200e908
Do not allow gutter characters with width other than 1
2025-10-09 00:17:00 +09:00
Junegunn Choi
548061dbde
--gutter ' ' --color gutter:reverse
2025-10-09 00:17:00 +09:00
Junegunn Choi
8f0c91545d
Add $FZF_RAW for conditional actions
2025-10-09 00:17:00 +09:00
Junegunn Choi
0eefcf348e
Update CHANGELOG
2025-10-09 00:17:00 +09:00
Junegunn Choi
c1f8d18a0c
Add enable-raw and disable-raw actions
2025-10-09 00:17:00 +09:00
Junegunn Choi
8585969d6d
Refactor action implementation
2025-10-09 00:17:00 +09:00
Junegunn Choi
8a943a9b1a
Remove TODO comments
2025-10-09 00:17:00 +09:00
Junegunn Choi
c87a8eccd4
Add '--bind ctrl-x:toggle-raw' to CTRL-R bindings
2025-10-09 00:17:00 +09:00
Junegunn Choi
65df0abf0e
Introduce 'raw' mode
2025-10-09 00:17:00 +09:00
junegunn
b51bc6b50e
Deploying to master from @ junegunn/fzf@febaadbee5 🚀
2025-10-05 00:02:16 +00:00
Junegunn Choi
febaadbee5
Fix stray character artifacts when scrollbar is hidden
...
Fix #4537
2025-10-04 21:56:56 +09:00
dependabot[bot]
0e67c5aa7a
Bump actions/setup-go from 5 to 6 ( #4513 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 5 to 6.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v5...v6 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-version: '6'
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>
2025-09-29 21:20:26 +09:00
mickychang9
760d1b7c58
refactor: use maps.Copy and maps.Clone ( #4518 )
...
Signed-off-by: mickychang9 <mickychang9@outlook.com >
2025-09-29 18:11:19 +09:00
Junegunn Choi
9bdacc8df2
Update --help output to avoid confusion
2025-09-28 23:56:51 +09:00
junegunn
8e936ecfa7
Deploying to master from @ junegunn/fzf@db2e95b1f2 🚀
2025-09-28 00:02:15 +00:00
Junegunn Choi
db2e95b1f2
Remove unused field
2025-09-27 22:34:12 +09:00
alex-huff
687074e772
merger: fix chunk cache never getting cleared ( #4531 )
...
Commit 7fc13c5 indroduced less aggressive cache invalidation for the
chunk cache but saved the new revision before comparing it with the old
one, and so the cache was never considered invalid.
Fixes #4529
2025-09-27 09:01:13 +09:00
Junegunn Choi
3401c2e0c7
Remove alignment in .tool-versions for RuboCop
2025-09-24 22:41:54 +09:00
Junegunn Choi
e8cb315419
Apply shfmt to bash script files (make fmt)
2025-09-24 22:41:54 +09:00
Junegunn Choi
f0c4ee4047
make lint: Perform bash script linting
2025-09-24 22:41:54 +09:00
xieyonn
de0df2422a
feat: add make fmt for *.sh *.bash
...
1. add .editorconfig file, add rules for .sh .bash files.
2. add make fmt target, use:
- gofmt *.go.
- shfmt *.sh *.bash, shell/completion.bash, shell/key-bindings.bash
need a left indent due to an outermost if block.
3. add shfmt check for bash scripts in make lint target.
4. install shfmt in actions.
2025-09-24 22:41:54 +09:00
Massimo Mund
148b0a94cd
tui/light: consume full 7-byte CSI sequences to prevent leftover printing ( #4528 )
...
- Fix parsing in escSequence so 7-byte CSI forms (e.g. ESC [ 5 ; 10 ~) set *sz = 7 and the entire sequence is consumed.
- Prevents trailing bytes (like 10~) from remaining in the input buffer and being printed as stray characters.
2025-09-23 23:33:41 +09:00
Junegunn Choi
ca294109c3
Apply RuboCop suggestions
2025-09-22 21:23:54 +09:00
Junegunn Choi
9cad2686e9
Update .tool-versions
2025-09-21 21:19:49 +09:00
junegunn
9a45172232
Deploying to master from @ junegunn/fzf@2a92c7d792 🚀
2025-09-21 00:02:16 +00:00
Junegunn Choi
2a92c7d792
Adjust base16 (16) theme ( #4501 )
...
Motivation:
`--color base16` can be a better default than `dark` or `light`, since it uses
the colors defined by the current theme. This usually blends in more
naturally and works well in both light and dark modes.
However, some elements were previously hard-coded with white or black
foreground colors, which can cause rendering issues in certain terminal
themes.
2025-09-17 19:38:49 +09:00
Junegunn Choi
f5975cf870
Add --gutter to --help and man page
2025-09-16 21:30:01 +09:00
Junegunn Choi
a67aa85820
Style change: thinner gutter column ( #4521 )
2025-09-16 21:22:56 +09:00
dependabot[bot]
c5cabe1691
Bump github.com/charlievieth/fastwalk from 1.0.13 to 1.0.14 ( #4522 )
...
Bumps [github.com/charlievieth/fastwalk](https://github.com/charlievieth/fastwalk ) from 1.0.13 to 1.0.14.
- [Release notes](https://github.com/charlievieth/fastwalk/releases )
- [Commits](https://github.com/charlievieth/fastwalk/compare/v1.0.13...v1.0.14 )
---
updated-dependencies:
- dependency-name: github.com/charlievieth/fastwalk
dependency-version: 1.0.14
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>
2025-09-16 01:19:14 +09:00
Junegunn Choi
cbed41cd82
No emoji
2025-09-14 21:08:48 +09:00
Junegunn Choi
6684771cbf
Fix CTRL-Z for tcell renderer by using the official API
...
See https://github.com/gdamore/tcell/pull/431
2025-09-14 11:41:12 +09:00
Junegunn Choi
f5f894ea47
Fix rendering of multiple OSC 8 links in a single line
...
Fix #4517
2025-09-14 11:26:47 +09:00
junegunn
a0a334fc8d
Deploying to master from @ junegunn/fzf@ae12e94b1f 🚀
2025-09-07 00:02:03 +00:00
Massimo Mund
ae12e94b1f
Add sub-word actions ( #3997 )
...
Add `backward-subword`, `forward-subword`, `kill-subword`, `backward-kill-subword` actions.
2025-09-05 19:38:22 +09:00
Massimo Mund
9ed971cc90
Add keybindings for CTRL, ALT, SHIFT + UP, DOWN, RIGHT, LEFT, HOME, END, BACKSPACE, DELETE & more ( #3996 )
...
* Added tests for `LightRenderer`
* Added common SHIFT, ALT and ALT+SHIFT key sequences
* Added common CTRL key sequences
* Added common CTRL+ALT, CTRL+SHIFT, CTRL+ALT+SHIFT key sequences
* Added proper xterm META modifier handling
according to defc6dd568/input.c (L357-L375)
* Fix `ctrl-backspace` and `ctrl-alt-backspace`
* Fix broken tcell tests on windows by swallowing Resize events
* Added tests for FullscreenRenderer
* Removed own fork of tcell and updated tcell to 2.9.0
tcell 2.9.0 is needed for `Ctrl-Alt-*` and `Ctrl-Alt-Shift-*` shortcuts in Windows
* Replace conditional checks with switch statements to improve readability
* Replace long conditionals with constant slices to improve readability
* Bind `ctrl-bspace` (`ctrl-h`) to `backward-delete-char` by default
Since we now distinguish between Backspace and Ctrl-Backspace, Ctrl-Backspace should trigger the same action as Backspace by default. In that way nothing changes for the user but you can bind other actions to Ctrl-Backspace when desired.
2025-09-05 14:56:51 +09:00
Junegunn Choi
129cb23078
Require Go 1.23
2025-09-05 14:45:17 +09:00
dependabot[bot]
d22812e917
Bump github.com/gdamore/tcell/v2 from 2.8.1 to 2.9.0 ( #4503 )
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.8.1 to 2.9.0.
- [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.8.1...v2.9.0 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
dependency-version: 2.9.0
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>
2025-09-05 14:39:37 +09:00
Charlie Vieth
10d712824a
mod: update charlievieth/fastwalk to v1.0.13 and min Go version to 1.21 ( #4508 )
...
This commit updates github.com/charlievieth/fastwalk to v1.0.13 which
addresses fastwalk issue #61 . It also updates the minimum supported Go
version to 1.21 (up from 1.20) since that is now the minimum version
supported by fastwalk.
2025-09-04 22:04:52 +09:00
Junegunn Choi
de4059c8fa
Update README
2025-09-03 08:18:57 +09:00
Junegunn Choi
416aff86e9
0.65.2
2025-08-31 22:18:44 +09:00
zhedazijingang
59dc7f178f
refactor: replace []byte(fmt.Sprintf) with fmt.Appendf ( #4507 )
...
Signed-off-by: zhedazijingang <unwrap_or_else@outlook.com >
2025-08-31 22:01:35 +09:00
junegunn
a3c9f8bfee
Deploying to master from @ junegunn/fzf@5546c65491 🚀
2025-08-31 00:02:03 +00:00
Junegunn Choi
5546c65491
Fix rendering of items with tabs when using a non-default ellipsis
...
Fix #4505
2025-08-27 23:31:31 +09:00
junegunn
f2179f015c
Deploying to master from @ junegunn/fzf@9a53d84b9c 🚀
2025-08-24 00:02:30 +00:00
Junegunn Choi
9a53d84b9c
Update README.md
2025-08-22 22:51:04 +09:00
Junegunn Choi
0a8ff7899c
Do not unset FZF_DEFAULT_* variables when using winpty
...
Fix #4497
Fix #4400
2025-08-22 19:24:01 +09:00
xty
f9d7877d8b
[bash 3] Fix CTRL-T and ALT-C to preserve the last yank ( #4496 )
2025-08-19 23:31:02 +09:00
Peter Sideris
9fe9976591
Fix a typo in man page ( #4495 )
2025-08-19 23:25:57 +09:00
Chayoung You
de1824f71d
[install] Support old uname in macOS ( #4492 )
2025-08-17 11:54:32 +09:00
dependabot[bot]
19a9296c47
Bump actions/checkout from 4 to 5 ( #4485 )
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 4 to 5.
- [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/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: '5'
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>
2025-08-15 21:17:29 +09:00
Ioannis Pinakoulakis
49967f3d45
Use fixed-length array when possible ( #4488 )
2025-08-15 21:16:41 +09:00
longhutianjie
978b6254c7
chore: remove redundant word in comment ( #4490 )
...
Signed-off-by: longhutianjie <keplrnewton@icloud.com >
2025-08-14 13:26:29 +09:00
Junegunn Choi
1afd143810
Fix incorrect truncation of --info-command with --info=inline-right
...
Fix #4479
2025-08-08 18:51:24 +09:00
Junegunn Choi
e5cd7f0a3a
0.65.1
2025-08-03 14:41:56 +09:00
junegunn
51d3940c63
Deploying to master from @ junegunn/fzf@179aec1578 🚀
2025-08-03 00:02:30 +00:00
Junegunn Choi
179aec1578
Fix '--color nth:regular' not to reset ANSI attributes of the original text
2025-08-03 00:54:26 +09:00
Junegunn Choi
af0014aba8
Fix a bug where you cannot unset the default --nth using change-nth
2025-08-03 00:29:05 +09:00
Junegunn Choi
da3d995709
Fix $FZF_CLICK_{HEADER,FOOTER}_WORD with ANSI colors and tabs
2025-08-02 16:47:09 +09:00
Junegunn Choi
04c4269db3
0.65.0
2025-07-27 10:39:41 +09:00
junegunn
78f238294f
Deploying to master from @ junegunn/fzf@354d0468c1 🚀
2025-07-27 00:02:23 +00:00
LangLangBart
354d0468c1
fix(shell): check for mawk existence before version check ( #4468 )
...
close #4463
2025-07-25 17:33:18 +09:00
Junegunn Choi
4efcc344c3
Add 'trigger(KEY_OR_EVENT[,...])' action
2025-07-23 19:41:06 +09:00
Junegunn Choi
5818b58350
Better fix for #4465 - remove unnecessary erase
2025-07-23 19:30:52 +09:00
Junegunn Choi
7941129cc4
Add 'click-footer' event
2025-07-22 23:24:23 +09:00
Junegunn Choi
069d71a840
Fix rendering error when hiding a preview window without border
...
This was a regression introduced in cdcab267 .
Fix #4465
2025-07-22 19:23:10 +09:00
Junegunn Choi
08027e7a79
Fix --no-header-lines-border behavior
...
It should be different from --header-lines-border=none according to the
man page. It should merge two headers unlike the latter.
2025-07-22 19:16:55 +09:00
Junegunn Choi
ead302981c
Add support for {*n} and {*nf} placeholder
...
Close #4458
2025-07-20 10:53:58 +09:00
junegunn
fe0ffa14ff
Deploying to master from @ junegunn/fzf@821b8e70a8 🚀
2025-07-20 00:02:23 +00:00
Junegunn Choi
821b8e70a8
[neovim] Fix margin background color when &winborder is used
...
Fix #4453
2025-07-19 16:19:48 +09:00
Jaseem Abid
8ceda54c7d
Fix a typo in README.md ( #4459 )
2025-07-16 23:19:43 +09:00
junegunn
84e515bd6e
Deploying to master from @ junegunn/fzf@dea1df6878 🚀
2025-07-13 00:02:29 +00:00
Junegunn Choi
dea1df6878
Add missing mention of 'bg-cancel' to the man page
2025-07-12 20:09:54 +09:00
Junegunn Choi
0076ec2e8d
0.64.0
2025-07-06 22:11:36 +09:00
Junegunn Choi
82c9671f79
Fix selection lost on revision bump
2025-07-06 22:02:12 +09:00
Junegunn Choi
d364a1122e
Fix regression where header is not updated
2025-07-06 20:24:23 +09:00
Junegunn Choi
fb570e94e7
Update: make generate
2025-07-06 20:03:13 +09:00
Junegunn Choi
6e3c830cd2
Add 'multi' event triggered on multi-selection changes
2025-07-06 10:05:25 +09:00
junegunn
d7db7fc132
Deploying to master from @ junegunn/fzf@ff1550bb38 🚀
2025-07-06 00:02:27 +00:00
Junegunn Choi
ff1550bb38
Normalize halfwidth and fullwidth characers for matching
2025-07-03 20:57:19 +09:00
Junegunn Choi
976001e474
Explain the need to escape placeholders in transform actions
2025-07-02 22:26:56 +09:00
Junegunn Choi
531dd6fb4f
Update copyright year
2025-07-02 22:10:05 +09:00
Junegunn Choi
ba035f2a76
Run preview command when preview window appears after CTRL-Z
...
80b8846318
2025-07-02 21:40:02 +09:00
Junegunn Choi
d34675d3c9
Fix panic caused by incorrect update ordering
...
Fix #4442
Make sure to prepare windows before rendering elements.
Thanks to @nugged for the report.
2025-07-02 21:28:11 +09:00
junegunn
ce95adc66c
Deploying to master from @ junegunn/fzf@397fe8e395 🚀
2025-06-29 00:02:28 +00:00
Junegunn Choi
397fe8e395
0.63.0
2025-06-28 01:11:00 +09:00
Junegunn Choi
111266d832
Reset full-background property after a new line
2025-06-27 23:21:48 +09:00
dependabot[bot]
19d858f9b6
Bump github.com/charlievieth/fastwalk from 1.0.10 to 1.0.12 ( #4431 )
...
Bumps [github.com/charlievieth/fastwalk](https://github.com/charlievieth/fastwalk ) from 1.0.10 to 1.0.12.
- [Release notes](https://github.com/charlievieth/fastwalk/releases )
- [Commits](https://github.com/charlievieth/fastwalk/compare/v1.0.10...v1.0.12 )
---
updated-dependencies:
- dependency-name: github.com/charlievieth/fastwalk
dependency-version: 1.0.12
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>
2025-06-27 15:47:41 +09:00
Junegunn Choi
79690724d8
Fix exact boundary match with --scheme=path or --tiebreak end
...
Fix #4438
2025-06-26 22:33:58 +09:00
Junegunn Choi
5ed87ffcb9
Fix highlight offsets of multi-line entries
...
Fix regression from 4811e52a
2025-06-26 20:48:34 +09:00
Junegunn Choi
b99cb6323f
Update CHANGELOG
2025-06-25 08:34:06 +09:00
Junegunn Choi
debf3d8a8a
Refactor ANSI parser
2025-06-25 08:26:14 +09:00
Junegunn Choi
4811e52af3
Support full-line background color in the list section
...
Close #4432
2025-06-25 02:12:10 +09:00
Junegunn Choi
8d81730ec2
with-nth: Do not trim trailing whitespaces with background colors
...
Example:
echo -en ' \e[48;5;232mhello\e[48;5;147m ' | fzf --ansi --with-nth 1
2025-06-24 20:27:24 +09:00
Junegunn Choi
330a85c25c
Allow \e[K in addition to \e[0K for full-line background
2025-06-23 22:12:32 +09:00
Junegunn Choi
3a21116307
Terminate running background transform on exit (addendum)
...
Close #4422
2025-06-22 01:53:25 +09:00
Junegunn Choi
247d168af6
Terminate running background transform on exit
...
Close #4422
2025-06-21 23:24:38 +09:00
Junegunn Choi
b2a8a283c7
Reorganize code to ensure deletion of temp files
2025-06-21 23:06:46 +09:00
Junegunn Choi
c36ddce36f
Add bg-cancel action to ignore running background transforms
...
Close #4430
Example:
# Implement popup that disappears after 1 second
# * Use footer as the popup
# * Use `bell` to ring the terminal bell
# * Use `bg-transform-footer` to clear the footer after 1 second
# * Use `bg-cancel` to ignore currently running background transform actions
fzf --multi --list-border \
--bind 'enter:execute-silent(echo -n {+} | pbcopy)+bell' \
--bind 'enter:+transform-footer(echo Copied {} to clipboard)' \
--bind 'enter:+bg-cancel+bg-transform-footer(sleep 1)'
2025-06-21 17:28:48 +09:00
Junegunn Choi
c35d9cff7d
Avoid full redraw when changing header and footer windows
2025-06-21 12:40:56 +09:00
Junegunn Choi
549ce3cf6c
Do not reserve a single column at the end when scrollbar is hidden
...
Close #4410
Example:
fzf --pointer '' --marker '' --no-scrollbar --wrap --wrap-sign ''
2025-06-20 08:22:58 +09:00
Junegunn Choi
575bc0768c
Update .goreleaser to build android_arm64 binary ( #4428 )
2025-06-19 22:57:16 +09:00
Junegunn Choi
89334e881e
Update man page and changelog
2025-06-19 22:56:41 +09:00
Junegunn Choi
dcec6354f5
Add {*} placeholder flag
2025-06-19 22:35:23 +09:00
Junegunn Choi
16d338da84
Revert "Add {*} placeholder flag"
...
This reverts commit 27258f7207 .
2025-06-19 12:39:31 +09:00
Junegunn Choi
27258f7207
Add {*} placeholder flag
2025-06-19 01:04:59 +09:00
曹家巧
4d2d6a5ced
chore: fix function name ( #4425 )
...
Signed-off-by: xiaoxiangirl <caojiaqiao@outlook.com >
2025-06-19 00:47:14 +09:00
Junegunn Choi
0c00b203e6
Implement asynchronous transform actions ( #4419 )
...
Close #4418
Example:
fzf --bind 'focus:bg-transform-header(sleep 2; date; echo {})'
2025-06-16 00:39:11 +09:00
Junegunn Choi
3b68dcdd81
Add footer
...
Options:
--footer=STR String to print as footer
--footer-border[=STYLE] Draw border around the footer section
[rounded|sharp|bold|block|thinblock|double|horizontal|vertical|
top|bottom|left|right|line|none] (default: line)
--footer-label=LABEL Label to print on the footer border
--footer-label-pos=COL Position of the footer label
[POSITIVE_INTEGER: columns from left|
NEGATIVE_INTEGER: columns from right][:bottom]
(default: 0 or center)
The default border type for footer is 'line', which draws a single
separator between the footer and the list. It changes its position
depending on `--layout`, so you don't have to manually switch between
'top' and 'bottom'
The 'line' style is now supported by other border types as well.
`--list-border` is the only exception.
2025-06-10 23:02:23 +09:00
Junegunn Choi
39db026161
Fix inconsistent placement of header-lines with border options
...
fzf displayed --header-lines inconsistently depending on the presence of borders:
# --header and --header-lines co-located
seq 10 | fzf --header-lines 3 --header "$(seq 101 103)" --header-first
# --header and --header-lines separated
seq 10 | fzf --header-lines 3 --header "$(seq 101 103)" --header-first --header-lines-border
This commit fixes the inconsistency with the following logic:
* If only one of --header or --header-lines is provided, --header-first
applies to that single header.
* If both are present, --header-first affects only the regular --header,
not --header-lines.
2025-06-10 23:02:23 +09:00
Koichi Murase
f6c589c606
[bash,zsh] Skip comments in ~/.ssh/config
...
For the line "Host host1 # this is a comment", the current
implementation generates words in an inline comment as hostnames.
This patch removes the comment before generating the hostname.
2025-06-09 21:46:53 +09:00
Koichi Murase
2bd29c3172
[bash,zsh] Support "=" after "Hostname" and "Host" in ~/.ssh/config
...
In ~/.ssh/config, "=" can also be used as a separator between the
field name and the value. The current master does not properly handle
this and generate a hostname "=" or one starting with "=". This patch
correctly handles it.
2025-06-09 21:46:53 +09:00
Koichi Murase
4a61f53b85
[bash,zsh] Remove redundant filtering-out of comment/blank lines
...
Comments are anyway removed in the subsequent call to `sub(/#.*/,
"")`, and it becomes a blank line. Blank lines do not have fields, so
they are ignored in the next for-loop.
2025-06-09 21:46:53 +09:00
Koichi Murase
adc9ad28da
[bash,zsh] Correctly exclude the hostname "0.0.0.0"
...
In the current implementation, any hostnames in /etc/hosts containing
"0.0.0.0" as a part (such as "110.0.0.0" would be excluded. "0.0.0.0"
should be checked by the exact match.
2025-06-09 21:46:53 +09:00
Koichi Murase
585cfaef8b
[bash,zsh] Do not end the hostname analysis on "]" in ~/.ssh/known_hosts
...
An entry of the form `[example.com]:port,192.168.0.1 ...` in
~/.ssh/known_hosts are not properly processed. The current
implementation gives up the matching on the first occurrence of `]`,
the subsequent 192.168.0.1 would not be extracted. This patch
continues the analysis and removes "]" together with "[".
This patch also removes the ":port" part from the hostnames in
~/.ssh/known_hosts. One cannot use the form "hostname:port" in the
arguments to the ssh command anyway.
2025-06-09 21:46:53 +09:00
Koichi Murase
b5cd8880b1
[bash,zsh] Process hostnames with uppercase letters in known_hosts
2025-06-09 21:46:53 +09:00
junegunn
44ddab881e
Deploying to master from @ junegunn/fzf@bfa287b66d 🚀
2025-06-08 00:02:27 +00:00
Koichi Murase
bfa287b66d
[bash,zsh] Separate common functions into "shell/common.sh"
2025-06-08 00:00:17 +09:00
Koichi Murase
243e52fa11
[bash,zsh] Work around mawk 1.3.3-20090705 not supporting the POSIX brackets
2025-06-08 00:00:17 +09:00
Koichi Murase
c166eaba6d
[bash,zsh] Work around Solaris awk, which is non-standard
...
Solaris awk at /usr/bin/awk is meant for backward compatibility with
an ancient implementation of 1977 awk in the original UNIX. It lacks
many features of POSIX awk. To use a standard-conforming version in
Solaris, one needs to explicitly use /usr/xpg4/bin/awk.
2025-06-08 00:00:17 +09:00
Koichi Murase
09194c24f2
[bash,zsh] Work around a quirk of macOS awk
...
macOS awk is a variant of nawk, but it contains a unique patch for the
UTF-8 support. However, this patch causes the problem. If the input
contains any non-UTF-8 data, macOS awk stops processing and does not
do anything, instead of ignoring the unrecognized data and continue
the processing. However, the contents of the ssh configuration and
/etc/hosts is not under the control of fzf, so we cannot fix the input
when those files contain non-UTF-8 data. To work around this
behavior, one can set the locale to LC_ALL=C to treat the input data
with the plain 8-bit encoding.
2025-06-08 00:00:17 +09:00
Koichi Murase
ec521e47aa
[bash,zsh] Reduce the number of fork & exec
2025-06-05 13:02:11 +09:00
Koichi Murase
e3f4a51c18
[zsh] Set shell options for pathname expansion "~/.ssh/config.d/*"
...
This applies the same changes as commit 0a06fd6f for Bash (GitHub PR
2025-06-05 13:02:11 +09:00
Koichi Murase
0a06fd6f63
[bash] Set shell options for pathname expansion "~/.ssh/config.d/*" ( #4405 )
2025-06-03 20:47:28 +09:00
Koichi Murase
70eace5290
Fix the CI failure for PR caused by a spelling mistake ( #4406 )
2025-06-03 19:41:47 +09:00
junegunn
40f9f254a9
Deploying to master from @ junegunn/fzf@15d6c17390 🚀
2025-06-01 00:02:34 +00:00
Junegunn Choi
15d6c17390
Fix ANSI attributes lost when nth:regular is set
...
Example:
# foo was not displayed in italic
echo -e "\x1b[33;3mfoo \x1b[mbar" | fzf --ansi --color fg:dim,nth:regular --nth 1
2025-05-30 21:02:35 +09:00
Junegunn Choi
a9d1d42436
Fix ANSI attributes lost when 'regular' attribute is set to fg or nth
...
Examples:
echo -e "\x1b[33;3mfoo \x1b[mbar" | fzf --ansi --color fg:regular
echo -e "\x1b[33;3mfoo \x1b[mbar" | fzf --ansi --color nth:regular
2025-05-30 20:43:20 +09:00
Junegunn Choi
1ecfa38eee
[bash] Fix 'complete' errors when IFS is newline
...
Fix #4342
2025-05-30 20:41:50 +09:00
Junegunn Choi
54fd92b7dd
--no-color: Keep ANSI attributes in the list
...
Example:
echo -e "\x1b[33;3mfoo \x1b[34;4mbar\x1b[m baz" | fzf --ansi --no-color
2025-05-30 20:33:21 +09:00
Junegunn Choi
835906d392
--no-color: Keep ANSI attributes in preview window
...
Example:
fzf --preview 'echo -e "\x1b[33;3mfoo \x1b[34;4mbar\x1b[m baz"' --no-color
2025-05-30 20:26:53 +09:00
Junegunn Choi
1721e6a1ed
Do not apply 'nth' attributes to trailing whitespaces
...
# foo bar
# ----- <- previously underlined trailing whitespace
# --- <- with the fix, trailing whitespace is excluded
fzf --color nth:underline --nth 1 <<< 'foo bar'
2025-05-30 19:43:10 +09:00
Junegunn Choi
c7ee3b833f
Fix FZF_CLICK_HEADER_NTH for multi-line headers
2025-05-30 17:10:26 +09:00
Junegunn Choi
ffb6e28ca7
Allow customizing --ghost color via '--color ghost'
...
Examples:
# Dimmed red
fzf --ghost booya --color ghost:red
# Regular red
fzf --ghost booya --color ghost:red:regular
Close #4398
2025-05-28 00:27:33 +09:00
Junegunn Choi
a4c6846851
Fix background color of 'disabled' query
...
fzf --color disabled:red,list-bg:blue --disabled --query foo --input-border
2025-05-28 00:17:41 +09:00
Junegunn Choi
d18c0bf694
[man] Add GET endpoint example
2025-05-22 21:57:04 +09:00
Junegunn Choi
4e3f9854e6
Update README.md
2025-05-17 22:06:06 +09:00
Junegunn Choi
b27943423e
Show ellipsis for truncated labels
...
Close #4390
2025-05-17 11:25:15 +09:00
Junegunn Choi
894a1016bc
RuboCop lint
2025-05-17 11:20:29 +09:00
Junegunn Choi
efe6cddd34
Update README
2025-05-16 22:15:38 +09:00
Junegunn Choi
f1c6bdf3e8
Update README
2025-05-16 22:15:06 +09:00
Junegunn Choi
710659bcf5
Update SECURITY.md
2025-05-14 11:06:15 +09:00
Josef Andersson
be67775da4
Add initial security policy ( #4379 )
...
Signed-off-by: Josef Andersson <janderssonse@proton.me >
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2025-05-14 11:05:20 +09:00
jiz4oh
2c6381499c
[neovim] Respect winborder of Neovim 0.11+ ( #4389 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2025-05-14 00:53:26 +09:00
junegunn
4df842e78c
Deploying to master from @ junegunn/fzf@b81696fb64 🚀
2025-05-11 00:02:09 +00:00
Ajeet D'Souza
b81696fb64
bash: set keybinding right before printing special character ( #4377 )
2025-05-10 15:29:27 +09:00
Junegunn Choi
d226d841a1
0.62.0
2025-05-04 18:31:18 +09:00
Junegunn Choi
c6d83047e5
Allow whitespace as separator in --color option
2025-05-04 15:08:23 +09:00
Junegunn Choi
46dabccdf1
[vim] Update g:fzf_colors example with 'query'
2025-05-04 14:52:22 +09:00
Junegunn Choi
cd9517b679
Add 'alt-bg' color for striped lines ( #4370 )
...
Test cases:
1. 'jump' should show alternating background colors even when 'alt-bg' is
not defined as before.
go run main.go --bind load:jump
Two differences:
* The alternating lines will not be in bold (was a bug)
* The marker column will not be rendered with alternating background color
2. Use alternating background color when 'alt-bg' is set
go run main.go --color bg:238,alt-bg:237
go run main.go --color bg:238,alt-bg:237 --highlight-line
3. 'selected-bg' should take precedence
go run main.go --color bg:238,alt-bg:237,selected-bg:232 \
--highlight-line --multi --bind 'load:select+up+select+up'
4. Should work with text with ANSI colors
declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
bat --plain --language bash --color always |
go run main.go --read0 --ansi --reverse --multi \
--color bg:237,alt-bg:238,current-bg:236 --highlight-line
---
Close #4354
Fix #4372
2025-05-04 14:32:06 +09:00
junegunn
cd6677ba1d
Deploying to master from @ junegunn/fzf@9c1a47acf7 🚀
2025-05-04 00:02:25 +00:00
bitraid
9c1a47acf7
[fish] Support deleting history items with SHIFT-DEL
...
Bind to SHIFT-DELETE a command that deletes the selected history items.
It can be overridden by $FZF_CTRL_R_OPTS.
2025-04-28 00:27:51 +09:00
bitraid
0c280a3ce1
[fish] Simplify commandline call in fzf-file-widget
2025-04-28 00:27:51 +09:00
bitraid
53e8b6e705
[fish] Add version check
2025-04-28 00:27:51 +09:00
bitraid
ad33165fa7
[fish] History: Operate only on line at cursor
...
This allows inserting history entries when constructing multiline
commands.
2025-04-28 00:27:51 +09:00
junegunn
2055db61c8
Deploying to master from @ junegunn/fzf@d2c662e54f 🚀
2025-04-27 00:02:22 +00:00
Junegunn Choi
d2c662e54f
Reset coordinator delay on 'reload'
...
Fix #4364
2025-04-25 21:30:25 +09:00
Junegunn Choi
d24b58ef3f
0.61.3
2025-04-22 20:53:23 +09:00
RafaelDominiquini
06ae9b0f3b
Add missing environment variables ( #4356 )
...
Co-authored-by: Rafael Baboni Dominiquini <rafaeldominiquini@gmail.com >
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2025-04-22 20:51:43 +09:00
Junegunn Choi
2a9c1c06a4
Revert "Disable tmux popup when already running inside one ( #4351 )"
...
This reverts commit af8fe918d8 .
Fix #4360
Fix #4359
2025-04-22 20:20:21 +09:00
Junegunn Choi
90ad1b7f22
0.61.2
2025-04-20 11:37:15 +09:00
Junegunn Choi
f22fbcd1af
Fix typo and update CHANGLOG
2025-04-20 11:31:15 +09:00
Junegunn Choi
1d761684c5
Add --tty-default=/dev/tty and --no-tty-default option ( #4352 )
...
Fix #4242 .
Use --no-tty-default, if you want fzf to perform a TTY look-up instead of defaulting to /dev/tty.
2025-04-20 11:24:50 +09:00
bitraid
e491770f1c
[fish] Improve option prefix processing
...
- Support single-letter options without = such as -fFILEPATH
- fish v3.3.0 and newer: Disable option prefix if -- is preceded
2025-04-18 21:06:25 +09:00
bitraid
a41be61506
[fish] Fix whitespace/regex characters in command line
...
This is a rewrite of __fzf_parse_commandline function, that fixes the
following issues, when CTRL-T/ALT-C is used and current command line
token contains:
- Escaped newlines (\n): This never worked correctly, but after 282884a ,
the string would split, and the script would enter an infinite loop
while trying to set $dir.
- Escaped bell (\a, \cg), backspace (\b), form feed (\v, \cl), carriage
return (\r), vertical tab (\v, \ck): walker-root would not set
correctly for existing directories containing any of those characters.
- Regular expression special characters (^, +, ? etc): $dir would not be
be stripped from $fzf_query if it contained any of those characters.
The lowest supported fish version is v3.1b. For optimal operation, the
function uses more recent commands when supported by the running
version. Specifically, for versions equal or newer than:
- v3.2.0: Sets variables using PCRE2 capture groups of `string match
--regex` when needing to preserve any trailing newlines and
simultaneously omit the extra newline that is appended by `string
collect -N`.
- v3.5.0: Uses the builtin path command for path normalization, dirname
extraction and existing directories check.
- v4.0.0: Uses the --tokens-expanded option of commandline, for
expansion and dealing with unbalanced quotes and incomplete escape
sequences. It also uses the regex style of string-escape, to prepare
variable contents for regex operations. This is not used in older
versions, because they don't escape newlines.
2025-04-18 21:06:25 +09:00
bitraid
1a8f633611
[fish] Fix for file/dir names containing newlines
...
CTRL-T/ALT-C now works correctly when selecting files or directories
that contain newlines in their names. When external commands defined by
$FZF_CTRL_T_COMMAND/$FZF_ALT_C_COMMAND are used (for example the fd
command with -0 switch), the --read0 option must also be set through
$FZF_CTRL_T_OPTS/$FZF_ALT_C_OPTS.
2025-04-18 21:06:25 +09:00
Pierre Guinoiseau
af8fe918d8
Disable tmux popup when already running inside one ( #4351 )
2025-04-18 17:35:48 +09:00
istepic
8ef9dfd9a2
Update reference to manpage in README.md ( #4348 )
2025-04-18 08:38:28 +09:00
phanium
66df24040f
Fix panic when use header border without pointer/marker ( #4345 )
2025-04-13 20:24:29 +09:00
junegunn
ed4442d9ea
Deploying to master from @ junegunn/fzf@0edb5d5ebb 🚀
2025-04-13 00:26:08 +00:00
Junegunn Choi
0edb5d5ebb
Fix trailing ␊ not rendered with '--read0 --no-multi-line'
...
https://github.com/junegunn/fzf/pull/4334#issue-2966013714
# Should display foo␊
echo -en "foo\n" | fzf --read0 --no-multi-line
2025-04-11 20:46:49 +09:00
Junegunn Choi
9ffc2c7ca3
reader: Do not append '/' to '/'
...
https://github.com/junegunn/fzf/pull/4334#issue-2966013714
2025-04-11 20:38:16 +09:00
Junegunn Choi
93cb3758b5
0.61.1
2025-04-06 13:09:59 +09:00
Junegunn Choi
d22e75dcdd
Disable bracketed paste mode on exit
...
Related: #4338
2025-04-06 12:51:36 +09:00
junegunn
a1b2a6fe2c
Deploying to master from @ junegunn/fzf@e15cba0c8c 🚀
2025-04-06 00:02:12 +00:00
Junegunn Choi
e15cba0c8c
0.61.0
2025-03-30 19:51:28 +09:00
Junegunn Choi
31fd207ba2
Add 'r' flag (raw) for unquoted output
...
By default, placeholder expressions are automatically quoted to ensure
they are safely passed as arguments to external programs.
The r flag ({r}, {r1}, etc.) disables this behavior, outputting the
evaluated value without quotes.
For example,
echo 'foo bar' | fzf --preview 'echo {} {r}'
The preview command becomes:
echo 'foo bar' foo bar
Since `{r}` expands to unquoted "foo bar", 'foo' and 'bar' are passed
as separate arguments.
**Use with caution** Unquoted output can lead to broken commands.
echo "let's go" | fzf --preview 'echo {r}'
Close #4330
2025-03-30 19:49:05 +09:00
Junegunn Choi
ba6d1b8772
Add change-ghost and transform-ghost
2025-03-28 23:35:20 +09:00
Junegunn Choi
0dce561ec9
Fix header window not updated on change-header
2025-03-28 23:23:43 +09:00
dependabot[bot]
376142eb0d
Bump github.com/charlievieth/fastwalk from 1.0.9 to 1.0.10 ( #4307 )
...
Bumps [github.com/charlievieth/fastwalk](https://github.com/charlievieth/fastwalk ) from 1.0.9 to 1.0.10.
- [Release notes](https://github.com/charlievieth/fastwalk/releases )
- [Commits](https://github.com/charlievieth/fastwalk/compare/v1.0.9...v1.0.10 )
---
updated-dependencies:
- dependency-name: github.com/charlievieth/fastwalk
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>
2025-03-28 23:05:34 +09:00
Junegunn Choi
664ee1f483
Add change-pointer and transform-pointer
...
Close #4178
2025-03-28 21:28:25 +09:00
Junegunn Choi
dac5b6fde1
Fix info not updated after track-current is disabled due to race condition
2025-03-26 16:00:05 +09:00
Junegunn Choi
998c57442b
Fix query precedence in an action chain ( #4326 )
...
When 'search' and any action that modifies the query are in an action
chain, anything that comes later takes precedence.
2025-03-26 15:47:43 +09:00
Junegunn Choi
4a0ab6c926
Improve query modification prevention in input-less mode
...
fzf would restore the original query in input-less mode after executing
a chain of actions.
This commit changes the behavior so that the restoration
happens after each action to allow something like
'show-input+change-query(...)+hide-input'.
Fix #4326
2025-03-26 10:34:52 +09:00
Junegunn Choi
f43e82f17f
Do not ignore current query when input is hidden
...
* The initial query given by --query should be respected
* The current query should still be respected after `hide-input`
(or `toggle-input)
Fix #4327
2025-03-25 21:08:06 +09:00
Junegunn Choi
62238620a5
Fix first entry not clickable when input section is hidden
...
Fix #4325
2025-03-24 22:08:57 +09:00
Junegunn Choi
200745011a
Fix cursor position when prompt is truncated
...
e.g.
fzf --preview 'cat {}' --prompt "$(seq 100 | xargs)"
fzf --preview 'cat {}' --prompt "$(seq 100 | xargs)" --input-border
2025-03-24 17:09:44 +09:00
Junegunn Choi
82fd88339b
Fix offset-middle not updating the list
2025-03-23 11:13:21 +09:00
junegunn
de0f2efbfb
Deploying to master from @ junegunn/fzf@29cf28d845 🚀
2025-03-23 00:02:20 +00:00
Junegunn Choi
29cf28d845
Suppress 'change' event during bracketed paste mode
...
Close #4316
2025-03-22 09:17:18 +09:00
Junegunn Choi
7e4dbb5f3b
Prevent start:track-current from being disabled
...
# track-current state can be immediately disabled
fzf --sync --bind 'start:track-current'
2025-03-20 11:51:20 +09:00
Junegunn Choi
923c3a814d
[bash] Fix $FZF_COMPLETION_{DIR,PATH}_OPTS to support non-trivial arguments
...
This used to fail with 'unknown option: World>'
export FZF_COMPLETION_PATH_OPTS="--prompt 'Hello World> '"
2025-03-17 18:12:26 +09:00
Junegunn Choi
779e3cc5b5
[vim] Use 24-bit colors on gvim even when &termguicolors is off
...
Close #2563
2025-03-17 17:46:56 +09:00
junegunn
3f3d1ef8f5
Deploying to master from @ junegunn/fzf@f92f9f137a 🚀
2025-03-16 00:02:19 +00:00
Junegunn Choi
f92f9f137a
Fix wrapping of the list section
...
# The first line of the second chunk would prematurely wrap
printf '%0500s\n\n%0500s' 0 0 | fzf --wrap --read0
2025-03-16 01:57:20 +09:00
Junegunn Choi
87f7f436e8
Fix ghost text with inline info
...
Fix #4312
2025-03-15 18:42:08 +09:00
Junegunn Choi
4298c0b1eb
Add --ghost=TEXT to display a ghost text when the input is empty
2025-03-14 16:46:23 +09:00
Gabriel Marin
6c104d771e
Change 'interface{}' to 'any' ( #4308 )
2025-03-11 14:24:54 +09:00
Junegunn Choi
aefb9a5bc4
Nullify unwanted FZF_DEFAULT_* variables in tmux popup
...
Fix #4298
2025-03-10 18:18:50 +09:00
Junegunn Choi
8868d7cbb8
Add .idea to .gitignore
2025-03-10 18:15:53 +09:00
junegunn
10cbac20f9
Deploying to master from @ junegunn/fzf@26bcd0c90d 🚀
2025-03-09 00:01:51 +00:00
Junegunn Choi
26bcd0c90d
README: Sponsors ❤️
2025-03-04 18:30:50 +09:00
Junegunn Choi
fbece2bb67
Update README
2025-03-04 17:43:02 +09:00
Junegunn Choi
0012183ede
0.60.3
2025-03-03 17:10:49 +09:00
Junegunn Choi
8916cbc6ab
[windows] Prevent fzf from consuming user input while paused
...
This partly fixes #4260 .
fzf still can consume the first key stroke.
2025-03-03 14:04:16 +09:00
junegunn
21ce70054f
Deploying to master from @ junegunn/fzf@3ba82b6d87 🚀
2025-03-02 00:02:11 +00:00
Junegunn Choi
3ba82b6d87
Make truncateQuery faster
...
https://github.com/junegunn/fzf/issues/4292#issuecomment-2687051731
2025-02-27 15:49:15 +09:00
Junegunn Choi
e771c5d057
Update README
2025-02-27 14:01:13 +09:00
Junegunn Choi
4e5e925e39
Increase the query length limit from 300 to 1000
...
Close #4292
2025-02-27 11:43:58 +09:00
Junegunn Choi
b7248d4115
Remove temp files before 'become' when using --tmux option
...
Close #4283
But the temp files for the `f` flags in the 'become' template will not
be removed, because we will need them after "becoming" another program.
e.g. fzf --bind 'enter:become:cat {f}'
2025-02-26 20:47:09 +09:00
Junegunn Choi
639253840f
Trim trailing whitespaces after processing ANSI sequences
...
Close #4282
2025-02-26 16:17:12 +09:00
Junegunn Choi
710ebdf9c1
Make --accept-nth compatible with --select-1
...
Fix #4287
2025-02-26 00:25:23 +09:00
bitraid
bb64d84ce4
[fish] Enable multiple history commands insertion ( #4280 )
...
Enable inserting multiple history commands. To disable, set `--no-multi`
through `$FZF_CTRL_R_OPTS`.
Also, remove the usage of `become` action, to avoid leaving behind
temporary files.
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2025-02-26 00:18:56 +09:00
alex-huff
cd1da27ff2
Fix condition for using item numlines cache ( #4285 )
2025-02-25 20:25:26 +09:00
Junegunn Choi
c1accc2e5b
Use '/' as path separator on MSYS2
...
Fix #4281
2025-02-25 10:12:19 +09:00
Junegunn Choi
e4489dcbc1
Fix regression: Trim trailing whitespaces when using --with-nth
...
https://github.com/junegunn/fzf/issues/4272#issuecomment-2677279620
2025-02-24 18:40:13 +09:00
Junegunn Choi
c0d407f7ce
0.60.2
2025-02-23 19:52:57 +09:00
Junegunn Choi
461115afde
Add support for {n} in --with-nth and --accept-nth templates
...
Close #4275
2025-02-23 19:47:56 +09:00
junegunn
bae1965231
Deploying to master from @ junegunn/fzf@b89c77ec9a 🚀
2025-02-23 00:02:08 +00:00
Junegunn Choi
b89c77ec9a
Mention that actions after accept or abort are ignored ( #4271 )
2025-02-22 22:19:16 +09:00
Junegunn Choi
1ca5f09d7b
Explain the difference of template from a single field index expression
...
Close #4272
2025-02-22 22:14:49 +09:00
Junegunn Choi
d79902ae59
Fix 'jump' when pointer is empty
...
Fix #4270
2025-02-22 19:05:30 +09:00
phanium
77568e114f
Don't trim last field when delimiter is regex ( #4266 )
2025-02-21 22:21:55 +09:00
Junegunn Choi
a24d274a3c
0.60.1
2025-02-20 21:42:56 +09:00
Junegunn Choi
dac81432d6
[zsh/key-bindings] don't unescape FZF_DEFAULT_OPTS (addendum: #4262 )
2025-02-20 20:58:21 +09:00
Steve Williams
309b5081ef
[zsh/completion] don't unescape FZF_DEFAULT_OPTS ( #4262 )
2025-02-20 20:55:23 +09:00
bitraid
91bc4f2671
[fish] Add comment about fish version compatibility
2025-02-20 08:30:30 +09:00
bitraid
4c9d37d919
[fish] Reorder functions
...
Move the helper functions to the top of the main function, and the main
function commands (bind command) to the bottom.
2025-02-20 08:30:30 +09:00
bitraid
7e9566f66a
[fish] Refactor bind commands
...
Use single check for each default command variable.
2025-02-20 08:30:30 +09:00
bitraid
3f7e8a475d
[fish] Refactor fzf-cd-widget
...
- Remove check/set of FZF_TMUX_HEIGHT variable. It is already done by
__fzf_defaults.
- Remove unnecessary begin/end block.
- Simplify result variable check.
- Set the command line using a single call to commandline.
2025-02-20 08:30:30 +09:00
bitraid
1cf7c0f334
[fish] Refactor fzf-history-widget
...
- Remove check/set of FZF_TMUX_HEIGHT variable. It is already done by
__fzf_defaults.
- Remove unnecessary begin/end block.
- Pass all fzf options (except query) through FZF_DEFAULT_OPTS variable.
2025-02-20 08:30:30 +09:00
bitraid
ff8ee9ee4e
[fish] Refactor fzf-file-widget
...
- Remove check/set of FZF_TMUX_HEIGHT variable. It is already done by
__fzf_defaults.
- Remove unnecessary begin/end block.
- Simplify result variable check.
- Insert file names using a single call to commandline.
2025-02-20 08:30:30 +09:00
bitraid
cbbd939a94
[fish] Refactor __fzf_parse_commandline, remove __fzf_get_dir
...
The __fzf_get_dir function was called only once, and was basically a
single command in a while loop.
2025-02-20 08:30:30 +09:00
bitraid
f232df2887
[fish] __fzfcmd: Don't set FZF_TMUX
...
The FZF_TMUX variable check has already been changed from numeric to
string, so there is no need to set it to 0 if it's empty or undefined.
2025-02-20 08:30:30 +09:00
bitraid
16bfb2c80c
[fish] Refactor __fzf_defaults
...
Append all arguments after the first one, so that functions don't have
to pass all appending options as a single string. Also, output
everything as a single string (an array of one item).
2025-02-20 08:30:30 +09:00
Junegunn Choi
0ba066123e
Fix case where preview window is not scrollable ( #4258 )
...
When the last rendered line was wrapped, fzf would incorrectly determine
the scrollability of the window.
2025-02-20 08:22:43 +09:00
Junegunn Choi
81c51c26cc
[man] Describe what 'smart-case' mode is
...
Close #4256
2025-02-20 08:02:04 +09:00
Junegunn Choi
6fa8295ac5
walker: Append path separator to directories
...
Close #4255
2025-02-18 22:03:59 +09:00
Junegunn Choi
f975b40236
Fix {q} in preview window affected by 'search' action
2025-02-18 10:08:47 +09:00
Alexei Șerșun
01d9d9c8c8
Normalize char before pattern lookup ( #4252 )
...
There is an edge-case in FuzzyMatchV1 during backward scan, related to
normalization: if string is initially denormalized (e.g. Unicode symbol),
backward scan will proceed further to the next char; however, when the
score is computed, the string is normalized first, then scanned based on
the pattern. This leads to accessing pattern index increment, which
itself leads to out-of-bound index access, resulting in a panic.
To illustrate the process, here's the sequence of operations when search
is perfored:
1. during backward scan by "minim" pattern
```
xxxxx Minímal example
^^^^^^^^^^^^
||||||||||||
miniiiiiiiim <- compute score for this substring
```
2. during compute score by "minim" pattern
```
Minímal exam
minimal exam <- normalize chars before computing the score
^^^^^^
||||||
minim <- at this point the pattern is already fully scanned and index
is out-of-the-bound
```
In this commit the char is normalized during backward scan, to detect
properly the boundaries for the pattern.
2025-02-17 20:50:15 +09:00
Junegunn Choi
1eafc4e5d9
Ignore NULL byte before CSI 6N response
...
Close #2455
2025-02-16 21:18:01 +09:00
junegunn
38e4020aa8
Deploying to master from @ junegunn/fzf@ac32fbb3b2 🚀
2025-02-16 00:02:15 +00:00
Junegunn Choi
ac32fbb3b2
Avoid printing items in an extremely narrow screen
2025-02-13 22:12:25 +09:00
Junegunn Choi
7d26eca5cc
Truncate wrap sign in the list section if necessary
2025-02-13 21:50:53 +09:00
Junegunn Choi
3347d61591
0.60.0
2025-02-13 00:54:21 +09:00
Junegunn Choi
9abf2c8c9c
Allow suffix match on --nth with custom --delimiter
...
When --nth is used with a custom --delimiter, the last delimiter was
included in the search scope, forcing you to write the delimiter in
a suffix-match query. This commit removes the last delimiter from the
search scope.
# No need to write 'bar,$'
echo foo,bar,baz | fzf --delimiter , --nth 2 --filter 'bar$'
This can be seen as a breaking change, but I'm gonna say it's a bug fix.
Fix #3983
2025-02-12 20:53:32 +09:00
Junegunn Choi
84e2262ad6
Make --accept-nth and --with-nth support templates
2025-02-12 20:15:04 +09:00
Junegunn Choi
378137d34a
Simplify code
2025-02-11 23:43:43 +09:00
Junegunn Choi
66ca16f836
Truncate wrap signs in extremely narrow preview window
2025-02-11 23:41:54 +09:00
bitraid
282884ad83
[fish] Unescape query from commandline ( #4236 )
...
More natural processing of the query taken from command line, by
unquoting/unescaping the token. Unescaped open quotes are removed.
Because of how `string unescape` works, if both single and double quotes
are present, with the outer quotes open, only the outer quotes are
removed.
Examples:
`'foo bar'`, `"foo bar"`, `foo\ bar` becomes `foo bar`
`"foobar`, `'foobar`, `foo"bar`, `foo'bar` becomes `foobar`
`'"foo"'`, `'"foo"` becomes `"foo"`
`"'foo'"`, `"'foo'` becomes `'foo'`
`"'foo` becomes `'foo`
`'"foo` becomes `"foo`
2025-02-11 23:19:40 +09:00
dependabot[bot]
7877ac42f0
Bump golang.org/x/term from 0.28.0 to 0.29.0 ( #4234 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.28.0 to 0.29.0.
- [Commits](https://github.com/golang/term/compare/v0.28.0...v0.29.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>
2025-02-11 00:41:55 +09:00
Junegunn Choi
19ef8891e3
Print --wrap-sign in preview window
...
Close #4233
2025-02-11 00:01:50 +09:00
Coko
bfea9e53a6
fzf-preview.sh: Use kitten icat on ghostty ( #4232 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2025-02-09 20:02:05 +09:00
Junegunn Choi
a2420026ab
Rename actions: exclude and exclude-multi
...
https://github.com/junegunn/fzf/pull/4231#issuecomment-2646067669
2025-02-09 13:52:20 +09:00
Junegunn Choi
1be1991299
Add exclude-current action
...
https://github.com/junegunn/fzf/pull/4231#issuecomment-2646063208
2025-02-09 13:37:22 +09:00
Junegunn Choi
67dd7e1923
Add 'exclude' action for excluding current/selected items from the result ( #4231 )
...
Close #4185
2025-02-09 13:22:33 +09:00
Junegunn Choi
2b584586ed
Add --accept-nth option to transform the output
...
This option can be used to replace a sed or awk in the post-processing step.
ps -ef | fzf --multi --header-lines 1 | awk '{print $2}'
ps -ef | fzf --multi --header-lines 1 --accept-nth 2
This may not be a very "Unix-y" thing to do, so I've always felt that fzf
shouldn't have such an option, but I've finally changed my mind because:
* fzf can be configured with a custom delimiter that is a fixed string
or a regular expression.
* In such cases, you'd need to repeat the delimiter again in the
post-processing step.
* Also, tools like awk or sed may interpret a regular expression
differently, causing mismatches.
You can still use sed, cut, or awk if you prefer.
Close #3987
Close #1323
2025-02-09 11:53:35 +09:00
Eric Chen
a1994ff0ab
Update README.md ( #4225 )
2025-02-09 09:19:15 +09:00
junegunn
ca0e858871
Deploying to master from @ junegunn/fzf@06c6615507 🚀
2025-02-09 00:02:24 +00:00
bitraid
06c6615507
[fish] Fix for directories with special characters ( #4230 )
...
Using CTRL-T or ALT-C when the current command line token contained a
directory with special characters, the script would fail to detect it.
For exampe, an existing directory named `it\'s\ a\ test`, instead of
using it as walker-root, it would use it as the query.
2025-02-08 22:18:05 +09:00
Junegunn Choi
818d0be436
Fix change-header-label+change-header
...
Fix #4227
2025-02-07 20:57:09 +09:00
Junegunn Choi
fcd2baa945
Fix scrolling performance when --wrap is enabled
...
Fix #4221
2025-02-06 22:30:39 +09:00
Junegunn Choi
62e0a2824a
Fix nth highlighting
...
Fix #4222
2025-02-06 19:57:39 +09:00
Junegunn Choi
bbe1721a18
0.59.0
2025-02-02 23:39:47 +09:00
Junegunn Choi
c1470a51b8
Update Dockerfile
2025-02-02 23:10:53 +09:00
Junegunn Choi
6ee31d5dc5
Fix failing test case
2025-02-02 17:46:14 +09:00
Junegunn Choi
65d74387e7
Stop processing more actions after a terminal action (accept, abort, etc.)
2025-02-02 16:28:32 +09:00
junegunn
7d0ea599c4
Deploying to master from @ junegunn/fzf@b7795a3dea 🚀
2025-02-02 00:02:12 +00:00
Junegunn Choi
b7795a3dea
Fix RuboCop errors
2025-02-02 02:48:04 +09:00
Junegunn Choi
323f6f6202
Fix mode switching example in CHANGELOG
2025-02-02 02:26:13 +09:00
Junegunn Choi
0c61223884
Fix tcell renderer's pause and resume
2025-02-02 02:23:48 +09:00
Junegunn Choi
32234be7a2
FZF_KEY enhancements
...
* 'enter' instead of 'ctrl-m'
* 'space' instead of ' '
2025-02-02 02:23:47 +09:00
Junegunn Choi
178b49832e
Fix {show,hide,toggle}-input and add test cases
2025-02-01 17:23:22 +09:00
Junegunn Choi
18cbb4a84d
Display header lines at the top in 'reverse-list' layout
2025-02-01 17:03:59 +09:00
Junegunn Choi
e84afe196a
Add {show,hide,toggle}-input and expose $FZF_INPUT_STATE
2025-02-01 17:03:59 +09:00
Junegunn Choi
e1e171a3c4
Add toggle-bind
2025-02-01 17:03:59 +09:00
Junegunn Choi
d075c00015
Fix --layout reverse-list --no-input
2025-02-01 09:28:02 +09:00
Junegunn Choi
6c0ca4a64a
Add --no-input to hide the input section ( #4210 )
...
Close #2890
Close #1396
You can't type in queries in this mode, and the only way to trigger an
fzf search is to use `search(...)` action.
# Click header to trigger search
fzf --header '[src] [test]' --no-input --layout reverse \
--header-border bottom --input-border \
--bind 'click-header:transform-search:echo ${FZF_CLICK_HEADER_WORD:1:-1}'
2025-01-30 00:50:46 +09:00
dependabot[bot]
6b5d461411
Bump crate-ci/typos from 1.28.4 to 1.29.4 ( #4161 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.28.4 to 1.29.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.28.4...v1.29.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>
2025-01-29 17:11:12 +09:00
Junegunn Choi
7419e0dde1
Update ADVANCED.md
2025-01-29 17:09:22 +09:00
bitraid
cf2bb5e40e
[fish] Improve fish binary path detection ( #4208 )
...
Instead of exporting a local `$SHELL` containing the location of fish in
`$PATH` when global `$SHELL` is not fish, always set `--with-shell` with
the actual binary path of fish that the function is running from.
2025-01-28 21:34:21 +09:00
Moritz Dietz
f466e94d65
Fix typos in ADVANCED.md ( #4209 )
2025-01-28 21:26:52 +09:00
Junegunn Choi
eb0257d48f
Enhance --min-height option to take number followed by +
2025-01-28 18:34:12 +09:00
Junegunn Choi
b83dd6c6b4
Update ADVANCED example using 'search' action
2025-01-28 17:48:46 +09:00
Junegunn Choi
51c207448d
Set the default value of --min-height depending on other options
2025-01-27 20:33:47 +09:00
Junegunn Choi
a6a558da30
Update junegunn/go-shellwords
2025-01-27 19:21:22 +09:00
Junegunn Choi
2bf5fa27be
[completion] Replace 'tr' with built-in string substitution
2025-01-27 19:19:08 +09:00
Junegunn Choi
af7940746f
Fix test case
2025-01-27 18:12:25 +09:00
Junegunn Choi
a2aa1a156c
Allow {q} placeholders with range expressions
...
e.g. {q:1}, {q:2..}
2025-01-27 18:04:57 +09:00
Junegunn Choi
2f8a72a42a
More match_count fixes
2025-01-27 15:22:39 +09:00
Junegunn Choi
8179ca5eaa
Fix edge cases in --bind where ',' or ':' are chained ( #4206 )
2025-01-27 09:30:53 +09:00
Junegunn Choi
4b74f882c7
[test] Prefer match_count over item_count
...
match_count can lag behind item_count and can cause intermittent failures.
2025-01-27 02:08:52 +09:00
Junegunn Choi
7cf45af502
Add --bind example (multi-key binding)
2025-01-27 02:08:39 +09:00
Junegunn Choi
46c21158d8
Update CHANGELOG
2025-01-27 01:52:24 +09:00
Junegunn Choi
80da0776f8
Allow actions to multiple keys and events at once
...
Close #4206
2025-01-27 01:46:21 +09:00
Junegunn Choi
e91f10ab16
Enhance click-header event
...
* Expose the name of the mouse action as $FZF_KEY
* Trigger click-header on mouse up
* Enhanced clickable header for `kill` completion
2025-01-27 01:10:08 +09:00
Junegunn Choi
2c15cd7923
[completion] Make kill completion header clickable
2025-01-26 16:11:15 +09:00
Junegunn Choi
d6584543e9
Make click-header export $FZF_CLICK_HEADER_{NTH,WORD}
2025-01-26 15:37:42 +09:00
junegunn
c13228f346
Deploying to master from @ junegunn/fzf@7220d8233e 🚀
2025-01-26 00:02:08 +00:00
Junegunn Choi
7220d8233e
Add 'search' and 'transform-search'
...
Close #4202
2025-01-26 01:50:08 +09:00
Junegunn Choi
0237bf09bf
Split integration test file ( #4205 )
2025-01-25 19:57:40 +09:00
Junegunn Choi
04017c25bb
Add 'bell' action to ring the terminal bell
2025-01-25 11:22:32 +09:00
Junegunn Choi
02199cd609
Update CHANGLOG
2025-01-25 10:58:24 +09:00
bitraid
26b9f5831a
[fish] Fix compatibility with v3.1.2 - v3.3.1 ( #4200 )
...
Don't use the command substitution syntax: $(cmd)
Fix #4196
2025-01-24 17:15:43 +09:00
Junegunn Choi
243a76002c
Option to prioritize file name matches ( #4192 )
...
* 'pathname' is a new tiebreak option for prioritizing matches occurring
in the file name of the path.
* `--scheme=path` will automatically set `--tiebreak=pathname,length`.
* fzf will automatically choose `path` scheme when the input is a TTY device,
where fzf would start its built-in walker or run `$FZF_DEFAULT_COMMAND`
which is usually a command for listing files.
Close #4191
2025-01-24 00:54:53 +09:00
Junegunn Choi
c71e4ddee4
Make it possible to change one-time preview window
2025-01-23 18:45:36 +09:00
Junegunn Choi
32eb8c1be9
Fix resizing of a one-time preview window
2025-01-23 18:41:06 +09:00
Junegunn Choi
c587017830
Fix header window location and size
2025-01-23 14:45:36 +09:00
Junegunn Choi
fb885652cc
Fix RuboCop errors
2025-01-23 09:43:12 +09:00
Junegunn Choi
afc2f05e5e
Fix --info-command when focus event is bound
...
Fix #4198
2025-01-23 09:31:51 +09:00
Junegunn Choi
06547d0cbe
Add --header-lines-border to separate two headers
...
Examples:
# Border only around the header from --header-lines
seq 10 | fzf --header 'hello' --header-lines 2 --header-lines-border
# Both headers with borders
seq 10 | fzf --header 'hello' --header-lines 2 --header-border --header-lines-border
# Use 'none' to still separate two headers but without a border
seq 10 | fzf --header 'hello' --header-lines 2 --header-border --header-lines-border none --list-border
2025-01-23 01:39:57 +09:00
Junegunn Choi
578108280e
Support OSC 8 sequence with BEL characters
...
Fix #4193
2025-01-22 19:16:08 +09:00
Junegunn Choi
65db7352b7
0.58.0
2025-01-20 02:00:03 +09:00
Junegunn Choi
a4db8bd7b5
Make 'current-fg' inherit from 'fg' to simplify configuration
...
If you do not want 'current-fg' to inherit attributes of 'fg', prefix it
with 'regular:' to reset them.
# italic and underline
fzf --color fg:italic,current-fg:underline
# only underline
fzf --color fg:italic,current-fg:regular:underline
2025-01-20 01:02:58 +09:00
dependabot[bot]
f1c1b02d77
Bump github.com/gdamore/tcell/v2 from 2.7.4 to 2.8.1 ( #4175 )
...
Bumps [github.com/gdamore/tcell/v2](https://github.com/gdamore/tcell ) from 2.7.4 to 2.8.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.4...v2.8.1 )
---
updated-dependencies:
- dependency-name: github.com/gdamore/tcell/v2
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>
2025-01-20 01:01:59 +09:00
Elliott Sales de Andrade
6580f32b43
Fix a non-constant format string ( #4189 )
...
Go 1.24 now has a vet check about this that causes `go test` to fail:
https://github.com/golang/go/issues/60529
2025-01-20 00:32:50 +09:00
Junegunn Choi
b028cbd8bd
Clarify print(...) action
2025-01-19 13:55:35 +09:00
junegunn
a1a5418318
Deploying to master from @ junegunn/fzf@5a32634b74 🚀
2025-01-19 00:02:12 +00:00
bitraid
5a32634b74
[fish] Allow setting multi-select and list reload for history ( #4179 )
...
* [fish] Drop support for versions older than 3.0b1
* [fish] Use `set` instead of `read` for `$result`
This effectively makes CTRL-R non-blocking (the previous attempt was
unsuccessful).
* [fish] Allow FZF_CTRL_R_OPTS to set multi-select
2025-01-19 01:38:18 +09:00
Junegunn Choi
c1875af70b
Add 'gap-line' color for the horizontal line on each gap
...
Color inheritance: border >> list-border >> gap-line
2025-01-18 13:48:46 +09:00
Junegunn Choi
0a10d14e19
[fish] CTRL-R: Make loading non-blocking
2025-01-18 02:33:28 +09:00
Junegunn Choi
ed8ceec66f
Add FZF_NTH to man page
2025-01-17 23:17:58 +09:00
piguagua
03760011d7
chore: fix comment ( #4181 )
...
Signed-off-by: piguagua <piguagua@aliyun.com >
2025-01-17 14:31:07 +09:00
Junegunn Choi
0d5aebb806
Allow setting border styles at once with --style full:STYLE
2025-01-17 13:12:51 +09:00
Junegunn Choi
1313510890
Do not apply nth style when the whole range is covered
2025-01-16 10:06:11 +09:00
Junegunn Choi
b712f2bb6a
Export the current nth value as $FZF_NTH
2025-01-16 09:23:25 +09:00
Junegunn Choi
938c15ec63
Skip merging nth offsets when unnecessary
2025-01-16 09:05:59 +09:00
Junegunn Choi
3e7f032ec2
Allow displaying --nth parts in a different text style
...
Close #4183
2025-01-16 01:38:45 +09:00
Junegunn Choi
b42f5bfb19
Add --gap-line to --help output and man page
2025-01-15 23:40:42 +09:00
Junegunn Choi
717562b264
Disallow incorrect wrapping range expression for --nth
2025-01-15 22:39:48 +09:00
Junegunn Choi
9d6637c1b3
Add gap line
...
Close #4182
2025-01-15 22:23:52 +09:00
Junegunn Choi
56fef7c8df
Simplify nth comparison when reusing transformed tokens
2025-01-13 17:37:50 +09:00
Junegunn Choi
ba0935c71f
Fix change-nth
...
* Proper clean-up of caches
* Force rerender list after the action
2025-01-13 12:45:01 +09:00
Junegunn Choi
d83eb2800a
Add change-nth action
...
Example:
# Start with --nth 1, then 2, then 3, then back to the default, 1
echo 'foo foobar foobarbaz' | fzf --bind 'space:change-nth(2|3|)' --nth 1 -q foo
Close #4172
Close #3109
2025-01-13 00:13:31 +09:00
Junegunn Choi
6f943112a9
Align header with the list
2025-01-12 14:58:55 +09:00
Junegunn Choi
f422893b8e
Add --style to the CHANGELOG
2025-01-12 10:29:15 +09:00
bitraid
22b498489c
[fish] Optimize history formatting without perl ( #4171 )
2025-01-12 10:27:26 +09:00
Junegunn Choi
5460517bd2
Treat a single-character delimiter as a plain string delimiter
...
even if it's a regular expression meta-character
Close #4170
2025-01-12 10:23:43 +09:00
junegunn
9a6e557e52
Deploying to master from @ junegunn/fzf@4fdc07927f 🚀
2025-01-12 00:02:26 +00:00
Junegunn Choi
4fdc07927f
Refactor --preview-border=line
2025-01-11 19:34:26 +09:00
Junegunn Choi
9030b67e4f
Fix window sizing with borders on the right
2025-01-11 11:39:51 +09:00
Junegunn Choi
43eafdf4b7
Fix preview scrollbar with '--preview-window bottom,border-line'
2025-01-11 00:53:07 +09:00
Junegunn Choi
dfb88edb5e
Make preview-scrollbar color conditionally inherit from scrollbar color
2025-01-11 00:51:49 +09:00
Junegunn Choi
bd3e65df4d
Trim unsupported OSC sequences ( #4169 )
...
Fix #4169
2025-01-10 20:53:47 +09:00
Junegunn Choi
d7b13f3408
Add a test case for the mixed delimiter ANSI sequence ( #4169 )
2025-01-10 20:31:51 +09:00
Junegunn Choi
14ef8e8051
Support ANSI sequences with mixed ; and : delimiters ( #4169 )
...
`make bench` shows no loss of performance.
2025-01-10 17:43:13 +09:00
bitraid
cc1d9f124e
[fish] Fix history formatting when perl is missing ( #4166 )
...
Don't add tab after escaped newline.
2025-01-10 14:03:21 +09:00
Kid
93c0299606
[fish] remove defunct bind feature detection ( #4165 )
2025-01-09 19:16:24 +09:00
Junegunn Choi
55e3c73221
fzf-preview.sh: Support FILEPATH:LINE[:COL] argument
2025-01-09 17:00:46 +09:00
Junegunn Choi
6783417504
Do not export $LINES and $COLUMNS for non-preview processes
...
Fix #4164
2025-01-08 10:00:57 +09:00
Junegunn Choi
fa3f706e71
Refactor option parser
2025-01-07 19:16:41 +09:00
Junegunn Choi
9c2f6cae88
Fix adaptive height with --header-border
2025-01-07 19:16:16 +09:00
Junegunn Choi
a30181e240
Update man page sections
2025-01-07 00:20:36 +09:00
dependabot[bot]
b4ccf64e62
Bump golang.org/x/term from 0.27.0 to 0.28.0 ( #4162 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.27.0 to 0.28.0.
- [Commits](https://github.com/golang/term/compare/v0.27.0...v0.28.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>
2025-01-06 23:36:41 +09:00
Junegunn Choi
88d768bf6b
Restructure --help output
2025-01-06 23:34:14 +09:00
Junegunn Choi
6444cc7905
Render preview label if possible when --preview-border=line
2025-01-06 10:09:59 +09:00
Junegunn Choi
328af1f397
Remove header indentation when unnecessary
...
# Indent the header to align with the entries in the list
fzf --header 'Hello' --header-border --list-border
# No extra indentation required
fzf --header 'Hello' --header-border
2025-01-06 09:57:58 +09:00
Junegunn Choi
5ae60e2e80
Add style presets: --style=[default|minimal|full]
...
Close #4160
2025-01-06 02:10:44 +09:00
Junegunn Choi
0e0b868342
Add preview border style 'line'
...
It draws a single line between the preview window and the rest of the
interface. i.e. automatically choose between 'left', 'right', 'top', and
'bottom' depending on the position of the preview window.
2025-01-06 00:44:59 +09:00
Junegunn Choi
a5beb08ed7
Border around the header section
...
Close #4159
2025-01-05 23:02:52 +09:00
Junegunn Choi
45fc7b903d
[install] Unset FZF_DEFAULT_OPTS when checking the binary
2025-01-05 11:33:40 +09:00
junegunn
4f2c274942
Deploying to master from @ junegunn/fzf@93415493b4 🚀
2025-01-05 00:02:19 +00:00
phanium
93415493b4
fix: make header align with list ( #4158 )
2025-01-05 01:13:23 +09:00
Junegunn Choi
8e4d338de9
Fix adaptive height in the presence of --list-border and --input-border
...
seq 10 | fzf --height=~100%
2025-01-04 19:19:18 +09:00
Junegunn Choi
8a71e091a8
Fix '--tmux border-native'
2025-01-04 18:47:00 +09:00
Andreas Auernhammer
120cd7f25a
Add border-native option to --tmux flag ( #4157 )
...
This commit adds the `border-native` resulting in the following:
```
--tmux[=[center|top|bottom|left|right][,SIZE[%]][,SIZE[%]][,border-native]]
```
By default, when not specified, the `-B` flag is passed to the
`tmux popup-window` command such that no border is drawn around
the tmux popup window.
When the `border-native` option is present, the `-B` flag is omitted
and the popup window is drawn using the border style configured in
the tmux config file.
Fixes #4156
Signed-off-by: Andreas Auernhammer <github@aead.dev >
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2025-01-04 18:30:32 +09:00
Junegunn Choi
fb3bf6c984
Fix cursor placement of tcell renderer
2025-01-03 19:56:07 +09:00
dependabot[bot]
d57e1f8baa
Bump crate-ci/typos from 1.28.2 to 1.28.4 ( #4141 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.28.2 to 1.28.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.28.2...v1.28.4 )
---
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>
2025-01-03 13:49:18 +09:00
Minseo Kim
15ca9ad8eb
Replace bash to sh in Makefile ( #4138 )
...
Some operating systems do not ship with bash by default, e.g. BSDs,
which breaks the build.
2025-01-03 13:48:51 +09:00
Junegunn Choi
c2e1861747
Update --help output
2025-01-02 23:54:59 +09:00
Junegunn Choi
543d41f3dd
Do not try to print anything is screen height is zero
2025-01-02 23:44:47 +09:00
Junegunn Choi
e5cfc988ec
Fix RuboCop error
2025-01-02 16:55:56 +09:00
Junegunn Choi
ee3916be17
Border around the input section (prompt + info)
...
Close #4154
2025-01-02 16:25:00 +09:00
Junegunn Choi
fd513f8af8
Add missing --list-border=* parser
...
Patch suggested by @bitraid
2024-12-31 19:39:46 +09:00
Junegunn Choi
9a2b7f559c
Add --list-border for additional border around the list section
...
Close #4148
2024-12-31 17:05:14 +09:00
junegunn
b8d2b0df7e
Deploying to master from @ junegunn/fzf@fe3a9c603e 🚀
2024-12-29 00:02:16 +00:00
Hong Xu
fe3a9c603e
fzf-preview.sh: Don't include the file name in type information ( #4143 )
...
Reduce the changes of misjudging the type, e.g., when file is under an `image/`
directory.
2024-12-26 14:58:10 +09:00
junegunn
97030d4cb1
Deploying to master from @ junegunn/fzf@b2c3e567da 🚀
2024-12-22 00:02:14 +00:00
bitraid
b2c3e567da
[fish] Partly revert change of 0167691 ( #4137 )
...
Don't use the `-f` switch of `string split`, because it was added in
fish version 3.2.0.
2024-12-20 10:05:09 +09:00
Junegunn Choi
ca5e633399
Add toggle-hscroll
2024-12-19 21:05:26 +09:00
Junegunn Choi
e60a9a628b
Add toggle-multi-line action
2024-12-19 21:05:26 +09:00
bitraid
0167691941
[fish] Small syntax modification of some commands
...
No actual change, just for consistency with the rest of the code.
2024-12-19 20:50:04 +09:00
bitraid
3b0f976380
[fish] Enable home dir expansion of leading ~/
...
Enable expanding to user's home directory, when pressing <Ctrl-T> or
<Alt-C>, and the current command line token starts with `~/`.
2024-12-19 20:50:04 +09:00
bitraid
7bd298b536
[fish] Don't strip leading dot (.) character
...
Fix the removal of the leading dot character from the query, when
<Ctrl-T> was pressed and the current command line token started with a
dot. It was also removed when <Alt-C> was pressed and the directory
didn't exist under the current path.
2024-12-19 20:50:04 +09:00
Junegunn Choi
0476a65fca
0.57.0
2024-12-15 17:04:04 +09:00
junegunn
2cb2af115a
Deploying to master from @ junegunn/fzf@789226ff6d 🚀
2024-12-15 00:02:31 +00:00
Junegunn Choi
789226ff6d
Fix test failure
...
cdcab26 removed excessive clearing of the windows. But it caused the
problem where the right side of the preview window border was not
cleared when hiding the preview window with the scrollbar disabled.
2024-12-14 22:42:40 +09:00
Junegunn Choi
805efc5bf1
Remove unused interface
2024-12-14 22:31:39 +09:00
Junegunn Choi
cdcab26766
Fix redundant clearing of the windows with non-default bg color
2024-12-14 22:06:14 +09:00
Junegunn Choi
ec3acb1932
Update CHANGELOG
2024-12-12 13:53:58 +09:00
Junegunn Choi
d30e37434e
Less flickering of the candidate list when resizing the preview window
2024-12-12 13:53:08 +09:00
Junegunn Choi
20d5b2e20e
Avoid redrawing the windows on the first click on the border
2024-12-12 13:53:08 +09:00
Junegunn Choi
6c6be4ab1a
Simplify resize code
2024-12-12 13:53:08 +09:00
Junegunn Choi
d004eb1f7c
Redraw preview scrollbar when window width changes
2024-12-12 13:53:08 +09:00
Junegunn Choi
3148b0f3e8
Restore previous behavior
2024-12-12 13:53:08 +09:00
Junegunn Choi
3fc0bd26a5
Disallow dragging the wrong sides of the border
2024-12-12 13:53:08 +09:00
Junegunn Choi
6c9025ff17
Update comments
2024-12-12 13:53:08 +09:00
Junegunn Choi
289997e373
Refactor
2024-12-12 13:53:08 +09:00
Junegunn Choi
db44cbdff0
Change test case expectation (hard-coded minimum width removed)
2024-12-12 13:53:08 +09:00
Junegunn Choi
da9179335c
Respect the properties of the currently active preview window options
2024-12-12 13:53:08 +09:00
Julian Prein
cdf641fa3e
Use Has{Top,Right,Bottom,Left}() where possible
...
De-duplicate code and reduce the amount of code that has to be changed
when new BorderShapes are being added. This also adds and uses the
missing HasBottom().
2024-12-12 13:53:08 +09:00
Julian Prein
66dbee10f5
Fix minimum preview width without left/right borders
...
When the chosen preview border shape has no left and/or right border,
the minimum total preview window size decreases. But due to the
hardcoded value for the minimum size of the preview window the size
could not be decreased further than 5.
2024-12-12 13:53:08 +09:00
Julian Prein
19e9b620ba
Fix maximum preview height without horizontal separator
...
The minimum window height decreases when no extra line for the
horizontal separator is used (e.g. with `--info=inline --no-separator`).
In this case the preview window should be able to occupy this extra
line.
2024-12-12 13:53:08 +09:00
Julian Prein
e4e4700aff
Make the preview window resizable by mouse drag
...
Enable resizing the preview window by dragging its border with the
mouse. This works with all border styles except for `none`.
Counter-intuitively, having the border only on the opposite side of the
window works too - dragging from it will first decrease the preview size
to its minimum.
2024-12-12 13:53:08 +09:00
dependabot[bot]
bb55045596
Bump golang.org/x/term from 0.26.0 to 0.27.0 ( #4124 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.26.0 to 0.27.0.
- [Commits](https://github.com/golang/term/compare/v0.26.0...v0.27.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>
2024-12-09 23:06:49 +09:00
dependabot[bot]
d7e51cdeb5
Bump crate-ci/typos from 1.28.1 to 1.28.2 ( #4123 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.28.1 to 1.28.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.28.1...v1.28.2 )
---
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>
2024-12-09 23:06:32 +09:00
junegunn
7f4964b366
Deploying to master from @ junegunn/fzf@a6957aba11 🚀
2024-12-08 00:02:15 +00:00
LangLangBart
a6957aba11
chore: completion test command sequence ( #4115 )
...
cleanup zsh global scope
2024-12-03 20:34:26 +09:00
dependabot[bot]
b5f94f961d
Bump crate-ci/typos from 1.27.3 to 1.28.1 ( #4114 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.27.3 to 1.28.1.
- [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.27.3...v1.28.1 )
---
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>
2024-12-03 00:25:33 +09:00
Junegunn Choi
e182d3db7a
Fix line wrap toggle when switching between screens
...
Fix #4099
2024-12-02 22:25:23 +09:00
Junegunn Choi
3e6e0528a6
[install] grep -> \grep
2024-12-01 23:22:36 +09:00
buttering
ac508a1ce4
Enhance install script to handle commented and uncommented lines ( #3632 ) ( #4112 )
...
* Enhance install script to handle commented and uncommented lines (#3632 )
Resolves #3632
Enhance install script to handle commented and uncommented lines in shell file with user prompts for modification.
- Track commented and uncommented lines in the file.
- Prompt user to append or skip if the line is commented.
- Ensure new lines are added only when necessary, based on user input.
- To the `fish_user_key_bindings.fish`, the original logic would append the line to the end if no corresponding statement was found. I’ve adopted the same behavior for commented lines.
* Refactor append_line function to improve line existence check.
- Replaced `lno` variable with `lines` to store matching lines and simplified the logic.
- Improved line existence check, now prints all matching lines directly and handles commented lines separately.
- Removed unnecessary variables like `all_commented`, `commented_lines`, and `non_commented_lines`.
* Fix indentation
---------
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2024-12-01 23:21:12 +09:00
junegunn
d7fc1e09b1
Deploying to master from @ junegunn/fzf@3b0c86e401 🚀
2024-12-01 00:02:24 +00:00
Junegunn Choi
3b0c86e401
Much faster image processing
...
Fix #3984
2024-11-29 00:26:12 +09:00
Junegunn Choi
61d10d8ffa
Update README and CHANGELOG
...
Close #4022
2024-11-28 19:46:56 +09:00
Junegunn Choi
7d9548919e
Extend --walker-skip to support multi-component patterns
...
fzf --walker-skip 'foo/bar'
Close #4107
2024-11-26 17:26:16 +09:00
msabathier
bee80a730f
Allow walking multiple root directories ( #4109 )
...
Co-authored-by: Martin Sabathier <martin.sabathier.ext@corys.fr >
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2024-11-25 19:25:30 +09:00
Junegunn Choi
ac3e24c99c
Export FZF_PREVIEW_* variables to other processes as well
...
Close #4098
2024-11-24 18:49:10 +09:00
junegunn
e7e852bdb3
Deploying to master from @ junegunn/fzf@2b7f168571 🚀
2024-11-24 00:03:09 +00:00
bitraid
2b7f168571
[fish] Enable keys for scripts that use read
...
Remove the check that exits when the shell is non-interactive, so that
the key bindings will work for the read command, when used by scripts.
2024-11-18 19:08:34 +09:00
bitraid
5b3da1d878
[fish] Use more native syntax
...
Mainly, replace [ with test. Also, change $FZF_TMUX check from numeric
to string, so that it won't show error if doesn't contain a number.
2024-11-18 19:08:34 +09:00
bitraid
99f1bc0177
[fish] Format history using builtins if perl is missing
2024-11-18 19:08:34 +09:00
bitraid
ed76f076dd
[fish] Replace external commands with builtins
...
- Use `string collect` instead of cat to get the contents of
$FZF_DEFAULT_OPTS_FILE. Also, check if the file is readable first.
- Use `string split` instead of cut to set $FISH_MAJOR, $FISH_MINOR.
- Use `string replace` instead of perl to strip leading tabs.
2024-11-18 19:08:34 +09:00
bitraid
4d357d1063
[fish] Improve commandline parsing
...
- Enable using unescaped quotes for exact-match, exact-boundary-match.
- Enable suffix-exact-match.
- Enable inverse-exact-match, inverse-prefix/suffix-exact-match.
- Allow searching for double quotes and backslashes.
- Combine multiple consecutive slashes into one.
- Workaround for test command bug, allowing $dir or $commandline be a
single `!`.
2024-11-18 19:08:34 +09:00
junegunn
961ae1541c
Deploying to master from @ junegunn/fzf@add1aec685 🚀
2024-11-17 00:02:20 +00:00
Junegunn Choi
add1aec685
0.56.3
2024-11-15 10:06:01 +09:00
LangLangBart
03d6ba7496
fix(zsh): handle backtick trigger edge case ( #4090 )
2024-11-14 16:07:52 +09:00
LangLangBart
71e4d5cc51
revert(zsh): remove 'fc -RI' call in the history widget ( #4093 )
2024-11-14 10:38:05 +09:00
Junegunn Choi
215ab48222
0.56.2
2024-11-12 00:57:55 +09:00
林千里
0c64c68781
Fix zsh $+name syntax does not work with setopt ksh_arrays ( #4084 )
2024-11-12 00:53:36 +09:00
Junegunn Choi
3ec035c68b
Fix incorrect overflow detection when --wrap is set
...
Fix #4083
2024-11-12 00:33:07 +09:00
dependabot[bot]
20c7dcfbca
Bump golang.org/x/term from 0.25.0 to 0.26.0 ( #4085 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.25.0 to 0.26.0.
- [Commits](https://github.com/golang/term/compare/v0.25.0...v0.26.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>
2024-11-12 00:32:37 +09:00
dependabot[bot]
c1b8780b9c
Bump crate-ci/typos from 1.26.0 to 1.27.3 ( #4087 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.26.0 to 1.27.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.26.0...v1.27.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>
2024-11-12 00:32:12 +09:00
Junegunn Choi
64c61603e9
0.56.1
2024-11-10 23:15:35 +09:00
LangLangBart
57c08d925f
Enhance command extraction in zsh completion ( #4082 )
...
Fix #1992
2024-11-10 17:40:59 +09:00
junegunn
51623a5f6a
Deploying to master from @ junegunn/fzf@ca3f6181d7 🚀
2024-11-10 00:02:06 +00:00
Junegunn Choi
ca3f6181d7
page-up/down: undo last up/down if items are skipped
...
Fix #4069
2024-11-09 11:54:41 +09:00
Junegunn Choi
9c94f9c3d0
Another attempt to fix (half-)page-up/down for multi-line items
...
Fix #4069
2024-11-08 20:18:42 +09:00
Junegunn Choi
4a85843bcf
Fix (half-)page-up/down in the presence of multi-line items
...
Fix #4069
2024-11-07 22:21:07 +09:00
jaydee-coder
d4d9b99879
Allow specifying '{n}' as the OFFSET in the preview-window flag ( #4079 )
...
* fzf: Allow '{n}' to be used as the OFFSET in the preview-window flag
* man: Document using '{n}' as the OFFSET in the preview-window flag
2024-11-04 22:27:59 +09:00
jaydee-coder
6816b7d95b
docker: fix dockerfile warnings ( #4080 )
...
The following warnings were emitted when running `make docker-test`:
```
2 warnings found (use docker --debug to expand):
- LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 11)
- JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals (line 12)
```
This change fixes both of these 2 trivial warnings.
2024-11-04 22:26:19 +09:00
Junegunn Choi
acdf265d7a
Fix reader regression ( #4070 )
2024-11-03 20:32:26 +09:00
Junegunn Choi
19495eb9bb
Remove possible races ( #4070 )
2024-11-03 20:12:47 +09:00
Junegunn Choi
bacc8609ee
Fix characters from previous preview not being cleared
...
Fix #4075
2024-11-03 15:07:17 +09:00
junegunn
99163f5afa
Deploying to master from @ junegunn/fzf@0607227730 🚀
2024-11-03 00:02:14 +00:00
LangLangBart
0607227730
fix(zsh): move 'fc -RI' inside command substitution ( #4073 )
...
* fix(zsh): move 'fc -RI' inside command substitution
* chore: follow existing option check format
2024-11-02 10:41:17 +09:00
LangLangBart
d938fdc496
fix(zsh): history loading with shared option ( #4071 )
...
Fix #4061
2024-11-01 00:19:47 +09:00
Junegunn Choi
dcb4c3d84a
Fix race in reload action
...
Fix #4070
2024-10-31 19:40:40 +09:00
Junegunn Choi
82ebcd9209
Fix (half-)page-up/down in the presence of multi-line items
...
Fix #4069
2024-10-30 16:52:42 +09:00
Junegunn Choi
ff1687744d
0.56.0
2024-10-27 12:03:01 +09:00
junegunn
782c870fb2
Deploying to master from @ junegunn/fzf@71fad63829 🚀
2024-10-27 00:02:14 +00:00
Charlie Vieth
71fad63829
Update fastwalk to v1.0.9 to fix handling of disk root paths on Windows ( #4063 )
...
Fixes: https://github.com/junegunn/fzf/issues/4027
2024-10-25 23:57:46 +09:00
Junegunn Choi
d65c6101a8
walker: Do not treat '..' as a hidden entry
...
Thanks to @LangLangBart for the suggested fix
Fix #4048
2024-10-25 13:50:58 +09:00
junegunn
3c40b1bd51
Deploying to master from @ junegunn/fzf@90a8800bb5 🚀
2024-10-20 00:02:15 +00:00
Junegunn Choi
90a8800bb5
Avoid selecting an outdated merger from cache
...
We cache a merger for partial input as well, because it is automatically
invalidated as soon as the new data comes in.
However, there was a race condition where a cached merger for a partial
input is used even after the input stream was complete. This commit
fixes the problem.
Fix #4034
2024-10-16 00:45:12 +09:00
Thomas Martitz
97f1dae2d1
Use eval to evaluate $post variable as command. ( #4023 )
2024-10-15 18:00:27 +09:00
dependabot[bot]
e54ec05709
Bump crate-ci/typos from 1.24.1 to 1.26.0 ( #4036 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.24.1 to 1.26.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.24.1...v1.26.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>
2024-10-15 17:38:14 +09:00
Junegunn Choi
a24eb99679
Fix full line background in preview window
2024-10-15 17:35:11 +09:00
dependabot[bot]
ad113d00b7
Bump golang.org/x/term from 0.24.0 to 0.25.0 ( #4031 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/term/compare/v0.24.0...v0.25.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>
2024-10-15 16:56:37 +09:00
junegunn
7bd5884d12
Deploying to master from @ junegunn/fzf@c3505858a6 🚀
2024-10-13 00:02:13 +00:00
junegunn
c3505858a6
Deploying to master from @ junegunn/fzf@e76aa37fd4 🚀
2024-10-06 00:02:11 +00:00
Junegunn Choi
e76aa37fd4
Make RuboCop happy
2024-10-01 19:45:53 +09:00
Junegunn Choi
1a32220ca9
Add --gap option to put empty lines between items
2024-10-01 19:15:17 +09:00
Junegunn Choi
4161403a1d
--tmux: Export bash functions
...
Fix #4001
2024-09-29 19:33:42 +09:00
junegunn
53bcdc4294
Deploying to master from @ junegunn/fzf@30a8ef28cd 🚀
2024-09-29 00:02:07 +00:00
Koichi Murase
30a8ef28cd
[bash] Fix infinite retry loop for completion setting without "-F func" ( #4004 )
2024-09-23 19:16:59 +09:00
junegunn
855f90727a
Deploying to master from @ junegunn/fzf@2191a44e36 🚀
2024-09-15 00:02:03 +00:00
Junegunn Choi
2191a44e36
Redraw/hide scroll offset when 'info' property is changed
2024-09-12 22:04:19 +09:00
Junegunn Choi
952276dc2d
Add 'noinfo' option to hide scroll offset information in preview window
...
fzf --preview 'seq 1000' --preview-window noinfo
Close #2525
2024-09-12 18:31:14 +09:00
dependabot[bot]
2286edb329
Bump golang.org/x/term from 0.23.0 to 0.24.0 ( #3991 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.23.0 to 0.24.0.
- [Commits](https://github.com/golang/term/compare/v0.23.0...v0.24.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>
2024-09-10 21:25:57 +09:00
junegunn
a0f28583e7
Deploying to master from @ junegunn/fzf@8af0af3400 🚀
2024-09-08 00:02:05 +00:00
Junegunn Choi
8af0af3400
Highlights
...
Close #3942
2024-09-01 16:20:25 +09:00
junegunn
769e5cbb2d
Deploying to master from @ junegunn/fzf@fc69308057 🚀
2024-09-01 00:02:21 +00:00
Junegunn Choi
fc69308057
0.55.0
2024-08-29 17:10:58 +09:00
Junegunn Choi
c6d620c99e
Add to CHANGELOG
2024-08-29 17:08:23 +09:00
Junegunn Choi
f510a4def6
Test cases for non-default --scheme options
2024-08-29 17:08:23 +09:00
Junegunn Choi
4ae3069c6f
Underscore boundaries should be ranked lower
2024-08-29 17:08:23 +09:00
Junegunn Choi
c0f27751d3
Add exact-boundary-match to man page
2024-08-29 17:08:23 +09:00
Junegunn Choi
efbcd5a683
Require quotes on both sides for boundary matching even in --exact mode
...
Only requiring '-suffix in --exact mode is confusing and not
straightforward. Requiring '-prefix in --exact mode means that
the users can experience unintended mode switches while typing.
e.g.
'it -> fuzzy (many results)
'it' -> boundary (few results)
'it's -> fuzzy (many results)
However, user who intends to input a boundary query should not be
interested in the intermediate results, and the number of matches
decreases as she types, so it should be okay.
On the other hand, user who does intend to type "it's" will be surprised
by the sudden decrease of the match count, but eventually get the right
result.
2024-08-29 17:08:23 +09:00
Junegunn Choi
6a67712944
Implement exact-boundary match type
...
Close #3963
2024-08-29 17:08:23 +09:00
dependabot[bot]
e8a690928d
Bump crate-ci/typos from 1.23.6 to 1.24.1 ( #3978 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.23.6 to 1.24.1.
- [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.23.6...v1.24.1 )
---
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>
2024-08-29 17:04:44 +09:00
Junegunn Choi
0eee95af57
Fix CTRL-Z handling
...
Fix #3802
This fixes `xterm -e fzf` hangs on CTRL-Z
* Replace SIGSTOP with SIGTSTP
* Do not rely on SIGCONT
2024-08-29 16:41:52 +09:00
Junegunn Choi
a09c6e991a
[vim] Ignore argument to fzf#exec if it's lower than minimum requirement
2024-08-28 13:49:41 +09:00
Junegunn Choi
d06c5ab990
[vim] Require fzf 0.53.0 or above (with --tmux)
...
Close #3980
2024-08-28 13:41:46 +09:00
Junegunn Choi
e0924d27b8
Change default --ellipsis to '··'
2024-08-27 19:41:39 +09:00
polluks2
2775b771f2
[man] Add italics ( #3097 )
2024-08-25 22:39:20 +09:00
junegunn
cf7a3c6a0e
Deploying to master from @ junegunn/fzf@230cc6acc3 🚀
2024-08-25 00:01:56 +00:00
Junegunn Choi
230cc6acc3
Fix fzf-tmux on tmux 3.0
...
* Fix #3959
* https://github.com/junegunn/fzf/issues/3635#issuecomment-2085988777
2024-08-24 22:54:29 +09:00
dependabot[bot]
626a23a585
Bump crate-ci/typos from 1.23.1 to 1.23.6 ( #3956 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.23.1 to 1.23.6.
- [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.23.1...v1.23.6 )
---
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>
2024-08-24 16:12:01 +09:00
Junegunn Choi
74f196eebb
[vim] Fix callback not run on exit code 1
2024-08-23 19:35:25 +09:00
Junegunn Choi
cf2242aea3
[bash] Revert skipping setting up fuzzy path completion
...
This partially reverts a2d0e8f not to break backward compatibility.
2024-08-22 19:39:22 +09:00
Junegunn Choi
8cb59e6fca
[vim] Add 'exit' callback
...
A spec can have `exit` callback that is called with the exit status of fzf.
This can be used to clean up temporary resources or restore the original
state when fzf is closed without a selection.
2024-08-19 20:51:26 +09:00
Junegunn Choi
5cce17e80a
Fix preview window incorrectly rendering empty line at the bottom
2024-08-18 11:38:37 +09:00
junegunn
ee5302fb2d
Deploying to master from @ junegunn/fzf@387c6ef664 🚀
2024-08-18 00:02:08 +00:00
Junegunn Choi
387c6ef664
Support hyperlinks (OSC 8) in the main window
...
Close #2557
2024-08-14 23:04:05 +09:00
Junegunn Choi
581734c369
Fix OSC 8 parser
2024-08-14 19:19:28 +09:00
Junegunn Choi
d90a969c00
Add support for hyperlinks in preview window
...
Close #2165
2024-08-14 08:51:34 +09:00
dependabot[bot]
2c8a96bb27
Bump golang.org/x/sys from 0.22.0 to 0.24.0 ( #3968 )
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.22.0 to 0.24.0.
- [Commits](https://github.com/golang/sys/compare/v0.22.0...v0.24.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>
2024-08-13 23:22:55 +09:00
dependabot[bot]
5da168db30
Bump golang.org/x/term from 0.22.0 to 0.23.0 ( #3966 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.22.0 to 0.23.0.
- [Commits](https://github.com/golang/term/compare/v0.22.0...v0.23.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>
2024-08-13 22:37:21 +09:00
Junegunn Choi
e215e2daf3
Allow comments in $FZF_DEFAULT_OPTS and $FZF_DEFAULT_OPTS_FILE
...
Close #3961
2024-08-13 18:51:02 +09:00
Junegunn Choi
e28f5aa45b
Make sure preview command is not run before Terminal is ready
Test fzf on macOS / build (push) Has been cancelled
Test fzf on Linux / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
2024-08-11 14:48:52 +09:00
Junegunn Choi
a2d0e8f233
[bash] Enable fuzzy path completion for all commands ( #3958 )
...
CodeQL / Analyze (go) (push) Waiting to run
Test fzf on Linux / build (push) Waiting to run
Test fzf on macOS / build (push) Waiting to run
All commands with no custom completion defined.
Close #3957
2024-08-11 14:22:21 +09:00
junegunn
303d04106a
Deploying to master from @ junegunn/fzf@c423c496a1 🚀
2024-08-11 00:01:54 +00:00
Eduardo D Sanchez
c423c496a1
fix: Add fallback for cygwin ps ( #3955 )
2024-08-07 14:42:27 +09:00
Junegunn Choi
4e85f72f0e
Fix extra scroll offset in multi-line mode (--read0 or --wrap)
...
Fix #3950
2024-08-04 10:52:17 +09:00
junegunn
dd0737aac0
Deploying to master from @ junegunn/fzf@f90985845d 🚀
2024-08-04 00:02:03 +00:00
Junegunn Choi
f90985845d
Fix '--tmux bottom' when the status line is not at the bottom
...
Fix #3948
2024-08-02 23:11:20 +09:00
Junegunn Choi
af4917dbb6
0.54.3
2024-07-31 21:51:54 +09:00
Junegunn Choi
d9404fcce4
Remove stale comment
2024-07-28 10:13:41 +09:00
junegunn
5c01fee5a9
Deploying to master from @ junegunn/fzf@9b27d68a37 🚀
2024-07-28 00:02:00 +00:00
Junegunn Choi
9b27d68a37
Fix build error
2024-07-27 19:13:24 +09:00
Junegunn Choi
b99d884e57
Minor refactoring
2024-07-27 18:59:50 +09:00
Junegunn Choi
587df594b8
Fix incompatibility of adaptive height and 'start:reload'
...
This command would cause a deadlock and make fzf crash:
fzf --bind 'start:reload:ls' --height ~100%
Because,
1. 'start' event is handled by Terminal
2. When 'reload' is bound to 'start', fzf avoids starting the initial reader
3. Terminal waits for the initial input to find the right height when
adaptive height is used
4. Because the initial reader is not started, Terminal never gets the
initial list
5. No chance to trigger 'start:reload', hence deadlock
This commit fixes the above problem by extracting the reload command
bound to 'start' event and starting the initial reader with that command
instead of letting Terminal start it.
This commit also makes the environment variables available to
$FZF_DEFAULT_COMMAND.
FZF_DEFAULT_COMMAND='echo $FZF_QUERY' fzf --query foo
Fix #3944
2024-07-27 11:30:25 +09:00
Junegunn Choi
b896e0d314
0.54.2
2024-07-26 17:44:09 +09:00
Junegunn Choi
559fb7ee45
Revert "Prefer LightRenderer over tcell on Windows"
...
This reverts commit dca2262fe6 .
> For mouse support on mintty
> Fix #3847
The current implementation LightRenderer for Windows is unable to accept
non-ASCII input unlike the tcell renderer. So even though it supports
mouse on mintty, we shouldn't use it as the default.
* #3799
* #3847
2024-07-26 01:43:21 +09:00
Junegunn Choi
62545cd983
Display repology image in 3 columns
2024-07-25 12:49:02 +09:00
junegunn
c50812518e
Deploying to master from @ junegunn/fzf@4cc5609d8b 🚀
2024-07-21 00:02:12 +00:00
Junegunn Choi
4cc5609d8b
Fix invalid highlighting of truncated multi-line items
2024-07-21 01:09:39 +09:00
Junegunn Choi
50fa90dfb8
0.54.1
2024-07-19 17:10:49 +09:00
Charlie Vieth
a2c365e710
Update fastwalk to v1.0.8 for better MSYS detection and sorting ( #3930 )
...
This commit updates github.com/charlievieth/fastwalk to v1.0.8 which
improves MSYS detection and adds optional sorting of directory entries.
It also updates fzf to use the SortFilesFirst sort mode which improves
the output by making it a bit more sorted and grouped by directory
previously entries were visited in directory order (which is basically
random).
PRs Included:
* https://github.com/charlievieth/fastwalk/pull/25
* https://github.com/charlievieth/fastwalk/pull/27
* https://github.com/charlievieth/fastwalk/pull/28
2024-07-19 13:17:41 +09:00
LangLangBart
b4ddffdc61
fix(fish): partially revert dbe8dc3 by removing the 'builtin' for cd
2024-07-17 22:13:01 +09:00
Junegunn Choi
8d4d184fc6
Change WinGet workflow to drop 'v' prefix from tag ( #3927 )
...
https://github.com/vedantmgoyal9/winget-releaser?tab=readme-ov-file#configuration-options-%EF%B8%8F
2024-07-17 12:38:10 +09:00
junegunn
ea23539b59
Deploying to master from @ junegunn/fzf@9e92b6f11e 🚀
2024-07-14 00:02:04 +00:00
Junegunn Choi
9e92b6f11e
0.54.0
...
New tags will have `v` prefix.
* https://github.com/junegunn/fzf/issues/2879
* https://github.com/golang/go/issues/32945
Close #2879
2024-07-08 22:51:48 +09:00
Junegunn Choi
6cbde812f6
[bash] Add code to the default list of programs to support completion
...
Close #3843
2024-07-08 22:51:47 +09:00
Junegunn Choi
3b2e932c13
Bind CTRL-/ and ALT-/ to toggle-wrap by default
2024-07-08 22:51:47 +09:00
dependabot[bot]
8ff4e52641
Bump golang.org/x/term from 0.21.0 to 0.22.0 ( #3913 )
...
Bumps [golang.org/x/term](https://github.com/golang/term ) from 0.21.0 to 0.22.0.
- [Commits](https://github.com/golang/term/compare/v0.21.0...v0.22.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>
2024-07-08 22:51:27 +09:00
Charlie Vieth
2dbc874e3d
Update charlievieth/fastwalk to use forward-slashes on WSL and MSYS ( #3907 )
...
This commit changes FZF to enforce that all paths are joined with
forward-slashes when running on WSL or MSYS
even when the FZF binary was compiled for Windows.
Update: github.com/charlievieth/fastwalk
Fixes: https://github.com/junegunn/fzf/issues/3859
---------
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2024-07-08 22:21:37 +09:00
dependabot[bot]
039a2f1d04
Bump crate-ci/typos from 1.22.9 to 1.23.1 ( #3912 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.22.9 to 1.23.1.
- [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.22.9...v1.23.1 )
---
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>
2024-07-08 22:20:30 +09:00
junegunn
4ef1cf5b35
Deploying to master from @ junegunn/fzf@b44ab9e33c 🚀
2024-07-07 00:01:56 +00:00
Junegunn Choi
b44ab9e33c
[completion] Use --wrap option in process completion
...
And remove the short preview window for showing the whole command.
Because it is important to be able to see the whole command before
deciding to kill it.
2024-07-06 10:20:58 +09:00
Junegunn Choi
8f4c23f1c4
Remove --walker-path-sep
...
Related: #3859 #3907 #3909
2024-07-05 20:15:03 +09:00
Junegunn Choi
23a391e715
[zsh] Fix backslash escaping ( #3909 )
...
Fix #3859
To test:
FZF_CTRL_T_COMMAND="echo -E 'foo\bar\baz'; echo -E 'hello\world'"
_fzf_compgen_path() {
eval $FZF_CTRL_T_COMMAND
}
source shell/key-bindings.zsh
source shell/completion.zsh
2024-07-05 01:46:36 +09:00
Junegunn Choi
035b0be29f
Adjust offset immediately after 'first', 'last', and 'pos'
...
seq 100 | fzf --multi --sync --bind 'result:last+transform:for _ in $(seq 10); do echo -n "+select+down"; done'
2024-07-03 22:06:17 +09:00
LangLangBart
e1fcdbc337
fix(zsh): use the '=~' operator instead of grep ( #3906 )
2024-07-03 11:03:21 +09:00
Junegunn Choi
cfc149e994
Avoid printing ANSI reset codes
...
fzf --border --bind 'start:transform-border-label:echo -e "\x1b[0mfoo"'
2024-07-02 09:20:10 +09:00
Junegunn Choi
2faffbd1b7
Fill background color in padding area
...
fzf --color bg:blue --border --padding 1,2
2024-07-01 21:39:09 +09:00
junegunn
8db65704b9
Deploying to master from @ junegunn/fzf@797a01aed4 🚀
2024-06-30 00:01:54 +00:00
Junegunn Choi
797a01aed4
[man] Clarify --walker-path-sep=CHAR
2024-06-29 18:44:28 +09:00
Junegunn Choi
bf515a3d32
Add --walker-path-sep=CHAR to use a different path separator
...
This is needed when you run a Windows binary on WSL or zsh on Windows
where forward slashes are expected.
export FZF_DEFAULT_OPTS='--walker-path-sep /'
Close #3859
2024-06-29 17:13:31 +09:00
Junegunn Choi
a06745826a
[zsh] Fix completion error on openSUSE Tumbleweed
...
Fix suggested by @LangLangBart
Fix #3890
2024-06-28 16:59:56 +09:00
Junegunn Choi
0420ed4f2a
Empty --marker-multi-line if --marker is empty
2024-06-25 20:49:42 +09:00
Junegunn Choi
3b944addd4
Allow removing header line with change-header and transform-header
...
If the new header is an empty string.
fzf --header loading --bind 'start:reload:sleep 3; ls' --bind 'load:change-header:'
fzf --header loading --bind 'start:reload:sleep 3; ls' --bind 'load:transform-header:'
2024-06-25 17:14:11 +09:00
Junegunn Choi
70bf8bc35d
Add --wrap option and 'toggle-wrap' action ( #3887 )
...
* `--wrap`
* `--wrap-sign`
* `toggle-wrap`
Close #3619
Close #2236
Close #577
Close #461
2024-06-25 17:08:47 +09:00
dependabot[bot]
724f8a1d45
Bump crate-ci/typos from 1.22.7 to 1.22.9 ( #3894 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.22.7 to 1.22.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.22.7...v1.22.9 )
---
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>
2024-06-24 23:55:53 +09:00
Junegunn Choi
cc2b2146ee
ADVANCED.md: Remove unnecessary : | fzf
...
See 5b52833
2024-06-24 17:23:14 +09:00
Junegunn Choi
8689f5f230
Fix rubocop warning
2024-06-24 17:16:56 +09:00
林千里
e9e0011f1d
fix zsh ${(@)history} syntax does not work with ksh_arrays ( #3893 )
...
When `setopt ksh_arrays` in zsh, `${(@kv)history}` gives only the first entry rather than all.
2024-06-24 17:07:55 +09:00
Junegunn Choi
5b52833785
Do not start the initial reader if 'reload*' is bound to 'start'
2024-06-24 17:05:53 +09:00
Koichi Murase
1525768094
[man] Escape hyphens to prevent conversion to Unicode hyphens ( #3885 )
...
ASCII hyphens (U+002D HYPHEN-MINUS) in the option names (e.g. -x and
--extended) and the code examples in the man pages should be escaped
as \- (e.g. \-x and \-\-extended) to prevent them being converted to
Unicode hyphens in some environments.
For example, in openSUSE Tumbleweed, the raw ASCII hyphens in the
man-page sources are configured to be the Unicode hyphen (U+2010
HYPHEN). This makes it impossible to search the option name in the
man page by e.g. /--extended[RET]. A problem also arises in copying
and pasting option names and code examples from the man page. It
appears to be the normal ASCII hyphens by appearance (in typical
terminal fonts) but are not recognized as the ASCII hyphens by the
`fzf` command.
2024-06-24 09:32:35 +09:00
Junegunn Choi
a70ea4654e
Fix regression in separator display
2024-06-23 18:23:46 +09:00
Junegunn Choi
b02bf9b6bb
Fix panic on extremely short terminals
...
Fix #3889
2024-06-23 11:27:03 +09:00
junegunn
bee7bc5324
Deploying to master from @ junegunn/fzf@7c2ffd3fef 🚀
2024-06-23 00:01:48 +00:00
Junegunn Choi
7c2ffd3fef
Make transform*, --info-command, and execute-silent cancellable
...
Users can press CTRL-C after 1 second to terminate the command.
Close #3883
2024-06-22 17:24:47 +09:00
LangLangBart
db01e7dab6
fix(zsh): add (s) modifier to perl command ( #3882 )
2024-06-20 17:51:52 +09:00
Junegunn Choi
2326c74eb2
Code cleanup
2024-06-20 17:06:44 +09:00
Junegunn Choi
b9d15569e8
Fix test case for validateSign
2024-06-20 01:48:24 +09:00
Junegunn Choi
c3cc378d89
Allow empty pointer and marker
...
Close #3879
2024-06-20 01:45:06 +09:00
Junegunn Choi
27d1f5e0a8
Fix typos
2024-06-20 00:58:51 +09:00
Junegunn Choi
540632bb9e
Add --info-command for customizing the input text
...
Close #3866
2024-06-20 00:53:18 +09:00
Junegunn Choi
d9c028c934
fzf-preview.sh: Let chafa decide the right format
...
Close #3822
Output encoding:
-f, --format=FORMAT Set output format; one of [iterm, kitty, sixels,
symbols]. Iterm, kitty and sixels yield much higher
quality but enjoy limited support. Symbols mode yields
beautiful character art.
2024-06-19 19:25:46 +09:00
Junegunn Choi
c54ad82e8d
Clarify that --nth applies after --with-nth transformation
...
Close #3873
2024-06-19 17:01:35 +09:00
bsdmp
295b89631b
Add wpath and dpath pledges on OpenBSD to make --tmux work ( #3877 )
2024-06-19 11:26:08 +09:00
Jan Palus
6179faf778
mod: upgrade fastwalk to 1.0.4 ( #3878 )
...
Fixes #3832
2024-06-19 11:23:43 +09:00
dependabot[bot]
16dc236a25
Bump crate-ci/typos from 1.22.3 to 1.22.7 ( #3871 )
...
Bumps [crate-ci/typos](https://github.com/crate-ci/typos ) from 1.22.3 to 1.22.7.
- [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.22.3...v1.22.7 )
---
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>
2024-06-19 11:23:30 +09:00
Hexin
61ae9d75b6
Remove comment in command substitution ( #3875 )
2024-06-19 11:22:57 +09:00
Junegunn Choi
e2401aca68
Add 'offset-middle' action
2024-06-17 18:34:10 +09:00
Junegunn Choi
59943cbb48
Fire 'result' even when input stream is not complete
...
Related: #3866
2024-06-17 17:54:52 +09:00
Junegunn Choi
02634d404d
Remove {fzf:query} from man page
2024-06-17 17:53:02 +09:00
Junegunn Choi
ed12925f7d
--sync: Suppress initial render also when focus event is bound
2024-06-17 17:00:49 +09:00
Junegunn Choi
e0ddb97ab4
Improved --sync behavior
...
When --sync is provided, fzf will not render the interface until the
initial filtering and associated actions (bound to any of 'start',
'load', or 'result') are complete.
2024-06-17 00:11:57 +09:00
junegunn
b8c01af0fc
Deploying to master from @ junegunn/fzf@6de0a7ddc1 🚀
2024-06-16 00:01:59 +00:00
Junegunn Choi
6de0a7ddc1
--sync: Do not start TUI until initial filtering is complete
2024-06-15 10:46:28 +09:00
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.
2024-06-15 10:27:54 +09:00
Junegunn Choi
94c33ac020
Fix panic when parent process is killed
...
Fix #3863
2024-06-15 10:23:03 +09:00
Junegunn Choi
b2ecb6352c
Make GET endpoint available from 'execute' and 'transform' actions
2024-06-14 21:33:42 +09:00
Junegunn Choi
9dc3ed638a
--walker-skip should also handle symlinks to directories
...
Fix #3858
2024-06-13 22:55:31 +09:00
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>
2024-06-13 20:51:13 +09:00
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>
2024-06-13 20:50:57 +09:00
LangLangBart
22adb6494f
chore(shell): Separate declaration and assignment for zsh legacy versions ( #3856 )
2024-06-13 17:33:23 +09:00
Samara Jinnah
e023736c30
[zsh] Prevent glob expansion in history widget ( #3855 )
2024-06-13 10:43:33 +09:00
Junegunn Choi
dca2262fe6
Prefer LightRenderer over tcell on Windows
...
For mouse support on mintty
Fix #3847
2024-06-12 21:53:18 +09:00
Junegunn Choi
0684a20ea3
Fix invalid mouse offset for --height on Windows
2024-06-12 21:18:02 +09:00
Junegunn Choi
a1a72bb8d1
Do not open tmux or winpty in --filter mode
2024-06-12 21:02:48 +09:00
ismay
144d55a5be
[fish] Merge history before searching ( #3852 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2024-06-12 13:56:20 +09:00
Junegunn Choi
7fc13c5cfd
Less aggressive chunk cache invalidation for --tail
2024-06-10 20:33:55 +09:00
Junegunn Choi
dfee7af57b
Fix divide by zero error with --tiebreak=end for long items
...
Fix #3846
2024-06-10 08:26:53 +09:00
junegunn
9b0e2daf02
Deploying to master from @ junegunn/fzf@590060a16b 🚀
2024-06-09 00:02:07 +00:00
Junegunn Choi
590060a16b
Remove unused field
2024-06-07 17:05:33 +09:00
Junegunn Choi
368294edf6
Reduce flickering of the list when the list is truncated by --tail
2024-06-07 16:59:09 +09:00
Junegunn Choi
c4a9ccd6af
0.53.0
2024-06-06 22:03:26 +09:00
Junegunn Choi
cbf91f2ed3
ADVANCED.md: /dev/tty redirection no longer required
2024-06-06 21:58:02 +09:00
Junegunn Choi
b1460d4787
hasPreviewFlags should ignore escaped placeholder
...
This reload command wouldn't run before the fix:
: | fzf --bind 'start:reload:echo \{}'
2024-06-06 17:40:15 +09:00
Junegunn Choi
7dc9e14874
Update docs
2024-06-06 17:40:15 +09:00
Junegunn Choi
1616ed543d
Fix index out of bounds error caused by outdated offset
2024-06-06 00:23:58 +09:00
Junegunn Choi
dc73fba188
[man] Clarification on --scheme options
2024-06-05 14:29:50 +09:00
Junegunn Choi
ef148dfd37
Handle int32 overflow
...
yes | fzf --tail=10 --preview 'echo "{n}"'
2024-06-05 14:29:50 +09:00
Junegunn Choi
93bbb3032d
Add --tail=NUM to limit the number of items to keep in memory
2024-06-04 17:50:46 +09:00
Junegunn Choi
4c83d8596d
Add new options to bash completion
2024-06-03 09:45:20 +09:00
Junegunn Choi
d453e6d7db
Update ADVANCED.md: Use --tmux instead of fzf-tmux
2024-06-03 09:41:40 +09:00
Junegunn Choi
c29533994f
Fix invalid default of selected-hl (--color)
...
It should default to 'hl' instead of 'current-hl'
2024-06-02 18:09:41 +09:00
Junegunn Choi
1afe13b5b5
Merge remote-tracking branch 'origin/master' into devel
2024-06-02 17:59:04 +09:00
Junegunn Choi
36600eaaa9
Update CHANGELOG: clarification
2024-06-02 17:58:44 +09:00
junegunn
3ee1fc2034
Deploying to master from @ junegunn/fzf@124cd70710 🚀
2024-06-02 00:01:52 +00:00
Junegunn Choi
e2f93e5a2d
--tmux vs. --height: Last one wins
2024-06-01 22:11:15 +09:00
Junegunn Choi
cfdf2f1153
Update README
2024-06-01 16:20:03 +09:00
Junegunn Choi
e042143e3f
Immediately close standard output of the child process
...
Fix #3828
2024-06-01 15:22:05 +09:00
Junegunn Choi
7c613d0d9b
Do not disable --height on mintty (because it works)
2024-06-01 14:45:54 +09:00
Junegunn Choi
b00d46bc14
Fix --height on Windows
2024-06-01 14:36:41 +09:00
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'
2024-06-01 14:35:45 +09:00
Junegunn Choi
564daf9a7d
Set standard input of 'man' process to os.Stdin
2024-06-01 13:23:46 +09:00
Junegunn Choi
41bcbe342f
Revert "An '--expect' key should execute actions bound to the key"
...
To be backward compatible.
Close #3829
2024-06-01 13:21:59 +09:00
LangLangBart
dbe8dc344e
[fish] Use builtins for cd and history ( #3830 )
...
Close #3826
2024-06-01 11:28:02 +09:00
Junegunn Choi
e33fb59da1
Update CHANGELOG
2024-05-31 16:57:35 +09:00
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[%]])
2024-05-31 16:57:35 +09:00
LangLangBart
2b6d600879
[zsh] Enhance CTRL-R to display multi-line entires ( #3823 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2024-05-31 16:57:35 +09:00
Junegunn Choi
05c765d442
[fish] Add --nth 2..,.. to allow anchored search against command
2024-05-31 16:57:35 +09:00
Junegunn Choi
49b496269c
Fix index out of bounds error on scroll-down action
2024-05-31 16:57:35 +09:00
Junegunn Choi
7405925952
[bash] Indent multi-line history entries
2024-05-31 16:57:35 +09:00
Junegunn Choi
3afd543a7e
[fish] Use perl instead of sed to strip leading tabs
...
https://github.com/junegunn/fzf/pull/3807#discussion_r1619520105
2024-05-30 10:23:20 +09:00
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.
2024-05-29 20:16:49 +09:00
Junegunn Choi
ed53ef7cee
[shell] Add --highlight-line to CTRL-R bindings
2024-05-29 20:13:41 +09:00
Junegunn Choi
12630b124d
Make --tmux argument optional
2024-05-29 02:16:18 +09:00
Junegunn Choi
1d59ac09d2
Pass-through error message from 'tmux display-popup'
...
fzf --tmux 9999
# height too large
2024-05-29 02:07:56 +09:00
Junegunn Choi
a8f3a0dd59
Merge branch 'master' into devel
2024-05-28 23:19:26 +09:00
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 >
2024-05-28 23:15:14 +09:00
Junegunn Choi
782de139c8
[vim] Native --tmux fix for Neovim
2024-05-28 19:27:31 +09:00
Junegunn Choi
32eb32ee5e
Add multi-line example to CHANGELOG
2024-05-27 01:48:46 +09:00
Junegunn Choi
2f51eb2b41
Different marker for the first and last line of multi-line entries
...
Can be configured via `--marker-multi-line`
2024-05-27 01:35:05 +09:00
Junegunn Choi
0ccbd79e10
Fix --help output: marker default
...
Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com >
2024-05-26 09:24:30 +09:00
junegunn
99bd6de541
Deploying to master from @ junegunn/fzf@daa602422d 🚀
2024-05-26 00:01:51 +00:00
Junegunn Choi
1fef36e4bc
Do not allow tabs in pointer and marker
2024-05-25 16:31:34 +09:00
Junegunn Choi
89375005b5
Fix option validation order
2024-05-25 16:23:13 +09:00
Junegunn Choi
88e78c9193
Update integration test to use named pipes
2024-05-25 12:03:20 +09:00
Junegunn Choi
29a19ad080
Update CHANGELOG
2024-05-25 09:40:17 +09:00
Junegunn Choi
2a039ab746
Describe exit code 126
2024-05-24 19:32:44 +09:00
Junegunn Choi
7e9a0fcdbd
Change default --scroll-off to 3
2024-05-24 19:25:50 +09:00
Junegunn Choi
7a97532547
Fix --scroll-off for multi-line mode
2024-05-24 19:23:36 +09:00
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
2024-05-24 00:46:01 +09:00
Junegunn Choi
da500a358f
Use bold bar as the default marker
2024-05-24 00:31:20 +09:00
Junegunn Choi
c36b846acc
[vim] Open cmd.exe window only on mintty < 3.4.5 without winpty
2024-05-23 21:27:29 +09:00
Junegunn Choi
d9b5c9b2be
Address review comments by @Konfekt
...
d4216b0dcc
2024-05-23 21:14:08 +09:00
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
2024-05-23 21:11:12 +09:00
Junegunn Choi
d4216b0dcc
Use MSYS=enable_pcon instead of winpty on mintty 3.4.5 or later
2024-05-23 18:42:54 +09:00
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
2024-05-23 09:07:54 +09:00
Junegunn Choi
561f9291fd
[vim] Replace backslashes with forward slashes on win32unix
2024-05-23 09:03:43 +09:00
Junegunn Choi
b5b0d6b3ea
Do not run as winpty proxy if winpty is not available
2024-05-23 08:47:38 +09:00
Junegunn Choi
a90426b7ca
Add print(...) action
2024-05-22 22:18:24 +09:00
Junegunn Choi
303c3bae7f
proxy: Pass SIGINT to the child fzf
2024-05-22 22:14:00 +09:00
Junegunn Choi
6b4358f641
An '--expect' key should execute actions bound to the key
...
Fix #3810
2024-05-22 20:39:09 +09:00
Junegunn Choi
552158f3ad
Ignore SIGINT when running as proxy
2024-05-22 20:01:37 +09:00
Junegunn Choi
7205203dc8
Update CHANGELOG
2024-05-21 02:07:49 +09:00
Junegunn Choi
0cadf70072
Update the summary
2024-05-21 01:57:22 +09:00
Junegunn Choi
076b3d0a9a
Embed man page in the binary and show it on 'fzf --man'
2024-05-21 01:06:10 +09:00
Junegunn Choi
7b0c9e04d3
Change default marker
2024-05-20 18:51:52 +09:00
Junegunn Choi
573df524fe
Use winpty to launch fzf in Git bash (mintty)
...
Close #3806
Known limitation:
* --height cannot be used
2024-05-20 18:24:14 +09:00
Junegunn Choi
aee417c46a
Respect $NO_COLOR environment variable
...
Close #1762
2024-05-20 10:50:00 +09:00
Junegunn Choi
04db44067d
Implement multi-line display of multi-line items
2024-05-20 09:25:30 +09:00
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)
2024-05-19 15:51:32 +09:00
junegunn
daa602422d
Deploying to master from @ junegunn/fzf@01e7668915 🚀
2024-05-19 00:01:47 +00:00
Junegunn Choi
04dfb14e32
Do not 'become' inside a tmux popup
...
fzf --tmux center --bind 'enter:become:vim {}'
2024-05-18 17:08:36 +09:00
Junegunn Choi
c24256cba3
Update README
...
* Tidy up
* Mention `--tmux`
2024-05-18 17:08:36 +09:00
Junegunn Choi
685fb71d89
[vim] Use native --tmux option instead of fzf-tmux when possible
2024-05-18 17:08:36 +09:00
Junegunn Choi
83b6033906
Add --tmux option to replace fzf-tmux script
2024-05-18 17:08:36 +09:00
Zhizhen He
01e7668915
chore: use strings.ReplaceAll ( #3801 )
2024-05-18 17:06:33 +09:00
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.
2024-05-15 17:26:49 +09:00
LangLangBart
030428ba43
docs: update zsh integration instructions ( #3794 )
2024-05-15 01:59:43 +09:00
Junegunn Choi
8a110e02b9
Fix tcell test case
2024-05-15 00:45:23 +09:00
Junegunn Choi
86d92c17c4
Refactor tui.TtyIn()
2024-05-15 00:28:56 +09:00
Junegunn Choi
c4cc7891b4
Revert "Close handles to /dev/tty", instead reuse handles
2024-05-15 00:15:29 +09:00
Junegunn Choi
218843b9f1
Close handles to /dev/tty
2024-05-14 21:49:47 +09:00
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.
2024-05-14 16:32:26 +09:00
Junegunn Choi
6432f00f0d
0.52.1
2024-05-14 01:54:30 +09:00
junegunn
4e9e842aa4
Deploying to master from @ junegunn/fzf@07880ca441 🚀
2024-05-12 00:01:52 +00:00
LangLangBart
07880ca441
chore: Update flags to include long-form options for case ( #3785 )
2024-05-09 20:39:21 +09:00
Junegunn Choi
bcda25a513
0.52.0
2024-05-08 00:15:30 +09:00
Junegunn Choi
8256fcde15
Minor fixup
2024-05-07 23:49:30 +09:00
Junegunn Choi
af65aa298a
Add color names: selected-{fg,bg,hl}
2024-05-07 23:38:06 +09:00
Junegunn Choi
6834d17844
[vim] Revert 7411da8d5a
...
Fix #3777
2024-05-07 20:16:18 +09:00
Junegunn Choi
ed511d7867
[install] tar --no-same-owner
...
Close #3776
2024-05-07 20:00:13 +09:00
Junegunn Choi
cd8d736a9f
[shell] Add $FZF_COMPLETION_{DIR,PATH}_OPTS
...
To allow separately overriding 'walker' options.
Close #3778
2024-05-07 19:31:56 +09:00
Junegunn Choi
0952b2dfd4
Rename --cursor-line to --highlight-line
2024-05-07 19:22:39 +09:00
Junegunn Choi
4bedd33c59
Refactor the code to remove global variables
2024-05-07 16:58:17 +09:00
Junegunn Choi
c5fb0c43f9
Add --cursor-line to highlight the whole current line
...
Similar to 'set cursorline' of Vim.
2024-05-07 01:34:35 +09:00
Junegunn Choi
9e4780510e
Add current-{fg,bg,hl} as synonyms for {fg,bg,hl}+
2024-05-07 01:26:25 +09:00
Junegunn Choi
e8405f40fe
Refactor the code so that fzf can be used as a library ( #3769 )
2024-05-07 01:06:42 +09:00
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>
2024-05-06 22:51:10 +09:00
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>
2024-05-06 22:50:50 +09:00
Junegunn Choi
501577ab28
Fix flaky test case
2024-05-06 13:59:16 +09:00
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 "&|<>()@^%!"
2024-05-06 13:46:06 +09:00
Junegunn Choi
24ff66d4a9
Fix change-preview reset by change-preview-window
...
Fix #3770
2024-05-06 09:40:02 +09:00
Junegunn Choi
bf184449bc
Count $FZF_CLICK_HEADER_LINE from top to bottom
...
Regardless of `--layout`.
https://github.com/junegunn/fzf/pull/3768#issuecomment-2094806558
2024-05-06 09:27:58 +09:00
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 >
2024-05-05 18:56:43 +09:00
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
2024-05-05 17:09:00 +09:00
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
2024-05-05 16:49:30 +09:00
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 {}'
2024-05-05 11:10:54 +09:00
Junegunn Choi
9dee8edc0c
Clear characters on 1-column margin after the preview window on the left
2024-05-05 11:06:50 +09:00
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
2024-05-03 12:18:34 +09:00
cyqsimon
dba1644518
Fix unreliable GOOS detection ( #3763 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2024-05-02 20:52:27 +09:00
Junegunn Choi
260a65b0fb
0.51.0
2024-05-01 14:14:06 +09:00
Junegunn Choi
835d2fb98c
[vim] Fix argument escaping for Windows batch file
...
Fix #3620
2024-05-01 10:02:26 +09:00
Charlie Vieth
a9811addaa
Fix TestOSExitNotAllowed to handle empty GOROOT ( #3758 )
...
Fix #3748
2024-05-01 09:15:47 +09:00
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>
2024-04-29 23:10:50 +09:00
Junegunn Choi
194a763c46
Escaping for cmd.exe: always use double quotes
2024-04-28 23:30:44 +09:00
Junegunn Choi
8d74446bef
Fix escaping for cmd.exe
...
Close #3651
Close #2609
2024-04-28 22:03:00 +09:00
Junegunn Choi
7ed6c7905c
Determine shell type once by the basename
2024-04-28 20:11:05 +09:00
Junegunn Choi
159a37fa37
Restore CmdLine parameter when running commands using cmd.exe
2024-04-28 16:01:19 +09:00
junegunn
f39ae0e7c1
Deploying to master from @ junegunn/fzf@4a68eac99b 🚀
2024-04-28 00:01:30 +00:00
Junegunn Choi
4a68eac99b
Suggest using toggle+up instead of toggle-up
2024-04-27 19:04:30 +09:00
Junegunn Choi
2665580120
Add $FZF_POS environment variable
...
Close #2175
Close #3753
2024-04-27 18:57:22 +09:00
Junegunn Choi
a4391aeedd
Add --with-shell for shelling out with different command and flags ( #3746 )
...
Close #3732
2024-04-27 18:36:37 +09:00
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>
2024-04-27 17:57:11 +09:00
Junegunn Choi
608232568b
Add 'change-multi' action
...
Close #3754
2024-04-27 17:38:06 +09:00
Junegunn Choi
7f85beccb5
[completion] Add undocumented bash variables for completion commands
...
And allow empty FZF_COMPLETION_DIR_COMMANDS
2024-04-27 14:14:30 +09:00
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
2024-04-25 16:54:51 +09:00
Junegunn Choi
fddbfe7b0e
Fix 'reload' not terminating closed standard input stream
...
Fix #3750
2024-04-25 16:49:06 +09:00
Junegunn Choi
4ab7fdc28e
Merge identical case clauses
2024-04-25 16:34:05 +09:00
Junegunn Choi
e352b68878
Update Dockerfile to use Ubuntu 24.04
...
As we require Go 1.20 or above.
2024-04-24 18:20:30 +09:00
Junegunn Choi
207deeadba
Add -trimpath to build command
2024-04-23 17:24:50 +09:00
Cheng
d18d92f925
Replace fmt.Errorf with no parameters with errors.New ( #3747 )
2024-04-22 09:35:33 +09:00
junegunn
af3ce47c44
Deploying to master from @ junegunn/fzf@d8bfb6712d 🚀
2024-04-21 00:01:49 +00:00
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
2024-04-20 14:42:43 +09:00
Junegunn Choi
f864f8b5f7
Respect $FZF_DEFAULT_OPTS_FILE in key bindings and completion ( #3742 )
...
Fix #3740
2024-04-19 22:40:38 +09:00
Junegunn Choi
31d72efba7
Describe how to build fzf from the latest source using brew
2024-04-18 23:37:12 +09:00
LangLangBart
d169c951f3
fix: Move 'emulate' command outside interactive check ( #3736 )
2024-04-17 18:03:12 +09:00
Junegunn Choi
90d7e38909
[fzf-tmux] Replace command -v with which
...
`command -v fzf` prints `alias fzf=...` when `fzf` is an alias.
Fix #3730
2024-04-17 17:29:45 +09:00
hidewrong
938f23e429
Fix typo in comment ( #3734 )
...
Signed-off-by: hidewrong <hidewrong@outlook.com >
2024-04-17 17:13:35 +09:00
Junegunn Choi
f97d275413
0.50.0
2024-04-15 00:02:27 +09:00
Junegunn Choi
3acb4ca90e
Fix streaming filter mode by not running reader callback concurrently
...
Close #3728
2024-04-14 23:34:25 +09:00
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.
2024-04-14 11:48:44 +09:00
Junegunn Choi
a5447b8b75
Improve search performance by pre-calculating bonus matrix
...
This gives yet another 5% boost.
2024-04-14 11:47:06 +09:00
Junegunn Choi
7ce6452d83
Improve search performance by pre-calculating character classes
...
This simple optmization can give more than 15% performance boost
in some scenarios.
2024-04-14 11:47:05 +09:00
junegunn
5643a306bd
Deploying to master from @ junegunn/fzf@3c877c504b 🚀
2024-04-14 00:03:45 +00:00
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 >
2024-04-13 14:58:11 +09:00
Junegunn Choi
892d1acccb
Fix tcell build
2024-04-13 14:47:04 +09:00
Junegunn Choi
1a9c282f76
Fix unit tests
2024-04-13 14:40:43 +09:00
Junegunn Choi
fd1ba46f77
Export $FZF_KEY environment variable to child processes
...
It's the name of the last key pressed.
Related #3412
2024-04-13 14:00:16 +09:00
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'
2024-04-10 20:17:12 +09:00
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>
2024-04-10 00:51:29 +09:00
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
2024-04-10 00:46:09 +09:00
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.
2024-04-09 00:26:25 +09:00
LangLangBart
69b9d674a3
chore: Add new option in issue checklist and modify requirements ( #3715 )
2024-04-07 10:25:12 +09:00
junegunn
bad8061547
Deploying to master from @ junegunn/fzf@62963dcefd 🚀
2024-04-07 00:01:37 +00:00
Junegunn Choi
62963dcefd
0.49.0
2024-04-05 00:20:26 +09:00
Junegunn Choi
68a35e4735
Do not trim CR on Windows when --read0 is set
2024-04-04 23:39:29 +09:00
Charlie Vieth
9b9ad77e1c
mod: update changes/fastwalk to v1.0.3 ( #3709 )
...
Update charlievieth/fastwalk to resolve issue #3706 .
2024-04-04 13:29:32 +09:00
Junegunn Choi
118b4d4a01
[bash] Add -o nospace to dir completion options ( #1987 )
2024-04-04 13:20:31 +09:00
Junegunn Choi
da14ab6f16
[bash] Remove -o default from dir completion options ( #1987 )
2024-04-04 12:58:52 +09:00
Junegunn Choi
09a4ca6ab5
[bash] Fix variable completion of directory-related commands
...
Fix #1987
2024-04-04 12:43:35 +09:00
Junegunn Choi
8a2df79711
Do not hide separator by default on --info=inline-right|hidden
2024-04-04 00:05:55 +09:00
Junegunn Choi
c30e486b64
Further performance improvements by removing unnecessary copies
2024-04-02 08:43:08 +09:00
Junegunn Choi
a575c0c54b
GitHub Actions: Use Go "1.20"
2024-04-02 01:47:24 +09:00
Junegunn Choi
77fe96ac0d
GitHub Actions: Use Go 1.20
2024-04-02 01:44:18 +09:00
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
2024-04-02 01:38:12 +09:00
Junegunn Choi
41b3511ad9
Improve ingestion performance (by around 20%)
2024-04-01 23:38:46 +09:00
Junegunn Choi
128e4a2e8d
[fish] Fix $dir in FZF_{CTRL_T,ALT_C}_COMMAND not evaluated
...
Fix #3705
2024-03-31 20:37:20 +09:00
junegunn
07ac90d798
Deploying to master from @ junegunn/fzf@7de87a9b2c 🚀
2024-03-31 00:01:48 +00:00
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 >
2024-03-31 01:13:15 +09:00
Junegunn Choi
dff865239a
[bash-completion] Make dynamic loader return 124 to retry completion
...
Close #3702
2024-03-29 16:21:43 +09:00
Junegunn Choi
07f8f70c5b
Fix flaky test case
2024-03-29 16:15:53 +09:00
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 >
2024-03-29 16:14:08 +09:00
Junegunn Choi
8a74976c1f
Add track-current, untrack-current, and toggle-track-current ( #3699 )
...
Close #3691
2024-03-28 20:42:01 +09:00
Junegunn Choi
b6bfd4a5cb
Fix typo in comment
2024-03-27 17:36:08 +09:00
Junegunn Choi
008fb9d258
Fix reload and reload-sync behaviors
...
https://github.com/junegunn/fzf/discussions/3696#discussioncomment-8915593
2024-03-27 17:25:56 +09:00
Junegunn Choi
db6db49ed6
Increase the buffer size for POST requests
...
Close #3685
2024-03-21 19:18:43 +09:00
Junegunn Choi
05453881c3
Set a 2-second timeout for POST requests
...
Close #3685
2024-03-21 19:18:38 +09:00
Junegunn Choi
5e47ab9431
README: Mention that you can source individual script files
2024-03-21 12:35:52 +09:00
LangLangBart
ec70acd0b9
chore: transition from markdown to YAML for issue template ( #3687 )
2024-03-21 08:33:28 +09:00
zeertzjq
25e61056b6
[fish] Fix Ctrl-T and Alt-C not using last token as search root ( #3684 )
2024-03-19 14:44:42 +09:00
Junegunn Choi
d579e335b5
0.48.1
2024-03-17 16:35:35 +09:00
Junegunn Choi
7e344ceb85
Update README
2024-03-17 16:21:07 +09:00
Junegunn Choi
0145b82ea0
Update README
2024-03-17 16:20:14 +09:00
Junegunn Choi
b4efe7aab7
Show how to disable a key binding
2024-03-17 16:18:19 +09:00
Junegunn Choi
9ffe951f6d
Update Makefile target dependencies
...
Because shell integration scripts are now embedded in the binary
2024-03-17 16:11:21 +09:00
Brayden Hill
a5ea4f57bd
Updated link for highlight command ( #3680 )
2024-03-17 16:09:39 +09:00
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 >
2024-03-17 16:06:48 +09:00
Junegunn Choi
c7ee071efa
Fix panic caused by invalid cursor index
...
Fix #3681
2024-03-17 15:55:16 +09:00
Junegunn Choi
0740ef7ceb
[bash] Fix default completion of unset, unalias, etc
...
Fix #3679
2024-03-17 15:38:11 +09:00
junegunn
b29bd809ac
Deploying to master from @ junegunn/fzf@8977c9257a 🚀
2024-03-17 00:01:33 +00:00
Junegunn Choi
8977c9257a
Limit the maximum number of focus events to process at once
2024-03-14 11:18:47 +09:00
Junegunn Choi
091b7eacba
0.48.0
2024-03-14 00:02:53 +09:00
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
2024-03-13 23:59:34 +09:00
Junegunn Choi
d282a1649d
Add walker options and replace 'find' with the built-in walker ( #3649 )
2024-03-13 20:56:31 +09:00
Junegunn Choi
6ce8d49d1b
[bash] Fix regression in dynamic completion
...
Fix #3674
2024-03-13 08:31:31 +09:00
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>
2024-03-12 08:11:25 +09:00
Junegunn Choi
0494f20d62
Revert "Fix CHANGELOG"
...
This reverts commit 73aff476dd .
2024-03-10 23:24:59 +09:00
Junegunn Choi
73aff476dd
Fix CHANGELOG
2024-03-10 21:52:39 +09:00
Junegunn Choi
98ee5e651a
0.47.0
2024-03-10 21:43:41 +09:00
Koichi Murase
01871ea383
[bash] Update orig_complete after _completion_loader
2024-03-10 21:41:42 +09:00
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.
2024-03-10 21:41:42 +09:00
junegunn
c70f0eadb8
Deploying to master from @ junegunn/fzf@26244ad8c2 🚀
2024-03-10 00:01:32 +00:00
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
2024-03-09 14:14:42 +09:00
Junegunn Choi
fa0aa5510d
Kill preview process when hiding the preview window
...
via toggle-preview, hide-preview, or change-preview-window
2024-03-08 22:01:45 +09:00
Junegunn Choi
eec557b6aa
Fix invalid memory access when the preview window becomes hidden
2024-03-08 17:57:09 +09:00
huajin tong
0cc27c3cc1
Fix typo ( #3661 )
2024-03-07 01:35:31 +09:00
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>
2024-03-05 11:48:46 +09:00
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>
2024-03-05 11:04:38 +09:00
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>
2024-03-05 11:04:17 +09:00
onee-only
61bc129e1d
Update parseGetParams to call strconv.Atoi when params are valid
2024-03-05 11:03:56 +09:00
onee-only
52210a57f0
Update error return position according to convention
2024-03-05 11:03:56 +09:00
onee-only
8061a2f108
Remove duplicate code
2024-03-05 11:03:56 +09:00
junegunn
7444eff6d4
Deploying to master from @ junegunn/fzf@f35a9da99a 🚀
2024-03-03 00:01:39 +00:00
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>
2024-03-02 18:40:13 +09:00
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>
2024-03-02 18:39:37 +09:00
Junegunn Choi
686f9288fc
Allow iTerm2 image data that ends with 'ESC \' ( #3646 )
2024-03-02 18:24:54 +09:00
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
2024-02-29 09:49:33 +09:00
junegunn
3dd42f5aa2
Deploying to master from @ junegunn/fzf@99a7beba57 🚀
2024-02-25 00:01:35 +00:00
Junegunn Choi
99a7beba57
Fix missing bonus score on a delimiter character
...
Fix #3645
2024-02-22 23:19:11 +09:00
Junegunn Choi
edee2b753c
fzf-tmux: Workaround for tmux 3.4 bug
...
Close #3635
https://github.com/tmux/tmux/pull/3840
2024-02-21 14:39:03 +09:00
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>
2024-02-20 10:35:23 +09:00
Junegunn Choi
ca747a2b54
Fix unit tests
2024-02-19 12:39:04 +09:00
Junegunn Choi
17da165cfe
CHANGELOG: charlievieth/fastwalk
2024-02-19 12:36:14 +09:00
Junegunn Choi
5e6788c679
Export FZF_* variables to 'reload' process as well
2024-02-19 12:36:14 +09:00
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.
2024-02-18 13:20:50 +09:00
junegunn
2c8e9dd3a5
Deploying to master from @ junegunn/fzf@7a72f1a253 🚀
2024-02-18 00:01:35 +00:00
Junegunn Choi
7a72f1a253
Code cleanup: Remove unused argument
2024-02-15 17:11:30 +09:00
Junegunn Choi
208e556332
Replace "default find command" with built-in directory traversal
2024-02-15 16:55:43 +09:00
Junegunn Choi
c65d11bfb5
Update README: warp.dev
2024-02-15 14:30:44 +09:00
Junegunn Choi
3b5b52d89a
Update README: warp.dev
2024-02-13 08:45:33 +09:00
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>
2024-02-11 08:53:03 +09:00
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>
2024-02-11 08:52:31 +09:00
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>
2024-02-11 08:50:49 +09:00
Konstantin Podsvirov
90b8187882
Add info about MSYS2 distro to README.md ( #3610 )
2024-02-04 19:02:32 +09:00
junegunn
1a43259989
Deploying to master from @ junegunn/fzf@3c0a630475 🚀
2024-02-04 00:01:39 +00:00
Junegunn Choi
3c0a630475
0.46.1
2024-02-01 18:13:00 +09:00
Junegunn Choi
2a1e5a9729
More test fixes for tcell on GitHub Actions
2024-02-01 17:39:18 +09:00
Junegunn Choi
413c66beba
Fix tests for tcell build
2024-02-01 16:25:53 +09:00
Junegunn Choi
1416e696b1
Avoid full redraw on 'preview' action when preview window exists
2024-02-01 15:50:48 +09:00
Junegunn Choi
d373cf89c7
Retain preview window on resize after 'preview' action
2024-02-01 15:46:42 +09:00
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>
2024-01-30 11:23:08 +09:00
junegunn
472569a27c
Deploying to master from @ junegunn/fzf@76cf6559cc 🚀
2024-01-28 00:01:29 +00:00
Junegunn Choi
76cf6559cc
junegunn/uniseg -> rivo/uniseg
...
https://github.com/rivo/uniseg/pull/47
2024-01-27 22:18:43 +09:00
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.
2024-01-26 13:07:35 +09:00
Junegunn Choi
da752fc9a4
Fix Windows build
...
Fix #3598
2024-01-24 15:59:54 +09:00
Junegunn Choi
beb2de2dd9
0.46.0
2024-01-23 23:47:24 +09:00
Junegunn Choi
2a8b65e105
Fix highlighting of regions that are matched multiple times
...
Fix #3596
2024-01-23 12:19:32 +09:00
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>
2024-01-23 10:21:01 +09:00
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>
2024-01-23 10:20:39 +09:00
LangLangBart
09b0958b5f
docs(ADVANCED.md): replace placeholder with env variable for toggle single key binding ( #3593 )
2024-01-22 13:17:03 +09:00
Junegunn Choi
3a4c3d3e58
Add link to fzf Theme Playground by @vitormv
...
https://vitormv.github.io/fzf-themes/
2024-01-21 23:12:57 +09:00
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.
2024-01-21 23:04:37 +09:00
Junegunn Choi
687c2741b8
Add 'resize' event
...
Close #3570
2024-01-21 15:30:59 +09:00
junegunn
2fb285e530
Deploying to master from @ junegunn/fzf@16f6473938 🚀
2024-01-21 00:01:45 +00:00
Junegunn Choi
16f6473938
Change mattn/go-runewidth dependency to rivo/uniseg for accurate results
...
Related #3588 #3588 #3567
2024-01-21 02:54:41 +09:00
Junegunn Choi
66546208b2
Update goreleaser flags
2024-01-20 14:36:52 +09:00
Junegunn Choi
532274045e
Update to the latest go
2024-01-20 14:35:00 +09:00
LangLangBart
9347c72fb6
docs(ADVANCED.md): Add fzf example switching ripgrep/fzf with single hotkey ( #3590 )
2024-01-20 13:47:54 +09:00
Junegunn Choi
e90bb7169c
[zsh] Handle '*' suffix in history line numbers
...
Fix #3591
2024-01-20 13:43:15 +09:00
Junegunn Choi
8a2c41e183
Handle ambiguous emoji width
...
Fix #3588
2024-01-19 16:41:50 +09:00
Junegunn Choi
59fb65293a
README.md: More information on image support
2024-01-17 13:21:00 +09:00
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
2024-01-17 00:17:22 +09:00
Junegunn Choi
cdfaf761df
Expose state information via environment variables to child processes
...
Close #3582
2024-01-16 14:18:31 +09:00
Junegunn Choi
1a9ea6f738
Remove 'replace' directive for 'go install' compatibility
...
Close #3577
2024-01-14 17:12:24 +09:00
junegunn
945c1c8597
Deploying to master from @ junegunn/fzf@e4d0f7acd5 🚀
2024-01-14 00:01:41 +00:00
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>
2024-01-09 12:31:14 +09:00
Junegunn Choi
250496c953
Add 'result' event that is triggered when the result list is ready
...
Close #3560
2024-01-07 17:46:21 +09:00
Junegunn Choi
e47dc758c9
Fix focus event not triggered in certain cases
2024-01-07 15:43:17 +09:00
Junegunn Choi
b92a843c5f
Use Ubuntu 22 to match GitHub Actions environment
2024-01-07 15:10:06 +09:00
Junegunn Choi
91bea9c5b3
Use forked version of go-runewidth
...
Fix #3558
go get github.com/junegunn/go-runewidth@fzf
2024-01-07 15:09:46 +09:00
junegunn
d75bb5cbe1
Deploying to master from @ junegunn/fzf@2671259fdb 🚀
2024-01-07 00:01:39 +00:00
danztran
2671259fdb
[zsh] Make CTRL-R compatible with accept-or-print-query ( #3557 )
...
Fix #3556
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2024-01-05 10:47:54 +09:00
Junegunn Choi
2024010119
0.45.0
2024-01-01 15:38:35 +09:00
Junegunn Choi
412040f77e
Enable preview if 'transform' action is bound to a key
2023-12-31 20:56:33 +09:00
Junegunn Choi
d210660ce8
Add actions: show-header and hide-header
2023-12-31 16:01:00 +09:00
Junegunn Choi
863a12562b
Trigger focus actions synchronously
2023-12-31 15:54:37 +09:00
junegunn
5da606a9ac
Deploying to master from @ junegunn/fzf@8d20f3d5c4 🚀
2023-12-31 00:01:48 +00:00
Junegunn Choi
8d20f3d5c4
ADVANCED.md: Add toggling example with transform and {fzf:prompt}
...
Courtesy of @LangLangBart
2023-12-29 12:27:12 +09:00
Junegunn Choi
5d360180af
Add {fzf:prompt} placeholder expression
...
Close #3354
2023-12-28 17:10:06 +09:00
Junegunn Choi
f0fbed6007
Fix RuboCop error
2023-12-27 01:33:34 +09:00
Junegunn Choi
519de7c833
Fix unexpected result of --tiebreak=end
...
See https://github.com/junegunn/fzf/issues/3255#issuecomment-1869580320
2023-12-26 23:42:14 +09:00
Junegunn Choi
97ccef1a04
{fzf:query} should trigger preview update
...
fzf --preview 'echo {fzf:query}'
fzf --preview 'echo {q}'
2023-12-26 16:51:41 +09:00
Junegunn Choi
c4df0dd06e
Add TRANSFORM ACTIONS section to man page
2023-12-26 12:21:06 +09:00
Junegunn Choi
cd114c6818
Change transform action to directly execute actions
...
To avoid filling up input channel for HTTP server
2023-12-26 10:15:53 +09:00
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
2023-12-26 00:14:05 +09:00
Junegunn Choi
41d4d70b98
Fix shell escaping for fish
...
Fix #3224
2023-12-25 17:35:44 +09:00
Junegunn Choi
0e999482cb
Fix handling of empty ANSI color sequence
...
Fix #3320
2023-12-25 17:05:54 +09:00
junegunn
65b2c06027
Deploying to master from @ junegunn/fzf@d7b61ede07 🚀
2023-12-24 00:01:38 +00:00
Junegunn Choi
d7b61ede07
Add support for negative --height
...
fzf --height=-1
Close #3487
2023-12-21 18:42:23 +09:00
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>
2023-12-19 10:50:47 +09:00
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>
2023-12-19 09:59:59 +09:00
junegunn
eb62b0d665
Deploying to master from @ junegunn/fzf@91387a741b 🚀
2023-12-17 00:01:44 +00:00
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 .
2023-12-16 15:15:00 +09:00
Junegunn Choi
e8b34cb00d
Clarification on accept-or-print-query vs. become
2023-12-14 23:13:52 +09:00
Alec Scott
82954258c1
Add Spack installation instructions to README ( #3526 )
2023-12-10 16:08:54 +09:00
Junegunn Choi
50f092551b
Lint: RuboCop
2023-12-10 16:04:30 +09:00
Junegunn Choi
c36a64be68
Add accept-or-print-query
...
Close #3528
2023-12-10 15:59:45 +09:00
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>
2023-12-10 15:16:47 +09:00
junegunn
a714e76ae1
Deploying to master from @ junegunn/fzf@d21d5c9510 🚀
2023-12-10 00:01:46 +00:00
junegunn
d21d5c9510
Deploying to master from @ junegunn/fzf@cd6788a2bb 🚀
2023-12-03 00:01:38 +00:00
Junegunn Choi
cd6788a2bb
Increase buffer size of event channel to avoid freeze on zero event
...
Fix #3516
2023-11-30 17:23:46 +09:00
junegunn
6b99399c41
Deploying to master from @ junegunn/fzf@952b6af445 🚀
2023-11-26 00:01:42 +00:00
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 >
2023-11-21 16:03:12 +09:00
junegunn
7c674ad7fa
Deploying to master from @ junegunn/fzf@d7d2ac3951 🚀
2023-11-19 00:01:41 +00:00
Junegunn Choi
d7d2ac3951
0.44.1
2023-11-17 19:17:00 +09:00
Junegunn Choi
29e67d307a
Fix crash when preview window is hidden on focus event
2023-11-17 19:13:37 +09:00
Junegunn Choi
7320b7df62
0.44.0
2023-11-12 22:08:08 +09:00
Tomáš Janoušek
11fb4233f7
Fix Home, End on rxvt-unicode ( #3507 )
2023-11-12 22:06:38 +09:00
Junegunn Choi
84bb350b14
Reset horizontal offset of the prompt on 'beginning-of-line'
...
https://github.com/junegunn/fzf/issues/3498#issuecomment-1806651174
2023-11-12 21:41:34 +09:00
Junegunn Choi
38e3694d1c
Revert "Sixel and Kitty image support on Windows binary ( #2544 )"
...
This reverts commit 68db9cb499 .
2023-11-10 13:16:11 +09:00
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>
2023-11-08 12:03:04 +09:00
Junegunn Choi
f5f0b9ecaa
Fix a typo
2023-11-08 11:18:36 +09:00
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).
2023-11-07 11:51:21 +09:00
Junegunn Choi
250d507bdf
Fix a typo on CHANGELOG
2023-11-07 10:50:08 +09:00
Junegunn Choi
a818653174
Add --listen-unsafe=ADDR to allow remote process execution ( #3498 )
2023-11-05 10:53:46 +09:00
junegunn
5c3b044740
Deploying to master from @ junegunn/fzf@c5aa8729a1 🚀
2023-11-05 00:01:39 +00:00
Junegunn Choi
c5aa8729a1
Fix failing test case
2023-11-04 16:27:24 +09:00
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
2023-11-04 16:19:16 +09:00
Junegunn Choi
70c19ccf16
Fix CTRL-Z handling: Signal SIGSTOP to PGID
...
Fix #3501
2023-11-04 13:46:29 +09:00
Junegunn Choi
68db9cb499
Sixel and Kitty image support on Windows binary ( #2544 )
2023-11-03 00:09:02 +09:00
Junegunn Choi
d0466fa777
Fix regression where tcell renderer not clearing the preview window
2023-11-02 21:00:07 +09:00
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.
2023-11-02 01:35:36 +09:00
Junegunn Choi
a0145cebf2
sixel: Better handling of animated GIFs ( #2544 )
2023-11-02 00:15:42 +09:00
Junegunn Choi
69176fc5f4
fzf-preview.sh: Fall back to stty size ( #2544 )
2023-11-02 00:15:39 +09:00
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
2023-10-31 23:38:01 +09:00
Junegunn Choi
1cfa3ee4c7
fzf-preview.sh: Check the number of arguments
2023-10-30 00:05:54 +09:00
Junegunn Choi
9a95cd5794
Fix Sixel height calculation ( #2544 )
2023-10-29 23:34:33 +09:00
akdevservices
a62fe3df6f
[completion] Handle all hostaliases in /etc/hosts ( #3495 )
...
* Fix #3488
* Handle inline comments in hosts file
2023-10-29 09:05:30 +09:00
junegunn
7701244a08
Deploying to master from @ junegunn/fzf@96e31e4b78 🚀
2023-10-29 00:01:39 +00:00
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.
2023-10-27 14:36:14 +09:00
Junegunn Choi
ec208af474
Go 1.18 or above is required
...
Close #3492
2023-10-26 23:30:46 +09:00
Junegunn Choi
242641264d
Clear previous non-Sixel text before rendering Sixel image ( #2544 )
2023-10-26 22:28:44 +09:00
Junegunn Choi
d3a9a0615b
Fix kitty icat handling
2023-10-26 22:28:44 +09:00
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.
2023-10-26 22:28:15 +09:00
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
2023-10-26 00:49:16 +09:00
Junegunn Choi
bac385b59c
Simplify LightRenderer.Size()
2023-10-23 23:40:56 +09:00
Junegunn Choi
b1a0ab8086
Experimental Sixel support ( #2544 )
2023-10-23 01:05:30 +09:00
junegunn
a33749eb71
Deploying to master from @ junegunn/fzf@f5e4ee90e4 🚀
2023-10-22 00:01:50 +00:00
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
2023-10-21 16:11:15 +09:00
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'
2023-10-20 17:37:08 +09:00
Junegunn Choi
a76c055b63
Fix inconsistent preview window width with --border
...
fzf --preview 'cat {}' --bind 'space:change-preview-window:up|right' --border
2023-10-20 16:03:41 +09:00
Junegunn Choi
70c461c60b
[bash] Preserve existing completion for ssh
...
Fix #3484
2023-10-19 09:58:36 +09:00
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 >
2023-10-17 08:46:43 +09:00
junegunn
3666448ca6
Deploying to master from @ junegunn/fzf@d3311d9f43 🚀
2023-10-15 00:01:43 +00:00
Junegunn Choi
d3311d9f43
0.43.0
2023-10-15 01:56:05 +09:00
LangLangBart
3e1735b06e
[zsh] Fix 'emulate: unknown argument -o' error on old zsh ( #3465 )
...
Fix #2094
2023-10-14 17:41:01 +09:00
Junegunn Choi
de7ef7eace
[fzf-tmux] Fix 'empty command' error on tmux 3.2
...
Fix #3474
2023-10-13 20:13:28 +09:00
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 (L20)
)
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name >
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2023-10-13 01:06:55 +09:00
Junegunn Choi
f212bafe46
[bash] Remove implicit bash-completion dependency
2023-10-13 01:00:43 +09:00
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 >
2023-10-12 20:44:25 +09:00
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 >
2023-10-12 20:44:25 +09:00
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 >
2023-10-12 20:44:25 +09:00
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 >
2023-10-12 20:44:25 +09:00
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 >
2023-10-12 20:44:25 +09:00
Junegunn Choi
3df06a1c68
Fix offset-up and offset-down with --layout=reverse ( #3456 )
2023-10-12 19:14:03 +09:00
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>
2023-10-11 13:17:47 +09:00
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 >
2023-10-11 13:07:47 +09:00
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
2023-10-11 12:53:51 +09:00
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 >
2023-10-11 10:54:50 +09:00
Junegunn Choi
391aa14845
Add mouse events for --bind
...
Close #3473
2023-10-11 09:42:12 +09:00
Junegunn Choi
a0d61b4c37
[install] Remove redundant interactiveness check
...
Related #3449
/cc @calestyo
2023-10-09 10:00:55 +09:00
Junegunn Choi
2952737755
Update README: Experimental support for Kitty graphics protocol
2023-10-09 01:29:03 +09:00
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 >
2023-10-09 01:19:28 +09:00
junegunn
884856023a
Deploying to master from @ junegunn/fzf@d8188fce7b 🚀
2023-10-08 00:01:43 +00:00
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
'
2023-10-07 18:36:33 +09:00
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 >
2023-10-07 17:26:46 +09:00
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
2023-10-04 21:43:11 +09:00
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 >
2023-10-02 21:02:35 +09:00
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
2023-10-02 20:40:49 +09:00
junegunn
4fdc08295b
Deploying to master from @ junegunn/fzf@a3ff49aaf1 🚀
2023-10-01 00:01:42 +00:00
Junegunn Choi
a3ff49aaf1
[bash] CTRL-R on bash 3: Use backticks to avoid delay
...
e0b29e437b
2023-09-27 09:16:16 +09:00
Junegunn Choi
76364ea767
Remove unnecessary escaping in the default command
2023-09-24 13:23:40 +09:00
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 >
2023-09-24 13:23:40 +09:00
junegunn
32b659b346
Deploying to master from @ junegunn/fzf@00809909ae 🚀
2023-09-24 00:01:56 +00:00
Junegunn Choi
00809909ae
Update CHANGELOG
2023-09-22 21:59:47 +09:00
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 '`.
2023-09-22 17:37:34 +09:00
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
2023-09-19 13:39:57 +09:00
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>
2023-09-18 09:20:46 +09:00
Junegunn Choi
901939bd96
Add support for limit and offset parameters for GET / endpoint
...
Related #3372
2023-09-18 00:55:20 +09:00
Timofei Bredov
edfdcc8cee
Basic context-aware completion for ssh command ( #3424 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2023-09-18 00:15:04 +09:00
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
2023-09-17 23:55:39 +09:00
Junegunn Choi
4490b2d209
Respect ANSI codes to reset properties
...
Fix #3441
2023-09-16 19:50:37 +09:00
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 >
2023-09-11 19:32:45 +09:00
junegunn
dc97d48491
Deploying to master from @ junegunn/fzf@0f50dc848e 🚀
2023-09-10 00:01:48 +00:00
Junegunn Choi
0f50dc848e
Add 'GET /' endpoint for getting the program state (experimental)
...
Related #3372
2023-09-03 16:30:35 +09:00
Junegunn Choi
c5e4b83de3
Update sponsor list once a week
2023-09-02 20:48:10 +09:00
junegunn
a08ab46713
Deploying to master from @ junegunn/fzf@f50a7058d6 🚀
2023-09-02 00:03:23 +00:00
Junegunn Choi
f50a7058d6
Fix center-alignment of border/preview label
...
Fix #3421
2023-09-01 20:30:44 +09:00
junegunn
2c74f0a040
Deploying to master from @ junegunn/fzf@58835e40f3 🚀
2023-09-01 00:03:34 +00:00
Junegunn Choi
58835e40f3
Run GitHub Sponsors action once a day
2023-08-29 19:42:30 +09:00
junegunn
8befa5918a
Deploying to master from @ junegunn/fzf@df80f7ff2a 🚀
2023-08-28 08:05:07 +00:00
junegunn
df80f7ff2a
Deploying to master from @ junegunn/fzf@5f66786ef1 🚀
2023-08-28 07:04:03 +00:00
Junegunn Choi
5f66786ef1
[install] Replace go get with go install
...
Fix #3365
2023-08-26 20:00:16 +09:00
Junegunn Choi
3a965856a5
[vim] Keep jump list unaffected when calling term_start
...
Fix #3415
2023-08-26 19:53:57 +09:00
junegunn
03df609d77
Deploying to master from @ junegunn/fzf@178581b560 🚀
2023-08-26 02:06:35 +00:00
junegunn
178581b560
Deploying to master from @ junegunn/fzf@ffd2314120 🚀
2023-08-25 15:04:07 +00:00
Junegunn Choi
ffd2314120
Restore --no-clear option in man page
...
Close #3411
2023-08-25 17:59:50 +09:00
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 >
2023-08-24 16:31:38 +09:00
Junegunn Choi
11e56403dd
[man] Clarify --scheme option
...
Close #3387
2023-08-22 15:16:51 +09:00
junegunn
4baadecda5
Deploying to master from @ junegunn/fzf@cf552b5f3b 🚀
2023-08-21 21:04:10 +00:00
junegunn
cf552b5f3b
Deploying to master from @ junegunn/fzf@1894304d33 🚀
2023-08-18 15:04:01 +00:00
Junegunn Choi
1894304d33
[bash] Disable pipefail in command substitution
...
Fix #3382
2023-08-18 13:37:56 +09:00
sitiom
9d5392fb02
Change Winget Releaser job to ubuntu-latest ( #3403 )
2023-08-17 17:17:38 +09:00
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>
2023-08-17 11:51:31 +09:00
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>
2023-08-17 11:51:13 +09:00
Junegunn Choi
6509f09961
Set up GitHub Sponsors Readme Action ( #3398 )
2023-08-14 16:39:39 +09:00
junegunn
3c279a6f0e
Deploying to master from @ junegunn/fzf@40515f11a4 🚀
2023-08-14 07:11:33 +00:00
Nikita Kouevda
9ec3f03871
doc: Add different prefix for Homebrew on Apple Silicon ( #3396 )
...
Follow-up to d42e708d31 .
Fixes #3095 .
2023-08-12 23:29:00 +09:00
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>
2023-08-08 14:10:03 +09:00
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>
2023-08-08 00:25:19 +09:00
Junegunn Choi
89b9189efa
[fzf-tmux] Pass $RUNEWIDTH_EASTASIAN
...
Close #3385
2023-08-03 16:47:19 +09:00
Junegunn Choi
dd59b8c7b9
Fix ANSI color continuation in --header
...
# Both lines should be in red
fzf --header $'\x1b[31mfoo\nbar'
2023-07-25 22:20:31 +09:00
Junegunn Choi
f83491274f
Add toggle-header option
...
Close #3358
2023-07-25 22:11:15 +09:00
Boaz Yaniv
c0435fdff4
Add API Keys for fzf --listen ( #3374 )
2023-07-20 23:42:09 +09:00
Bart
3c09c77269
Fix deprecations of ioutil ( #3370 )
2023-07-16 17:14:22 +09:00
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
2023-07-12 13:55:59 +09:00
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>
2023-07-11 00:35:44 +09:00
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>
2023-07-10 22:43:45 +09:00
Junegunn Choi
63aa5d3b4e
Correct outdated comment
2023-07-05 23:42:34 +09:00
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>
2023-06-22 17:00:06 +09:00
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>
2023-06-21 13:41:21 +09:00
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>
2023-06-21 13:40:48 +09:00
Junegunn Choi
a7c41f3fcd
Add '--info=right' to the man page
...
Close #3333
2023-06-17 19:15:29 +09:00
guangwu
4772bd8d4c
Use strings.ContainsRune instead ( #3335 )
2023-06-17 19:10:12 +09:00
Junegunn Choi
d471067e3f
0.42.0
2023-06-15 00:37:41 +09:00
Junegunn Choi
d0b7780239
Add --info=right
...
Related: #3322
2023-06-11 16:09:15 +09:00
Junegunn Choi
e627ca6bd7
Add --info=inline-right
...
Close #3322
2023-06-10 23:11:05 +09:00
Junegunn Choi
c97172bdd4
Fix background color of spinner on the preview window
2023-06-10 14:48:47 +09:00
Mike
ce8a745fb4
Add new border style: 'thinblock' ( #3327 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2023-06-10 14:48:29 +09:00
Junegunn Choi
3e9efd1401
[vim] Only prepend --border option in $FZF_DEFAULT_OPTS
...
Fix #3318
2023-06-03 09:03:04 +09:00
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.
2023-05-31 20:16:30 +09:00
Junegunn Choi
265040a78c
[vim] Respect --border optin in $FZF_DEFAULT_OPTS
2023-05-31 20:09:14 +09:00
Junegunn Choi
448d7e0c5a
Update test case
2023-05-27 16:01:30 +09:00
Junegunn Choi
6eb1874c5a
0.41.1
2023-05-27 15:54:22 +09:00
Junegunn Choi
4c70745cc1
Fix bug where preview is not updated after reload when --disabled is set
...
Fix #3311
2023-05-27 15:51:04 +09:00
Junegunn Choi
7795748a3f
Remove dead code
2023-05-27 15:10:47 +09:00
Junegunn Choi
098ef4d7cf
0.41.0
2023-05-26 00:25:09 +09:00
Junegunn Choi
e3f91bfe1b
Use Golang 1.20.4
2023-05-26 00:08:20 +09:00
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
2023-05-26 00:08:20 +09:00
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>
2023-05-23 23:55:57 +09:00
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>
2023-05-23 23:55:34 +09:00
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 >
2023-05-21 18:40:05 +09:00
Junegunn Choi
e2dd2a133e
Skip post hooks on 'make build'
...
https://github.com/goreleaser/goreleaser/issues/1469
2023-05-21 18:00:17 +09:00
Junegunn Choi
7514644e07
Update Dockerfile: --platform=linux/amd64
2023-05-21 17:59:18 +09:00
Junegunn Choi
16b0aeda7d
Make sure 'become' process is given a proper tty device
2023-05-21 14:01:27 +09:00
Junegunn Choi
86e4f4a841
Update tcell renderer to support block border
2023-05-20 18:24:23 +09:00
Junegunn Choi
607eacf8c7
Allow unbind(focus)
...
Fix #3279
2023-05-17 10:58:03 +09:00
Junegunn Choi
7a049644a8
Fix panic when trying to render preview window of a negative height
...
Fix #3292
2023-05-17 00:06:35 +09:00
Junegunn Choi
17a13f00f8
Allow customizing scrollbar of the preview window via --scrollbar=xy
2023-05-16 23:59:08 +09:00
Junegunn Choi
43436e48e0
Add new border style: 'block'
2023-05-16 23:45:31 +09:00
Junegunn Choi
5a39102405
Allow customizing the color of preview scrollbar via 'preview-scrollbar'
2023-05-16 23:24:05 +09:00
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.
2023-05-05 15:33:03 +09:00
Junegunn Choi
e619b7c4f4
Fix the background color of the scrollbar inside the preview window
2023-05-01 16:18:26 +09:00
Junegunn Choi
b7c2e8cb67
Fix caching when reload and query change triggered by the same binding
2023-05-01 13:53:34 +09:00
Junegunn Choi
fb76893e18
0.40.0
2023-05-01 01:59:21 +09:00
Junegunn Choi
88d812fe82
Do not display trailing carriage returns in the preview window
...
Close #3269
2023-04-30 18:14:40 +09:00
Junegunn Choi
77f9f4664a
Fix search not triggered when query change and reload happen at the same time
...
Fix #3268
2023-04-30 18:14:40 +09:00
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>
2023-04-28 23:24:56 +09:00
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>
2023-04-28 23:20:28 +09:00
Junegunn Choi
cf95e44cb4
Add 'zero' event
...
Close #3263
2023-04-26 15:13:08 +09:00
Junegunn Choi
65dd2bb429
Add 'track' action
2023-04-22 23:42:09 +09:00
Junegunn Choi
6be855be6a
Add change-header and transform-header
...
Close #3237
2023-04-22 22:01:37 +09:00
Junegunn Choi
b6e3f4423b
[man] Suggest setting RUNEWIDTH_EASTASIAN to 0 or 1
...
Close #2389
2023-04-22 16:35:46 +09:00
Junegunn Choi
0c61d81713
Add toggle-track action
2023-04-22 15:48:51 +09:00
Junegunn Choi
7c6f5dba63
Fixed --track when used with --tac
...
Fix #3234
2023-04-22 15:09:43 +09:00
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 >
2023-04-21 20:23:03 +09:00
Junegunn Choi
96670d5f16
Disallow using --track with --tac
...
Close #3234
2023-04-12 13:23:10 +09:00
Junegunn Choi
36b971ee4e
[fzf-tmux] Try awk before bc
2023-04-11 16:29:29 +09:00
Junegunn Choi
f1a9629652
[fzf-tmux] Use awk if bc is not found
...
Fix #3235
2023-04-06 13:43:18 +09:00
Junegunn Choi
20230402d0
0.39.0
2023-04-02 23:33:37 +09:00
Junegunn Choi
5c2c3a6c88
Use Go 1.20.2
2023-04-02 23:27:22 +09:00
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 >
2023-04-02 23:26:13 +09:00
Junegunn Choi
025aa33773
[fzf-tmux] Disallow popup mode on tmux 3.1 or below
...
Close #3198
2023-04-02 00:16:00 +09:00
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
2023-04-01 19:52:34 +09:00
Junegunn Choi
211512ae64
Fix Rubocop error
2023-04-01 17:29:13 +09:00
Junegunn Choi
8ec917b1c3
Add 'one' event
...
Close #2629
Close #2494
Close #459
2023-04-01 17:25:47 +09:00
Junegunn Choi
1c7534f009
Add --track option to track the current selection
...
Close #3186
Related #1890
2023-04-01 12:59:44 +09:00
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.
2023-03-27 12:21:37 +09:00
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
2023-03-26 23:39:05 +09:00
Junegunn Choi
d7daf5f724
Render CR and LF as ␍ and ␊
...
Close #2529
2023-03-25 10:41:19 +09:00
Vitaly Zdanevich
e5103d9429
README.md: package managers: add Portage/Gentoo ( #3205 )
2023-03-22 09:57:50 +09:00
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>
2023-03-21 16:53:20 +09:00
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>
2023-03-21 16:19:55 +09:00
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>
2023-03-21 16:14:14 +09:00
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>
2023-03-21 16:13:02 +09:00
Junegunn Choi
a874aea692
[vim] More explanation on 'set rtp+=~/.fzf' instruction
...
Close #3171
2023-03-20 22:33:14 +09:00
Michael Vorburger ⛑️
69c52099e7
docs: Fix intention of README ( #3214 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2023-03-20 13:00:33 +09:00
Junegunn Choi
cfc0747d5d
Follow Rubocop suggestion
2023-03-19 15:53:31 +09:00
Junegunn Choi
fcd7e8768d
Omit port number in --listen for automatic port assignment
...
Close #3200
2023-03-19 15:48:39 +09:00
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
2023-03-17 13:22:20 +09:00
Junegunn Choi
1116e481be
[vim] Update setqflist example
...
Without 'lnum', cfdo doesn't work
Close https://github.com/junegunn/fzf.vim/issues/1435
2023-03-10 22:22:22 +09:00
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 >
2023-03-07 01:21:23 +09:00
Zhizhen He
3364d4d147
Add spell check workflow ( #3183 )
2023-02-23 00:36:04 +09:00
Junegunn Choi
57ad21e4bd
Build and release s390x binaries
2023-02-22 14:31:41 +09:00
Julian Ruess
414f87981f
Add support for s390x architecture
...
Signed-off-by: Julian Ruess <julianr@linux.ibm.com >
2023-02-22 14:31:41 +09:00
Junegunn Choi
b1459c79cf
Make sure that the query before the cursor is not hidden
...
Close #3176
2023-02-19 16:38:26 +09:00
Junegunn Choi
352ea07226
0.38.0
2023-02-15 23:24:42 +09:00
Junegunn Choi
27018787af
Describe become(...) action and use it to simplify examples
2023-02-15 23:24:42 +09:00
Junegunn Choi
4e305eca26
become: Set stdin to /dev/tty
2023-02-15 23:24:42 +09:00
sitiom
9e9c0ceaf4
Add Winget Releaser workflow ( #3164 )
2023-02-15 16:47:12 +09:00
Junegunn Choi
b3bf18b1c0
[fzf-tmux] Fix version check
...
The output of `tmux -V` starts with "tmux ".
2023-02-13 15:25:39 +09:00
Junegunn Choi
b1619f675f
[fzf-tmux] Do not set --margin 0,1 on tmux 3.3 or above
...
Close #3162
2023-02-13 14:49:02 +09:00
Junegunn Choi
96c3de12eb
Run 'become' only when the command template is properly evaluated
2023-02-12 22:06:21 +09:00
Junegunn Choi
719dbb8bae
Update ADVANCED.md: transform-query to restore the query string
...
Close #2961
2023-02-12 17:23:17 +09:00
Junegunn Choi
f38a7f7f8f
[bash] Enable environment variable completion for printenv
...
Close #3145
2023-02-12 16:58:36 +09:00
Junegunn Choi
6ea38b4438
Add become(...) action that replaces current fzf process
...
Close #3159
2023-02-11 20:26:31 +09:00
Junegunn Choi
f7447aece1
Code cleanup
2023-02-01 18:16:58 +09:00
Junegunn Choi
aa2b9ec476
Add 'show-preview' and 'hide-preview'
...
For cases where 'toggle-preview' is not enough
2023-01-31 17:34:11 +09:00
Junegunn Choi
3ee00f8bc2
toggle-preview should not show empty preview window
2023-01-30 22:13:29 +09:00
Junegunn Choi
fccab60a5c
--preview-window 0,hidden should not execute the preview command
...
Until `toggle-preview` action is triggered
Fix #3149
2023-01-30 21:39:18 +09:00
Junegunn Choi
0f4af38457
[vim] Simplify --border injection
...
Prepend the border options so that the user can override them in
'options' entry of the spec.
2023-01-27 14:00:22 +09:00
Junegunn Choi
aef39f1160
[vim] Fix missing --border when --border-label is present
2023-01-27 11:00:59 +09:00
Junegunn Choi
2023012408
0.37.0
2023-01-24 22:11:14 +09:00
Junegunn Choi
95a7661bb1
Sanitize input strings that should be a single line
2023-01-24 19:35:29 +09:00
Junegunn Choi
618d317803
Support custom separator of inline info
...
Close #2030
Close #3084
2023-01-24 17:55:06 +09:00
Junegunn Choi
ae897c8cdb
No need to touch mouse flag if it's already false
2023-01-24 12:45:07 +09:00
Junegunn Choi
d0a0f3c052
Temporarily disable mouse mode when switching to an external command
2023-01-24 12:41:40 +09:00
Junegunn Choi
91b9591b10
Reenable mouse mode when coming back from an external program
...
Close #3141
2023-01-24 12:00:41 +09:00
Junegunn Choi
aa7361337d
Make test case pass on 32-bit platforms
...
Close #3127
2023-01-23 18:30:36 +09:00
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
2023-01-23 16:38:24 +09:00
Junegunn Choi
826178f1e2
Do not restore terminal state while running an external command
2023-01-23 02:24:13 +09:00
Junegunn Choi
acccf8a9b8
Fix TOC
2023-01-23 02:24:13 +09:00
Francesco Bigagnoli
57c066f0be
Fix bat url in README ( #3129 )
2023-01-23 02:21:16 +09:00
Nachum Barcohen
e44f64ae92
Add Helix editor to bash autocompletion ( #3137 )
2023-01-23 02:21:04 +09:00
Junegunn Choi
d51980a3f5
Add 'transform-border-label' and 'transform-preview-label'
2023-01-22 02:18:19 +09:00
jpcrs
c3d73e7ecb
Add change-border-label and change-preview-label actions, update man
2023-01-22 02:18:19 +09:00
Junegunn Choi
b077f6821d
Action argument in enclosed form should allow new lines
...
Close #3138
2023-01-21 22:20:26 +09:00
Junegunn Choi
a79de11af7
README: Add FZF_TMUX_OPTS example for tmux popup
2023-01-19 13:25:08 +09:00
Junegunn Choi
2023011763
0.36.0
2023-01-17 01:33:05 +09:00
Junegunn Choi
b46e40e86b
[vim] Automatically set RUNEWIDTH_EASTASIAN=1 when &ambiwidth == double
2023-01-17 01:03:16 +09:00
Junegunn Choi
a6d6cdd165
[vim] Use system-default border style
...
* 'rounded' on non-Windows platforms
* 'sharp' on Windows
2023-01-16 22:44:22 +09:00
Junegunn Choi
dc8da605f9
Fix rendering of double-column borders on light renderer
2023-01-16 19:55:44 +09:00
Junegunn Choi
8b299a29c7
Fix rendering of double-column borders
2023-01-16 19:34:28 +09:00
Junegunn Choi
3109b865d2
Fix typo on man page
2023-01-16 01:32:48 +09:00
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`.
2023-01-16 01:26:39 +09:00
Junegunn Choi
1c83b39691
Update README examples
2023-01-13 21:15:03 +09:00
Junegunn Choi
77874b473c
Update Rubocop dependencies
2023-01-12 23:37:23 +09:00
Junegunn Choi
b7cce7be15
Remove unused block argument
2023-01-12 23:24:39 +09:00
Junegunn Choi
3cd3362417
Fix test failure
2023-01-12 23:23:29 +09:00
Junegunn Choi
e97e925efb
Resume preview following if the user scrolls the window to the bottom
2023-01-12 23:18:41 +09:00
Farooq Karimi Zadeh
0f032235cf
Correct package manager commands for apt ( #3117 )
2023-01-10 10:46:13 +09:00
Junegunn Choi
e0f0984da7
Allow re-enabling preview follow on change-preview-window
2023-01-09 11:08:06 +09:00
Junegunn Choi
4d22b5aaef
Disable preview follow after dragging the scrollbar
...
TBD: Should we re-enable follow once the offset reaches the bottom?
2023-01-09 11:07:31 +09:00
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.
2023-01-07 16:11:35 +09:00
Junegunn Choi
bf641faafa
Prevent fzf crashing on malformed remote action
2023-01-07 15:38:02 +09:00
Junegunn Choi
23d8b78ce1
Allow toggling of alternative preview window layout that is hidden
...
Fix #3113
2023-01-07 15:12:31 +09:00
Junegunn Choi
3b2244077d
Add scrollbar to the preview window
2023-01-06 15:36:12 +09:00
Junegunn Choi
ee5cdb9713
Reduce flickering of the scroll info panel on the preview window
2023-01-05 01:59:22 +09:00
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'
2023-01-04 22:00:00 +09:00
Junegunn Choi
5798145581
Fix preview border on tcell renderer
2023-01-04 10:09:39 +09:00
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 >
2023-01-03 02:58:09 +09:00
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 >
2023-01-03 02:38:57 +09:00
Junegunn Choi
c1cd0c09a2
Allow dragging of the preview window
2023-01-03 01:46:37 +09:00
Junegunn Choi
1fc1f47d80
Fix double-click on light renderer
2023-01-03 01:39:16 +09:00
Junegunn Choi
ec471a5bc2
Make sure two consecutive double clicks require four clicks
2023-01-03 01:36:51 +09:00
Junegunn Choi
a893fc0ca2
Clicks with different x coordinates shouldn't be seen as a double-click
2023-01-03 01:21:40 +09:00
Junegunn Choi
3761dc0433
Avoid superfluous update of scrollbar
2023-01-02 01:10:01 +09:00
Junegunn Choi
aa71a07fbe
Fix scrollbar rendering ( #3096 )
2023-01-01 21:18:20 +09:00
Junegunn Choi
088293f5e7
Restore mouse drag mode ( #3096 )
2023-01-01 21:04:40 +09:00
Junegunn Choi
7c660aa86e
Allow dragging of scrollbar
2023-01-01 19:01:56 +09:00
Junegunn Choi
435d8fa0a2
Colors for 'separator' and 'scrollbar' will default to that for 'border'
2023-01-01 19:01:56 +09:00
Junegunn Choi
5cd6f1d064
Add scrollbar
...
Close #3096
2023-01-01 14:48:14 +09:00
Junegunn Choi
ec20dfe312
Only allow local requests
2022-12-31 23:13:14 +09:00
Junegunn Choi
924ffb5a35
Fix cache being immediately cleared on reload-sync
2022-12-31 09:33:23 +09:00
Junegunn Choi
62c7f59b94
Add transform-prompt(...) action
2022-12-31 09:27:11 +09:00
Junegunn Choi
e97176b1d7
Update transform-query examples for zsh
...
Close #3107
2022-12-30 17:12:55 +09:00
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
2022-12-30 14:29:17 +09:00
Junegunn Choi
6c37177cf5
Add reload-sync action
...
Close #2816
2022-12-29 20:04:33 +09:00
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
2022-12-29 20:01:50 +09:00
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'
2022-12-28 12:52:19 +09:00
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} {}')
2022-12-28 00:05:31 +09:00
Junegunn Choi
4dbe45640a
Remove $FZF_LISTEN_PORT
...
It is not worth the added complexity.
2022-12-27 22:12:06 +09:00
Junegunn Choi
4b3f0b9f08
Allow put action with an argument i.e. put(...)
2022-12-27 19:54:46 +09:00
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
2022-12-27 01:08:42 +09:00
Junegunn Choi
d42e708d31
Update README-VIM: Different homebrew prefix on Apple Silicon
...
Close #3095
2022-12-26 16:25:36 +09:00
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.
2022-12-25 20:00:00 +09:00
Junegunn Choi
750b2a6313
Add GET endpoints for getting the state of the finder
...
* GET / (or GET /current)
* GET /query
2022-12-25 16:27:02 +09:00
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.
2022-12-23 15:41:13 +09:00
Junegunn Choi
8e283f512a
Fix bind spec parser
2022-12-23 15:37:39 +09:00
Junegunn Choi
73162a4bc3
Rewrite bind spec parser
2022-12-23 03:28:16 +09:00
Junegunn Choi
1a9761736e
Add time and size limit to remote requests
2022-12-22 20:44:49 +09:00
Junegunn Choi
fd1f7665a7
Abort fzf if --listen port is unavailable
2022-12-21 13:02:25 +09:00
Junegunn Choi
6d14573fd0
Add test case for --listen
2022-12-21 01:35:08 +09:00
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)> "
2022-12-21 01:35:08 +09:00
Junegunn Choi
a7a771b92b
Break out of jump mode when any action is submitted to the server
2022-12-21 01:35:08 +09:00
Junegunn Choi
def011c029
Fix parse error of actions with arguments
2022-12-21 01:35:08 +09:00
Junegunn Choi
4b055bf260
Rewrite HTTP server without net/http
...
This cuts down the binary size from 5.7MB to 3.3MB.
2022-12-21 01:35:08 +09:00
Junegunn Choi
1ba7484d60
Add --listen=HTTP_PORT option to receive actions
...
Supersedes #2019
See also:
* #1728
* https://github.com/junegunn/fzf.vim/pull/1044
2022-12-21 01:35:08 +09:00
Junegunn Choi
51c518da1e
Add change-query(...) action
2022-12-18 00:26:31 +09:00
polluks2
a3b6b03dfb
Fix typo ( #3093 )
...
Co-authored-by: polluks <polluks@sdf.lonestar.org >
2022-12-17 23:58:43 +09:00
Junegunn Choi
18e3b38c69
Add 'next-selected' and 'prev-selected' actions
...
Close #2749
2022-12-11 00:59:34 +09:00
Junegunn Choi
0ad30063ff
Rename previous-history to prev-history
...
previous-history is still supported for backward compatibility
2022-12-10 22:42:56 +09:00
Junegunn Choi
7812c64a31
Fix uninitialized colors in base themes
...
Fix #3079
2022-12-10 16:55:19 +09:00
Junegunn Choi
3d2376ab52
Add color name 'preview-label' ( #3053 )
2022-12-09 12:05:27 +09:00
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
2022-12-04 22:17:39 +09:00
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.
2022-12-02 14:57:32 +09:00
Junegunn Choi
8f4c89f50e
Make 'double-click' behave the same as 'enter' by default
...
Close #3061
2022-11-29 20:27:29 +09:00
OHZEKI Naoki
6b7a543c82
Add more util tests ( #3062 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2022-11-27 16:30:59 +09:00
Junegunn Choi
2ba68d24f2
Do not erase info separator before redrawing it
2022-11-25 23:51:49 +09:00
Bruno Heridet
46877e0a92
test(eventbox): remove obsolete EvtClose const ( #3059 )
2022-11-23 19:38:14 +09:00
Junegunn Choi
b55f555487
0.35.1
2022-11-18 20:42:56 +09:00
Junegunn Choi
a38b63be18
Fix mouse event above fzf finder
...
Fix #2949
2022-11-18 20:32:59 +09:00
Junegunn Choi
1bebd6f4f5
Fix panic on inverse match query with --tiebreak=chunk
...
Fix #3055
2022-11-18 20:16:43 +09:00
Bruno Heridet
3da63f394d
doc(man): complete the definition of what --no-unicode impacts ( #3054 )
2022-11-18 10:23:21 +09:00
Zhizhen He
2a54e3d770
Fix typos in the source code ( #3048 )
2022-11-18 10:23:04 +09:00
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>
2022-11-18 10:22:08 +09:00
Junegunn Choi
d01ae55109
0.35.0
2022-11-12 00:58:06 +09:00
Junegunn Choi
8868d7d188
Add --separator to customize the info separator
2022-11-10 16:23:33 +09:00
Junegunn Choi
2eec9892be
[neovim] Use Normal group colors for floating window
...
Instead of NormalFloat.
https://github.com/junegunn/fzf/issues/3035#issuecomment-1305094043
2022-11-08 00:32:41 +09:00
Junegunn Choi
01ae621f11
Add --border=[bold|double] and --preview-window=border-[bold|double]
2022-11-06 14:38:31 +09:00
Junegunn Choi
f984aa0d2c
Fix --border-label and --preview-label on tcell renderer
2022-11-06 14:35:20 +09:00
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
2022-11-05 16:52:23 +09:00
Junegunn Choi
2c6a73546d
Fix rubocop check
2022-11-01 13:59:17 +09:00
Junegunn Choi
a29944660e
Fix typo in CHANGELOG
2022-11-01 13:33:09 +09:00
Junegunn Choi
f6ce624c6f
Add tests for --border-label and --preview-label
...
Also fix failing tests due to info separator
Related #3022 #3029
2022-11-01 13:30:41 +09:00
Junegunn Choi
c09ec8e4d1
Allow putting border label on the bottom line
...
Related #3022
2022-11-01 13:30:40 +09:00
Junegunn Choi
31bbaad06e
Add --preview-label and --preview-label-pos
...
Close #3022
2022-11-01 13:27:22 +09:00
Junegunn Choi
b9ca1fe830
Add horizontal separator after info panel (counter)
...
Close #3029
2022-11-01 13:27:11 +09:00
Junegunn Choi
e61585f2f3
Add --border-label and --border-label-pos
...
Close #3022
2022-11-01 13:27:00 +09:00
Junegunn Choi
0de1aacb0c
[vim] Fix version check on Windows when shellslash is set
2022-10-31 10:57:05 +09:00
Junegunn Choi
168829b555
Add 'start' event that is triggered once when fzf finder starts
...
Close #1622
2022-10-27 00:38:38 +09:00
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 >
2022-10-25 15:54:44 +09:00
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 >
2022-10-25 09:34:58 +09:00
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 >
2022-10-24 20:07:31 +09:00
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 >
2022-10-16 22:36:59 +09:00
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 >
2022-10-16 22:33:49 +09:00
Junegunn Choi
d56fe74e24
Add checksums of Darwin binaries
...
Close #2989
2022-10-16 22:06:40 +09:00
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 >
2022-10-16 17:15:19 +09:00
Junegunn Choi
f9d53303bb
[vim] Remove unnecessary powershell check
...
&shell is guaranteed to be cmd.exe on windows because we call s:use_sh()
2022-10-13 14:48:32 +09:00
Junegunn Choi
d04faa6505
[vim] Fix escaping of fzf binary path containing spaces on Windows
...
Fix #2992
2022-10-12 20:07:58 +09:00
Kyle L. Davis
07da058eae
[vim] Update fzf#install to handle spaces on Windows ( #2993 )
2022-10-08 19:20:39 +09:00
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.
2022-10-04 09:52:28 +09:00
Junegunn Choi
04d0b0223f
0.34.0
2022-09-28 23:22:31 +09:00
Junegunn Choi
78ad6d2d88
Phase out --no-clear in favor of bindable 'reload' action
2022-09-28 23:22:31 +09:00
Junegunn Choi
22cbd9fa58
Implement height range (--height ~[VALUE][%])
...
Close #2953
2022-09-28 23:22:31 +09:00
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>
2022-09-28 17:03:19 +09:00
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>
2022-09-28 17:02:55 +09:00
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>
2022-09-28 16:55:35 +09:00
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 >
2022-09-28 16:55:13 +09:00
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>
2022-09-28 16:53:56 +09:00
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>
2022-09-28 16:53:04 +09:00
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>
2022-09-28 16:50:36 +09:00
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>
2022-09-28 16:50:19 +09:00
Junegunn Choi
731daf0f37
Fix tcell renderer
...
Fix #2954
2022-09-26 14:09:38 +09:00
Junegunn Choi
f931e53890
[fish] Do not use builtin cd
...
`builtin cd` of fish doesn't support `cd -`
Close #2967
2022-09-20 16:59:07 +09:00
Junegunn Choi
b5efc68737
Revert "Add Sponsor Labels action"
...
This reverts commit 845034c81c .
2022-09-13 09:43:11 +09:00
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 >
2022-09-10 11:38:41 +09:00
Junegunn Choi
845034c81c
Add Sponsor Labels action
2022-09-10 11:25:32 +09:00
Abirdcfly
54d42e3f40
Fix typo in CHANGELOG ( #2948 )
2022-08-30 13:28:01 +09:00
Junegunn Choi
e03ac3136e
0.33.0
2022-08-29 07:23:14 +09:00
Junegunn Choi
6fb41a202a
Add --scheme=[default|path|history] option to choose scoring scheme
...
Close #2909
Close #2930
2022-08-28 22:22:39 +09:00
Emil Vanherp
4bef330ce1
Add support for ANSI strike-through ( #2932 )
...
Close #2932
Co-authored-by: Emil Vanherp <emil@vanherp.me >
2022-08-26 09:27:49 +09:00
Junegunn Choi
8a5f719964
ADVANCED: fzf-git.sh
2022-08-25 17:54:35 +09:00
Charlie Vieth
209d5e8e90
ansi: speed up escape sequence parsing ( #2927 )
2022-08-25 14:02:08 +09:00
Junegunn Choi
9d041aa582
Update README
2022-08-23 13:29:41 +09:00
Junegunn Choi
6532b3e655
[completion] Remove extra trailing slash on directory completion
...
Fix #2931
2022-08-22 22:29:51 +09:00
Junegunn Choi
c1c355160d
Support border-{up,down} as the synonyms for border-{top,bottom}
2022-08-20 00:11:17 +09:00
Junegunn Choi
83515d5610
Update ANSI test cases
2022-08-13 22:40:37 +09:00
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
2022-08-13 22:30:50 +09:00
Junegunn Choi
f4fd53211a
Reformat comments adhere to gofmt
2022-08-12 22:11:15 +09:00
Junegunn Choi
4993d19466
0.32.1
2022-08-08 23:57:32 +09:00
Junegunn Choi
19f9bbca0d
Allow specifying fzf options in $FZF_TMUX_OPTS without '--'
2022-08-08 23:50:47 +09:00
Junegunn Choi
779d8e1627
Use go 1.19
2022-08-08 13:39:00 +09:00
Junegunn Choi
bb07410448
Add --strip-cwd-prefix to fd examples
2022-08-08 13:38:21 +09:00
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 >
2022-08-07 10:28:45 +09:00
Junegunn Choi
6a6130615d
[fzf-tmux] Remove code for tmux 3.2 beta compatibility
2022-08-06 19:08:13 +09:00
lbesnard
a8e7021be2
[completion] ssh: Remove values with '%' ( #2548 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2022-08-03 22:39:42 +09:00
Junegunn Choi
38259d0382
Fix incorrect ordering of --tiebreak=chunk
2022-08-03 22:18:26 +09:00
Junegunn Choi
f7e7259910
0.32.0
2022-08-02 21:56:14 +09:00
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.
2022-08-02 21:48:19 +09:00
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
2022-08-02 20:57:13 +09:00
Junegunn Choi
bbbcd780c9
Allow "--version" to be used as the argument to --query, --header, et al.
...
But why?
2022-08-02 20:57:12 +09:00
kissge
475469a2e7
[zsh] Make awk regex compatible with both GNU and macOS ( #2906 )
2022-08-02 20:56:25 +09:00
Junegunn Choi
3a7447dcb6
Update FUNDING.yml
2022-07-30 19:35:41 +09:00
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
2022-07-30 19:08:04 +09:00
Junegunn Choi
3c08dca7e7
Fix README examples so that they work both on bash and zsh
...
Close #2887
2022-07-29 22:03:02 +09:00
Carl Kamholtz
d083f01d22
[vim] Add option to force 24 bit colors on Windows ( #2889 )
2022-07-29 21:51:35 +09:00
Bob Matcuk
68cf393644
[bash] Fix 'possible retry loop' problem of bash-completion ( #2891 )
...
Close #2474
Close #2583
2022-07-29 21:50:59 +09:00
Junegunn Choi
18f7230662
Fix mouse location in --height mode
...
Fix #2900
2022-07-29 15:42:44 +09:00
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
2022-07-29 08:18:06 +09:00
Junegunn Choi
ecc418ba77
0.31.0
2022-07-21 23:04:57 +09:00
Junegunn Choi
3af5b7f2ac
Do not validate other options when --version is present
...
Close #2690
2022-07-21 22:36:52 +09:00
Junegunn Choi
7a7cfcacbe
Lift unicode.IsGraphic constraint for pointer, marker, and ellipsis
...
Use at your own risk.
Close #2709
Close #2055
2022-07-21 22:30:01 +09:00
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
2022-07-21 22:21:11 +09:00
Junegunn Choi
0d06c28b19
Fix delimiter regex to properly support caret (^)
...
Fix #2861
2022-07-21 21:21:06 +09:00
Junegunn Choi
ccc4677252
[vim] fzf#exec: Shell-escape fzf binary path
...
Fix #2877
2022-07-20 14:29:52 +09:00
Junegunn Choi
821fc9feed
Fix failing test case
2022-07-20 12:29:45 +09:00
Junegunn Choi
82b46726fc
Add support for an alternative preview window layout
...
Close #2804
Close #2844
Related #2277
2022-07-20 12:08:54 +09:00
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.
2022-07-20 11:53:34 +09:00
Jonathan Zacsh
c79c306adb
[bash] Fix fzf-tmux to have fzf's completion ( #2871 )
2022-07-15 15:53:23 +09:00
Junegunn Choi
51fdaad002
[uninstall] Remove readlink to support relative symlinks of dotfiles
...
Close #2853
2022-07-01 16:32:32 +09:00
znley
885cd8ff04
[make] Add loongarch64 support ( #2857 )
2022-06-28 09:16:26 +09:00
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".
2022-06-24 16:53:51 +09:00
Junegunn Choi
2d227e5222
[man] Fix unescaped backslash in awk example
...
Close #2854
2022-06-23 15:45:36 +09:00
Junegunn Choi
70529878e2
Use SGR mouse mode for larger terminals
...
Fix #2840
2022-06-17 12:48:04 +09:00
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 >
2022-05-25 09:50:10 +09:00
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.
2022-04-29 19:04:16 +09:00
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.
2022-04-28 11:46:24 +09:00
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 >
2022-04-22 22:36:56 +09:00
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 >
2022-04-22 22:35:51 +09:00
Ajeet D'Souza
54841248e7
[shell] ALT-C: Use builtin cd to avoid conflicts ( #2799 )
2022-04-22 21:58:32 +09:00
Junegunn Choi
a0b42e6538
Require Go 1.17 or above
2022-04-07 20:31:19 +09:00
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'
2022-04-06 11:29:01 +09:00
Junegunn Choi
2093667548
0.30.0
2022-04-04 23:01:43 +09:00
Junegunn Choi
3c868d7961
ADVANCED.md: Add rebind example
2022-04-04 22:59:26 +09:00
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>
2022-04-04 22:44:10 +09:00
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
2022-04-04 22:06:16 +09:00
Junegunn Choi
d56f605b63
Add rebind action for restoring bindings after unbind
...
Fix #2752
Close #2564
2022-04-04 21:54:22 +09:00
Junegunn Choi
f8b713f425
Remove redundant state update on reload
...
Related: 5209e95
2022-03-31 10:05:28 +09:00
Junegunn Choi
5209e95bc7
Make preview updated when reload and change-query are combined
...
Fix #2744
2022-03-29 22:27:03 +09:00
Junegunn Choi
ef67a45702
Add --ellipsis=.. option
...
Close #2432
Also see
- #1769
- https://github.com/junegunn/fzf/pull/1844#issuecomment-586663660
2022-03-29 21:35:36 +09:00
Junegunn Choi
b88eb72ac2
Modernize build tags
2022-03-29 21:23:45 +09:00
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>
2022-03-29 21:17:44 +09:00
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>
2022-03-29 21:17:29 +09:00
Naveen
bb028191f8
Set up dependabot for GitHub actions ( #2764 )
2022-03-29 21:08:41 +09:00
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
2022-03-29 21:08:01 +09:00
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
2022-03-09 17:02:06 +09:00
Junegunn Choi
5f385d88e0
[zsh] Set up bindings for all three keymaps: emacs, vicmd, and viins
...
Fix #2694
2022-02-23 15:36:49 +09:00
Junegunn Choi
9cb7a364a3
[install] Remove code that might delete user fish script
...
Fix #2703
2022-01-05 21:48:20 +09:00
Junegunn Choi
f68cbc577d
Add link to ADVANCED.md
...
Related #2701
2022-01-03 13:52:46 +09:00
Junegunn Choi
dc975e8974
0.29.0
2021-12-25 01:46:01 +09:00
Junegunn Choi
4311ade535
ADVANCED.md: Add change-preview-window example
2021-12-24 14:41:47 +09:00
Junegunn Choi
cd23401411
Fix rendering of the prompt line when overflow occurs with --info=inline
...
Fix #2692
2021-12-22 23:23:50 +09:00
Martin Jindra
176ee6910f
Update Dockerfile ( #2662 )
...
`archlinux/base:latest`cannot be found
2021-12-09 11:05:12 +09:00
Junegunn Choi
13c8f3d3aa
[vim] Handle writefile() failure gracefully
...
Fix #2676
2021-12-07 17:33:26 +09:00
Junegunn Choi
ce9af687bc
Remove unused code
2021-12-05 21:17:38 +09:00
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
2021-12-05 21:13:10 +09:00
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
2021-11-30 23:57:46 +09:00
Kai
7da287e3aa
README.md: HTTP => HTTPS ( #2673 )
2021-11-28 22:28:32 +09:00
zsugabubus
205f885d69
[shell] Use cd -- ( #2659 )
...
Otherwise directories starting with '-' may treated as options.
2021-11-19 10:36:28 +09:00
Junegunn Choi
3715cd349d
Add repology packaging status badge
2021-11-18 15:47:06 +09:00
Junegunn Choi
e4c3ecc57e
0.28.0
2021-11-04 01:05:07 +09:00
Junegunn Choi
673c5d886d
Add 'put' action for putting the character to the prompt
...
fzf --bind 'space:preview(date)+put'
Close #2456
2021-11-04 00:49:05 +09:00
Junegunn Choi
f799b568d1
[bash] Suppress error message from 'bind'
...
Fix #2618
2021-11-03 23:26:25 +09:00
Junegunn Choi
7bff4661f6
Add --header-first option to display header before prompt line
...
Close #2422
2021-11-03 21:19:22 +09:00
Junegunn Choi
ffd8bef808
Update CHANGELOG
2021-11-02 21:48:19 +09:00
Junegunn Choi
02cee2234d
Implement --scroll-off=LINES
...
Close #2533
2021-11-02 21:48:19 +09:00
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)
2021-11-02 15:56:20 +09:00
Vlastimil Ovčáčík
a33c011c21
Test escaping of powershell commands on Windows
2021-11-02 15:56:20 +09:00
Rashil Gandhi
7c3f42bbba
Fix powershell escaping
2021-11-02 15:56:20 +09:00
Junegunn Choi
edac9820b5
Cache cygpath result
...
No need to repeatedly run cygpath process because $SHELL never changes.
2021-10-25 18:46:59 +09:00
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
2021-10-23 01:09:47 +09:00
Junegunn Choi
97ae8afb6f
Reload should update preview window
...
Fix #2644
2021-10-23 01:06:15 +09:00
Junegunn Choi
4138333f5c
0.27.3
2021-10-15 23:59:56 +09:00
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.
2021-10-15 22:31:59 +09:00
Junegunn Choi
50eb2e3855
Render spinner on info line during "reload"
...
Fix #2637
2021-10-15 22:13:57 +09:00
Xeonacid
5fc78e4584
Add riscv64 build target ( #2626 )
...
Build successfully on Arch Linux RISC-V.
2021-10-10 21:33:06 +09:00
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
2021-10-10 20:19:48 +09:00
Vlastimil Ovčáčík
179993f0cd
Enable manually trigger on GitHub Workflows ( #2620 )
2021-10-04 21:41:54 +09:00
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>
2021-10-04 21:13:46 +09:00
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>
2021-10-04 21:12:40 +09:00
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>
2021-10-04 21:01:03 +09:00
Vlastimil Ovčáčík
b8aa2d2c32
Minor refactoring tcell library from tui.go to tcell.go
...
To prevent including tcell library in non-windows builds.
2021-10-03 01:39:30 +09:00
Vlastimil Ovčáčík
0ff885461b
Add mouse support to the FullscreenRenderer
2021-10-03 01:39:30 +09:00
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.
2021-10-03 01:39:30 +09:00
Vlastimil Ovčáčík
09700f676b
Add CtrlCaret keyboard event to FullscreenRenderer
2021-10-03 01:39:30 +09:00
Vlastimil Ovčáčík
4271e9cffa
Fix Ctrl+Space key combination to emit CtrlSpace instead of Rune ' '
2021-10-03 01:39:30 +09:00
Vlastimil Ovčáčík
f3dc8a10d5
Add ability to type AltGr characters in FullscreenRenderer on Windows.
2021-10-03 01:39:30 +09:00
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).
2021-10-03 01:39:30 +09:00
Junegunn Choi
4173e94c6f
Do not check for --height support on --version
...
https://github.com/junegunn/fzf.vim/issues/1329
2021-09-29 20:17:44 +09:00
Hiroki Konishi
261d3d3340
fix: replace broken links with archived ones
2021-09-28 18:07:22 +09:00
Hiroki Konishi
15e20fcae1
fix: spelling Refence -> Reference
2021-09-28 18:07:22 +09:00
Vlastimil Ovčáčík
f4f47f5fe3
Minor changes
...
- obsolete todo removed, I tested the ev.ch for " " char and it works just
fine
2021-09-24 16:04:36 +09:00
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.
2021-09-24 16:04:36 +09:00
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
2021-09-24 09:45:06 +09:00
Junegunn Choi
0f02fc0c77
Reset {n} after reload
...
Fix #2611
2021-09-14 20:36:10 +09:00
Keating950
3f90fb42d8
Fix spelling error (Extention -> Extension) ( #2589 )
2021-08-17 16:40:24 +09:00
Daniel Bast
9bd8988300
Add dependabot config for dependency updates ( #2573 )
2021-08-17 16:27:50 +09:00
a1346054
3c804bcfec
fix spelling
2021-08-15 16:03:26 +09:00
a1346054
cca4cdc4f1
improve test logic and be explicit about the test
2021-08-15 16:03:26 +09:00
a1346054
8f899aaf8a
use proper bash-style notation
2021-08-15 16:03:26 +09:00
a1346054
e53b4bb439
always use [[ ... ]] and not [ ... ] in bash completions
2021-08-15 16:03:26 +09:00
a1346054
ab247a1309
use consistent style for bash [[ ... ]]
2021-08-15 16:03:26 +09:00
Michael Kelley
c21e9edad4
Restore VT hack for Windows ( #2580 )
...
- restore VT enable hack
- resolve an issue reported in https://github.com/kelleyma49/PSFzf
2021-08-15 16:01:50 +09:00
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`
2021-08-15 15:57:07 +09:00
Junegunn Choi
7191ebb615
Do not show preview window by default if --preview is empty
...
Close #2516
2021-06-08 08:53:29 +09:00
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))
2021-06-04 22:07:29 +09:00
Junegunn Choi
e086f0b3fe
0.27.2
2021-06-01 17:00:24 +09:00
Junegunn Choi
8255aa23f4
Fix bug where --read0 not properly displaying long lines
...
Fix #2508
2021-06-01 16:55:51 +09:00
Junegunn Choi
a4bc08f5a3
Allow specifying 16 base ANSI colors by their names
...
Close #2502
2021-05-26 19:35:26 +09:00
Thomas Klausner
7e5aa1e2a5
Mention NetBSD package and how to install it ( #2499 )
...
Close #2487
2021-05-23 11:31:55 +09:00
Junegunn Choi
0818dbc36a
0.27.1
2021-05-22 13:19:57 +09:00
Junegunn Choi
347c4b2625
Add 'unbind' action
...
Fix #2486
2021-05-22 13:16:39 +09:00
Junegunn Choi
34f0d4d0c4
[man] Clarification on --select-1 and --exit-0
2021-05-22 09:47:02 +09:00
Junegunn Choi
cbedb57511
[vim] Workaround for Neovim bug of unconditionally evaluating unlet $ENV_VAR
...
See #2495
2021-05-21 13:17:19 +09:00
Junegunn Choi
9ef825d2fd
[vim] Update README-VIM
2021-05-19 18:43:50 +09:00
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.
2021-05-19 18:39:12 +09:00
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
2021-05-19 18:37:13 +09:00
Junegunn Choi
3f75a8369f
Replace RuneWidth to StringWidth to handle grapheme clusters
...
Fix #2482
2021-05-14 11:44:44 +09:00
Junegunn Choi
4cd621e877
ADVANCED.md: tmux 3.2 is officially released
2021-04-29 09:37:17 +09:00
Junegunn Choi
6e3a2fe0bf
[vim] Fix screen offset of relatively positioned popup window
...
Fix #2461
2021-04-28 10:17:46 +09:00
Tom Picton
8b0e1f941a
[vim] Support relative-to-window positioning of popup ( #2443 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2021-04-17 20:48:10 +09:00
Junegunn Choi
c7c5e7670a
Fix goreleaser.yml
2021-04-10 14:19:19 +09:00
Junegunn Choi
f6c621ef1b
Update ADVANCED.md
...
Remove unnecessary --color option
2021-04-09 22:58:31 +09:00
Junegunn Choi
faf32d451d
Update ADVANCED.md
2021-04-09 14:14:53 +09:00
Junegunn Choi
252fd7ecb1
Update ADVANCED.md
2021-04-09 13:43:16 +09:00
Junegunn Choi
7fa89dddb4
Update README.md: Examples page
2021-04-08 10:06:26 +09:00
Junegunn Choi
fefdb8c84e
Fix typo
2021-04-07 13:28:26 +09:00
Junegunn Choi
a6cc05936e
ADVANCED.md: Clarification on {q}
2021-04-07 07:12:39 +09:00
Junegunn Choi
b209843545
Advanced fzf examples
2021-04-07 06:46:17 +09:00
Junegunn Choi
19759ed36e
0.27.0
2021-04-06 22:53:59 +09:00
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
2021-04-06 20:32:18 +09:00
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%
2021-04-06 20:10:55 +09:00
Junegunn Choi
3a2015ee26
Fix minimum preview window height
2021-04-06 20:05:54 +09:00
Junegunn Choi
c440418ce6
Sign and notarize macOS binaries
...
Close #2408
2021-04-06 18:09:06 +09:00
Junegunn Choi
3d37a5ba1d
Apply preview-bg color to preview border of all shapes
2021-04-06 18:01:29 +09:00
Junegunn Choi
15f4cfb6d9
More border optins for preview window
...
Close #2431
2021-04-06 17:37:11 +09:00
Junegunn Choi
be36de2482
Ignore more ANSI escape sequences
...
Fix #2420
2021-04-06 00:51:39 +09:00
Junegunn Choi
391237f7df
[vim] Compare binary versions
...
Close #2410
2021-04-06 00:24:20 +09:00
Junegunn Choi
977e5effd9
[vim] Fix paste on MacVim
...
Close https://github.com/junegunn/fzf.vim/issues/1233
2021-04-05 17:28:18 +09:00
Junegunn Choi
8b36a4cb19
Speed up preview switching when doing partial rendering
...
Fix #2417
2021-04-04 13:43:16 +09:00
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
2021-04-04 13:19:43 +09:00
Junegunn Choi
764316a53d
Fix flaky test case: test_interrupt_execute
...
Try to avoid extraneous INT signal
2021-03-26 17:40:12 +09:00
Philipp Schmitt
2048fd4042
Update README (--phony -> --disabled) ( #2404 )
2021-03-25 20:36:01 +09:00
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 {})"
2021-03-25 20:00:09 +09:00
Junegunn Choi
6a1f3ec08b
[install] Download Darwin arm64 binary ( #2400 #2401 )
2021-03-25 10:56:21 +09:00
Mitsuo Heijo
2e353aee96
Replace golang.org/x/crypto/ssh/terminal with golang.org/x/term ( #2395 )
...
See https://github.com/golang/go/issues/31044
2021-03-20 14:38:34 +09:00
Mitsuo Heijo
8edfd14a37
Test against Golang 1.14 and 1.16 ( #2396 )
...
1.14 for 32-bit binaries
2021-03-20 12:32:44 +09:00
Junegunn Choi
1a191ec6f7
Update FUNDING.yml
2021-03-14 12:03:11 +09:00
Junegunn Choi
e7171e94b4
Update FUNDING.yml
2021-03-14 12:01:57 +09:00
Junegunn Choi
398d937419
Create FUNDING.yml
2021-03-14 11:59:56 +09:00
Junegunn Choi
34fe5ab143
0.26.0
2021-03-13 15:13:31 +09:00
Junegunn Choi
1b08f43f82
Advanced preview scroll offset expression to better support fixed header
2021-03-13 02:26:41 +09:00
Junegunn Choi
b24a2e2fdc
Fix regression in preview window rendering
2021-03-12 21:23:16 +09:00
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'
2021-03-12 20:32:27 +09:00
Junegunn Choi
7310370a31
Fix truncation of colored line when --preview-window wrap is set
...
Fix #2346
2021-03-12 20:31:27 +09:00
Junegunn Choi
8ae94f0059
Fix premature truncation of colored line when --preview-window wrap is set
...
Fix #2346
2021-03-12 11:05:51 +09:00
Junegunn Choi
8fccf20892
Fix incorrect tab character handling
...
Fix #2372
2021-03-12 10:08:18 +09:00
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)
```
2021-03-11 19:34:50 +09:00
Jannik Vieten
f4e1ed25f2
[fish] Make widgets work with --option= prefix ( #2383 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2021-03-08 22:59:56 +09:00
Junegunn Choi
cbfbb49ab4
[vim] Vim 8.0 compatibility
...
Fix #2367
2021-03-08 12:56:06 +09:00
solarizedalias
489b16efce
[fzf-tmux] Adapt to tmux latest changes ( #2379 )
2021-03-08 12:44:36 +09:00
Junegunn Choi
b82c1693c0
Fix deadlocks
2021-03-08 00:08:10 +09:00
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
2021-03-07 23:35:19 +09:00
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.
2021-03-07 22:41:27 +09:00
Junegunn Choi
f657169616
Fix deadlock on exit
2021-03-07 21:44:08 +09:00
Junegunn Choi
4c06da8b70
Fix GitHub Action build
...
$USER is missing
2021-03-07 18:05:39 +09:00
yoshida.shinya
9fe2393a00
Add test cases for killing input command on terminate ( #2381 #2382 )
2021-03-07 11:36:00 +09:00
Junegunn Choi
e2e8d94b14
Kill input command on terminate
...
Fix #2381
Close #2382
2021-03-07 11:30:26 +09:00
bitterfox
4f9a7f8c87
Don't exit fzf by SIGINT while executing command ( #2375 )
...
Fix #2374
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2021-02-28 21:01:03 +09:00
Junegunn Choi
bb0502ff44
Check gofmt in make test
2021-02-28 18:28:21 +09:00
Junegunn Choi
c256442245
Fix typo
2021-02-28 18:27:21 +09:00
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.
2021-02-25 21:58:13 +09:00
Junegunn Choi
d57c6d0284
Update build script to build macOS arm64 binary
...
Close #2361
2021-02-25 21:31:15 +09:00
Junegunn Choi
76bbf57b3d
Add select and deselect actions
...
Close #2358
2021-02-25 21:23:05 +09:00
Hiroki Konishi
806a47a7cc
[vim] Remove unnecessary border management in nvim floating window ( #2370 )
2021-02-25 14:41:23 +09:00
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
2021-02-22 21:46:28 +09:00
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
2021-02-22 00:22:12 +09:00
Junegunn Choi
a367dfb22e
README.md: Better example
2021-02-17 16:44:54 +09:00
odeson24
9fe1a7b373
Remove redundant assignment ( #2356 )
...
Co-authored-by: Ryan Ou <ryanou@aetherai.com >
2021-02-17 10:28:43 +09:00
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/
2021-02-17 10:24:35 +09:00
Junegunn Choi
bedf1cd357
[vim] Use tnoremap only when it's available
...
Fix #2357
2021-02-17 10:04:38 +09:00
Junegunn Choi
13f180a70c
[vim] Stay in terminal mode if fzf#run is called from sink
...
Fix #2352
2021-02-15 13:58:49 +09:00
Junegunn Choi
6654239c94
0.25.1
2021-02-03 22:32:52 +09:00
Junegunn Choi
1b61e5e9e9
Clarification on FZF_DEFAULT_COMMAND
2021-02-03 19:40:05 +09:00
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
2021-02-03 19:26:17 +09:00
Junegunn Choi
fcd896508b
[vim] fzf#run should ignore empty 'dir' argument
...
Fix #2343
2021-02-03 13:51:56 +09:00
Junegunn Choi
f55c990e86
Add close action
...
Close #2331
2021-02-02 00:11:05 +09:00
Naveen
d110372f99
Create codeql-analysis.yml ( #2338 )
2021-02-01 23:54:45 +09:00
Junegunn Choi
c862af09f2
Fix toggle-preview-wrap action
...
Fix #2336
2021-02-01 23:14:21 +09:00
Junegunn Choi
1cfeec0ca3
Fix segmentation fault on \x1b[0K
...
Fix #2339
2021-02-01 22:59:11 +09:00
step
a0649edc1e
[man] Clarify that $SHELL is used to run commands ( #2334 )
...
SHELL is used for execute actions and the preview and default commands.
2021-02-01 20:07:42 +09:00
Kovarththanan Rajaratnam
0e0bcb3e10
Update README.md ( #2337 )
...
--phony was renamed to --disabled in d779ff7e6d
2021-02-01 20:02:20 +09:00
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
2021-01-28 11:43:15 +09:00
jiangjianshan
3afa920151
[install.ps1] Change permission of the downloaded binary ( #2308 )
...
Fix #2256
2021-01-28 11:41:23 +09:00
Junegunn Choi
32c493e994
[Makefile] Restore 32-bit targets
...
Close #2328
2021-01-20 18:40:17 +09:00
Olivier Roques
1a76bdf891
[vim] Exit terminal mode before closing FZF window ( #2326 )
...
Fix https://github.com/junegunn/fzf.vim/issues/1216
2021-01-17 22:39:40 +09:00
Junegunn Choi
af48b3df29
Replace Travis CI badge
2021-01-15 10:21:36 +09:00
freddii
58ac1fb2fa
Fix typos in source code ( #2322 )
2021-01-15 10:10:09 +09:00
Junegunn Choi
e922704f72
Migrate to GitHub Actions
2021-01-13 19:10:24 +09:00
Vlad Doster
c6115735c7
Update README.md ( #2321 )
...
- Correct spelling/grammar
2021-01-13 04:26:10 +09:00
Ruslan Sayfutdinov
9ddf5c72be
[zsh] Properly reset prompt after completion ( #2318 )
2021-01-13 04:09:34 +09:00
Junegunn Choi
cc5640326b
[man] Fix typo
2021-01-10 04:46:31 +09:00
calvin ardi
bf447d7703
Update default number version ( #2307 )
2021-01-08 13:35:46 +09:00
nicolasbarra
cbb008c938
Update README to upgrade using brew upgrade ( #2309 )
2021-01-07 16:50:08 +09:00
E.L.K
eaa0c52b45
Fix selection changed on terminal resize ( #2306 )
2021-01-04 04:20:31 +09:00
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)?)
```
2021-01-03 14:38:09 +09:00
Junegunn Choi
8c533e34ea
0.25.0
2021-01-03 00:56:11 +09:00
Junegunn Choi
37708ad9cd
Revert "[zsh] Use shell redirection ( #2281 )"
...
This reverts commit e9bc7331bd .
The change is no longer necessary since 090dee8 .
2021-01-03 00:48:40 +09:00
Junegunn Choi
090dee857f
Do not disable mouse on SIGCONT before SIGSTOP
...
Fix #2161
2021-01-03 00:43:56 +09:00
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
2021-01-03 00:15:00 +09:00
Junegunn Choi
fd8858f8c9
[fzf-tmux] Disable CTRL-Z
2021-01-01 22:43:36 +09:00
Junegunn Choi
b234647a63
[shell] Disable CTRL-Z
...
Fix #2289
2021-01-01 22:36:45 +09:00
Junegunn Choi
6e93eefc82
Update vimdoc
2020-12-31 19:12:57 +09:00
yhu266
38fca30125
Add tag links for "doc/fzf.txt"
2020-12-31 19:12:57 +09:00
Junegunn Choi
012ee9ca85
[Makefile] Make sure to use bash
2020-12-31 12:57:57 +09:00
Junegunn Choi
151252e33a
Add preview-top and preview-bottom actions
2020-12-31 12:57:57 +09:00
Junegunn Choi
7136cfc68b
Fix alt-, for --expect
2020-12-31 03:38:46 +09:00
Junegunn Choi
408c04f25f
Update test case for 'first' and 'last'
2020-12-30 18:43:16 +09:00
Junegunn Choi
7f8e0dbc40
Extend support for alt key chords
...
"alt-" with any case-sensitive character is allowed
2020-12-30 18:39:17 +09:00
Junegunn Choi
0de7ab18f6
Add "last" action to move the cursor to the last match
...
This is the opposite of "first" (previously known as "top").
2020-12-30 18:39:17 +09:00
林千里
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
2020-12-23 14:38:37 +09:00
Loic Nageleisen
797dd7c449
[Makefile] Support building on machines with uname -m == "arm64" ( #2291 )
2020-12-23 14:27:46 +09:00
Junegunn Choi
f37ccaa64f
Prevent index out of range error
...
Fix #2293
2020-12-23 10:34:31 +09:00
Junegunn Choi
ab3937ee5a
[vim] Allow closing Vim running fzf without confirmation
...
Close #2287
2020-12-16 21:44:28 +09:00
Junegunn Choi
00f4551a7b
Revert "[zsh] Reload shared history before searching ( #2251 )"
...
This reverts commit b62a74b315 .
https://github.com/junegunn/fzf/pull/2251#issuecomment-740551383
2020-12-09 00:02:35 +09:00
Junegunn Choi
257ddd028d
Update CHANGELOG
2020-12-07 19:35:48 +09:00
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
2020-12-07 19:11:00 +09:00
Junegunn Choi
00a3610331
0.24.4
2020-12-05 23:24:55 +09:00
Junegunn Choi
f502725120
Fix slice bound error on extremely narrow screen
2020-12-05 22:00:42 +09:00
Martin Polden
b62a74b315
[zsh] Reload shared history before searching ( #2251 )
2020-12-05 21:48:54 +09:00
Junegunn Choi
2ec382ae0e
Add --preview-window follow option
2020-12-05 21:16:35 +09:00
Junegunn Choi
cbfee31593
Fix typo in test case
2020-12-04 20:39:52 +09:00
Junegunn Choi
6d647e13ff
Add change-prompt action
...
Close #2270
2020-12-04 20:34:41 +09:00
Junegunn Choi
d2af3ff98d
Change how hl:-1 or hl+:-1 is applied to text with background color
2020-12-04 19:27:43 +09:00
Junegunn Choi
052d17e66a
Fix Travis OSX build
2020-12-03 10:33:45 +09:00
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.
2020-12-03 10:24:06 +09:00
Junegunn Choi
2983426771
Fix unit tests
2020-11-25 13:08:28 +09:00
ratijas
c61eb94b3f
[zsh] Declare variable as local before assignment ( #2266 )
2020-11-25 11:21:30 +09:00
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
2020-11-25 01:49:48 +09:00
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
2020-11-24 19:51:19 +09:00
Junegunn Choi
1efef88b6e
Improve trim function to handle longer strings
...
Fix #2258
2020-11-24 19:03:59 +09:00
Junegunn Choi
7acdaf0b43
[vim] &termwinkey may not be available
...
/cc @Caid11
2020-11-19 09:55:57 +09:00
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().
2020-11-17 14:37:14 +09:00
Junegunn Choi
474c1f5e32
[vim] Map CTRL-Z to <nop>
2020-11-15 21:28:07 +09:00
Junegunn Choi
8b71fea5dc
[vim] Set termwinkey to allow CTRL-W
...
Fix https://github.com/junegunn/fzf.vim/issues/1176
2020-11-15 21:27:57 +09:00
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")
2020-11-14 10:29:05 +09:00
Tomas Janousek
75b8cca3b3
[bash-completion] Unexport _fzf_orig_completion_* variables
2020-11-13 02:16:54 +09:00
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")
2020-11-13 02:16:54 +09:00
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
2020-11-13 02:16:54 +09:00
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")
2020-11-13 02:16:54 +09:00
Junegunn Choi
722d66e85a
0.24.3
2020-11-09 20:41:59 +09:00
Junegunn Choi
f6269f0193
Add --padding option
...
Close #2241
2020-11-09 20:37:17 +09:00
Junegunn Choi
520eae817a
Remove print statement for debugging
2020-11-09 19:17:33 +09:00
Junegunn Choi
d099941360
[vim] Fix double path separator issue on Windows
...
Fix https://github.com/junegunn/fzf.vim/issues/1141
2020-11-05 18:14:45 +09:00
Junegunn Choi
e3e76fa8c5
0.24.2
2020-11-03 23:32:24 +09:00
Junegunn Choi
2553806e79
Allow preview window height shorter than 3
...
Fix #2231
2020-11-03 22:04:01 +09:00
Junegunn Choi
1bcbc5a353
Fix regression where lines are skipped in the preview window
...
Fix #2239
2020-11-03 21:31:19 +09:00
Junegunn Choi
15d351b0f0
Use default bg color when fg is set to -1 with reverse attribute
2020-11-03 20:51:44 +09:00
Junegunn Choi
c144c95cda
[vim] Set maxwidth and maxheight when creating a popup
...
For me, this fixes invalid popup size problem on Windows GVim
2020-10-31 22:27:58 +09:00
Junegunn Choi
f08f4fd87d
[vim] Remove dead code
2020-10-31 22:21:06 +09:00
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 .
2020-10-31 02:53:10 +09:00
Junegunn Choi
7915e365b3
Prefer LightRenderer on Windows if it's available
...
Fix #1766
2020-10-31 01:41:57 +09:00
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
2020-10-30 21:57:09 +09:00
Junegunn Choi
d4c9db0a27
0.24.1
2020-10-29 01:45:55 +09:00
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.
2020-10-29 01:38:34 +09:00
Junegunn Choi
569be4c6c9
[vim] Allow 'border': 'no' to be consistent with --color=no
2020-10-29 01:32:41 +09:00
Junegunn Choi
e7ca237b07
Fix nil error on --color=bw
...
Fix #2229
2020-10-29 01:27:08 +09:00
Junegunn Choi
a7d3b72117
Make build flags consistent
2020-10-28 18:39:39 +09:00
Junegunn Choi
3ba7b5cf2d
Make Makefile fail when git information is not available
2020-10-28 18:33:22 +09:00
Junegunn Choi
254e9765fe
[install] Pass version number to go get command
...
Related: https://github.com/junegunn/fzf.vim/issues/1150#issuecomment-717735149
2020-10-28 15:56:05 +09:00
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
2020-10-28 10:51:32 +09:00
Junegunn Choi
0d5f862daf
0.24.0
2020-10-27 23:57:18 +09:00
Junegunn Choi
51dfacd542
Merge branch 'devel' into master
2020-10-27 23:57:03 +09:00
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 >
2020-10-27 23:55:10 +09:00
Junegunn Choi
de3d09fe79
fixup
2020-10-27 23:53:25 +09:00
Junegunn Choi
eaa413c566
Fix error when preview command failed to start
2020-10-27 21:36:38 +09:00
nekowasabi
407205e52b
Fix: barbled multibyte text(exe. Japanese).
2020-10-27 17:16:47 +09:00
Junegunn Choi
552414978e
0.24.0-rc1
2020-10-27 11:07:27 +09:00
Junegunn Choi
607081bbaa
[vim] Download latest binary to meet version requirement
2020-10-27 01:01:58 +09:00
Junegunn Choi
e73383fbbb
[vim] Add 'none' option for popup border
2020-10-26 23:41:20 +09:00
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
2020-10-26 22:51:22 +09:00
Junegunn Choi
874f7dd416
Update --color example in CHANGELOG
...
New color name: input
2020-10-26 00:22:06 +09:00
Junegunn Choi
8b0e3b1624
Update --color docs
2020-10-26 00:15:30 +09:00
Junegunn Choi
9b946f2b7a
Fix preview window of tcell renderer
2020-10-25 21:43:53 +09:00
Junegunn Choi
11841f688b
Add support for text styling using --color
...
Close #1663
2020-10-25 19:30:41 +09:00
Junegunn Choi
03c4f04246
Use 64-bit integer for preview version
2020-10-24 16:55:55 +09:00
Junegunn Choi
a1f06ae27f
Fix regression where empty preview content is not displayed
2020-10-23 23:52:05 +09:00
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.
2020-10-23 23:32:10 +09:00
Junegunn Choi
2750e19657
Update go-runewidth
2020-10-23 23:31:46 +09:00
Junegunn Choi
b0987f727b
Clarify that additional installation steps may be required
...
Close #2211
2020-10-23 22:52:46 +09:00
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'
2020-10-23 21:37:20 +09:00
Junegunn Choi
e2b87e0d74
Fix Travis CI build
2020-10-23 20:44:04 +09:00
Junegunn Choi
2166b4ca17
Fix test cases
...
We were not properly waiting for truthy-ness in until blocks.
Need Minitest with 21d9e804b6
2020-10-23 19:54:45 +09:00
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)
2020-10-20 20:04:06 +09:00
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}'
2020-10-18 17:03:33 +09:00
Junegunn Choi
305896fcb3
README-VIM: g:fzf_action doesn't work with custom sink
...
Fix https://github.com/junegunn/fzf.vim/issues/1131
2020-10-18 13:23:40 +09:00
Andrew Zhou
6c9adea0d3
[fish] Fix parser handling of option-like args ( #2208 )
...
Fixes error when option-like args are parsed (e.g. "-1").
2020-10-12 12:58:37 +09:00
Junegunn Choi
fc7630a66d
0.23.1
2020-10-11 02:04:07 +09:00
Junegunn Choi
3248153d9f
Add --preview-window=default for resetting the options
2020-10-11 01:54:39 +09:00
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'
2020-10-09 23:02:03 +09:00
Junegunn Choi
865144850d
Add nowrap, nocycle, nohidden for --preview-window
...
Close #2203
2020-10-09 21:56:16 +09:00
Junegunn Choi
d9752a4c21
Reset preview window flags that are not style-related
...
Fix #2203
2020-10-09 19:53:51 +09:00
Junegunn Choi
dba14d2630
0.23.0
2020-10-07 19:18:50 +09:00
Elvan Owen
2986e64a49
[completion] Make host completion handle source files without EOL
2020-10-06 20:54:42 +09:00
Junegunn Choi
1d8bd11b67
Fix preview window size calculation
2020-10-06 19:37:33 +09:00
Junegunn Choi
bafb99d520
Allow splitting preview-window options
...
e.g. --preview-window sharp --preview-window cycle
2020-10-06 18:44:13 +09:00
Junegunn Choi
3cc8a74a91
Add --preview-window option for cyclic scrolling
...
Close #2182
2020-10-06 10:05:57 +09:00
Tinmarino
c0aa5a438f
Add preview-half-page-down and preview-half-page-up ( #2145 )
2020-10-05 21:58:56 +09:00
Junegunn Choi
825d401403
Show how to use reload action
2020-10-05 19:17:31 +09:00
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
2020-10-03 14:55:02 +09:00
octaltree
82c4af2902
[zsh] Record cd execution in history ( #2193 )
2020-10-02 22:14:09 +09:00
Junegunn Choi
736344e151
Remove deprecated item from man page
2020-09-29 11:34:57 +09:00
Junegunn Choi
6f9663da62
Always allow preview/execute commands with no placeholder expressions
...
Fix #2017
2020-09-29 11:32:56 +09:00
Wenxuan
f8ae1786dd
Fix items width limit ( #2190 )
2020-09-24 11:06:20 +09:00
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)
2020-09-12 21:14:32 +09:00
Junegunn Choi
e0f0b5bcf9
Update CHANGELOG
2020-09-09 00:06:53 +09:00
Junegunn Choi
9e96073128
[vim] Expose fzf#exec() function
2020-09-09 00:02:37 +09:00
Junegunn Choi
0db65c22d3
[vim] Allow specifying popup width and height in absolute integer value
...
Fix https://github.com/junegunn/fzf.vim/issues/1116
2020-09-06 22:15:44 +09:00
Yuji Nakao
d785135606
[zsh] Fix the regular expression ( #2140 )
...
Fix the regular expression to capture the command containing asterisk.
2020-09-02 17:27:56 +09:00
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
2020-09-02 13:47:13 +09:00
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`.
2020-08-23 17:17:57 +09:00
Junegunn Choi
43798fc2e8
Revert 1ab4289: Preview window of size 0 is allowed
2020-08-23 17:12:37 +09:00
Junegunn Choi
9dc4b40d7a
Add more preview window options and reduce vertical padding on noborder
...
Fix #2138
Fix #2029
2020-08-23 17:05:45 +09:00
Junegunn Choi
1cb19dbf65
Support preview scroll offset relative to window height
...
Related: https://github.com/junegunn/fzf.vim/issues/1092
2020-08-23 15:57:49 +09:00
Junegunn Choi
1ab4289ad6
Disallow preview-window size of zero
2020-08-21 11:49:01 +09:00
Junegunn Choi
e2ae1b249c
0.22.0
2020-08-02 15:56:02 +09:00
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;")
2020-08-02 10:03:17 +09:00
Junegunn Choi
f092e4038f
Smart match of accented characters
...
Fix #1618
2020-07-28 13:06:57 +09:00
Junegunn Choi
aa5dae391b
Fix handling of unicode characters in query string
2020-07-28 12:58:37 +09:00
Junegunn Choi
08a6fd4ad4
Fix Travis CI build: Use Go 1.14
2020-07-27 09:01:28 +09:00
Junegunn Choi
a61150a96c
Allow negative field index in preview-window scroll offset
2020-07-27 00:30:25 +09:00
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
2020-07-27 00:27:03 +09:00
yuki yano
c0a83b27eb
Fix failure of w:fzf_pushd unlet depending on timing ( #2119 )
2020-07-26 13:52:50 +09:00
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 >
2020-07-15 13:20:56 +09:00
Junegunn Choi
8e027c445f
Support ANSI colors in --prompt string
...
Close #2086
2020-07-05 16:16:46 +09:00
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.
2020-07-05 15:29:43 +09:00
anntnzrb
fd5157998c
Void Linux installation instructions ( #2100 )
2020-07-03 23:14:12 +09:00
Junegunn Choi
e0217e8c79
Ignore cursor position report
...
Close #2081
2020-07-03 19:45:58 +09:00
Junegunn Choi
3ab1c42266
Use rune characters instaed of numbers in code
2020-07-03 19:41:19 +09:00
Junegunn Choi
d1676776aa
Update CHANGELOG
2020-06-30 21:17:19 +09:00
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.
2020-06-29 22:27:36 +09:00
Junegunn Choi
6dec42a33a
Update version numbers in man pages
2020-06-29 22:07:48 +09:00
Junegunn Choi
199bc3f0ad
Merge branch 'master' into devel
2020-06-21 22:43:03 +09:00
Junegunn Choi
17dd833925
Add preview action for --bind
...
Fix #2010
Fix #1638
2020-06-21 22:41:33 +09:00
Khon Trieu
4ec144c969
Accented character normalization for Vietnamese characters ( #2090 )
...
Fix #2088
2020-06-21 17:19:38 +09:00
Jan Edmund Lazo
3e36f2b0ac
[nvim] Fix floating window requirements ( #2089 )
...
Vim 8.1.2371
05ad5ff0ab
Nvim 0.4.0
9a1675b065
2020-06-21 10:34:43 +09:00
Junegunn Choi
07a03b3e73
[vim] Make fzf#wrap support v:true and v:false as well
...
Fix #2087
2020-06-20 22:15:12 +09:00
Junegunn Choi
c33258832e
Add refresh-preview action
2020-06-20 22:04:09 +09:00
Junegunn Choi
a7aa08ce07
Add backward-eof event for --bind
2020-06-07 23:07:03 +09:00
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.
2020-06-07 10:57:23 +09:00
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
2020-06-04 11:57:01 +09:00
Junegunn Choi
f81feb1e69
Revert file mode of key-bindings.zsh
2020-05-23 20:51:41 +09:00
karasu
01cf01e084
[fzf-tmux] Fix zoomed pane handling in popup mode ( #2054 )
...
When called with popup options, do not move to temp window.
2020-05-23 20:47:43 +09:00
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.
2020-05-18 02:43:58 +09:00
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 >
2020-05-17 23:28:23 +09:00
ichizok
d631c76e8d
[vim] Don't start extra process when opening popup ( #2000 )
...
Fix #2038
2020-05-15 15:25:33 +09:00
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
2020-04-24 22:56:55 +09:00
Jack Bates
a6d3e3687b
Improve error messages ( #1962 )
...
* Add RuboCop Minitest extension
* Improve error messages
* Use chomp option
2020-04-21 10:12:00 +09:00
Raffaele
08c2bcb952
Quote LDFLAGS ( #1995 )
...
Make sure that `extldflags` is quoted so that LDFLAGS containing spaces won't break the build command.
Close #1994
2020-04-21 10:07:39 +09:00
Junegunn Choi
98ca4bdede
Add conda installation instruction
...
Close #1949
2020-04-18 13:00:38 +09:00
Janek
3f8e741562
Add more details on apt installation in README.md ( #1977 )
2020-04-18 12:59:32 +09:00
Junegunn Choi
6e464ebd9b
Remove dead code
2020-04-18 02:51:02 +09:00
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
2020-04-18 02:46:40 +09:00
Jack Bates
cf04753ad7
Make flaky tests reliable ( #1978 )
2020-04-18 02:34:38 +09:00
Junegunn Choi
69e7eab11f
[install] Clarify that .bashrc should be loaded from .bash_profile on macOS
...
Close #1986
2020-04-17 21:51:16 +09:00
Junegunn Choi
dea206b023
[zsh-completion] Fix error with backslash-prefixed commands
...
Fix #1973
Fix #1974
Fix #1975
2020-04-13 00:30:43 +09:00
Jack Bates
5deaf58928
Run rubocop --auto-correct --disable-uncorrectable ( #1967 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2020-04-13 00:23:31 +09:00
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
2020-04-07 09:55:48 +09:00
Junegunn Choi
a9fba1c849
Fix typo
2020-04-05 18:36:31 +09:00
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
2020-04-05 18:16:36 +09:00
Junegunn Choi
334a4fa159
0.21.1
2020-04-03 17:33:29 +09:00
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%}}}
2020-04-03 13:23:15 +09:00
Junegunn Choi
540bfd7a72
[fzf-tmux] Fall back to plain fzf when split failed
2020-04-03 13:23:15 +09:00
Junegunn Choi
8fbed2b13a
[fzf-tmux] Use $PWD instead of #{pane_current_path}
...
Related: https://github.com/tmux/tmux/issues/1282
2020-04-03 13:23:15 +09:00
Junegunn Choi
aa17510e0a
[fzf-tmux] Set default horizontal margin
2020-04-03 13:23:15 +09:00
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%'
2020-04-03 13:23:15 +09:00
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
2020-03-30 02:06:06 +09:00
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
2020-03-30 01:52:48 +09:00
Alexandr
a6a732e1fc
Update AtomicBool to use atomic memory operation ( #1939 )
2020-03-30 01:42:58 +09:00
Junegunn Choi
a5c2f28539
Fix failing test case
2020-03-29 22:06:06 +09:00
Junegunn Choi
18261fe31c
[shell] Update CTRL-R to remove duplicate commands
...
Close #1940
Related: #1363 #749 #270 #49 #88 #492 #600
2020-03-29 21:30:37 +09:00
Chitoku
079046863c
[zsh-completion] Fix a bug where _fzf_complete did not iterate through args ( #1936 )
2020-03-24 08:58:22 +09:00
Junegunn Choi
07b965bba1
Fix ANSI color offsets when --keep-right is used
2020-03-23 19:05:06 +09:00
Junegunn Choi
c39113ee41
[windows] Do not include directories in the list
...
Fix #1926
2020-03-14 21:43:35 +09:00
Junegunn Choi
14f90502a4
[bash] Restore --nth option in CTRL-R
2020-03-13 09:13:38 +09:00
Junegunn Choi
b0673c3563
0.21.0
2020-03-12 13:15:45 +09:00
Junegunn Choi
373c6d8d55
Add --keep-right option to keep the right end of the line visible
...
Close #1652
2020-03-11 22:35:24 +09:00
Junegunn Choi
b8fc828955
Fix completion test
2020-03-11 19:50:04 +09:00
Jakub Łuczyński
b43b040512
Fuzzy completions: removed leftover debug echo ( #1921 )
2020-03-11 19:29:35 +09:00
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
)
2020-03-11 18:32:35 +09:00
Kahlil (Kal) Hodgson
7085e5b629
Add explanation for the g:fzf_colors setting ( #1878 )
...
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com >
2020-03-11 09:58:59 +09:00
Michael Kelley
7d5985baf9
Make height option work under Windows ( #1341 )
...
Separate Unix & Windows code into platform specific files for light renderer
2020-03-10 00:03:34 +09:00
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
2020-03-07 19:56:06 +09:00
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
2020-03-07 16:26:53 +09:00
Junegunn Choi
ba82f0bef9
Do not read more than 10K characters from /dev/tty
...
This might help with #1456 where fzf hangs consuming CPU resources.
2020-03-07 11:20:44 +09:00
Junegunn Choi
d9c6a0305b
Draft CHANGELOG for the upcoming release
2020-03-05 23:12:27 +09:00
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)
2020-03-05 20:56:15 +09:00
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'
2020-03-04 08:37:45 +09:00
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'"})
2020-03-03 23:50:45 +09:00
Junegunn Choi
dd49e41c42
Ignore xterm OSC control sequences
...
- OSC Ps ; Pt BEL
- OSC Ps ; Pt ST
Fix #1415
2020-03-03 21:19:23 +09:00
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
2020-03-01 20:57:35 +09:00
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
2020-03-01 12:36:02 +09:00
Junegunn Choi
b2c0413a98
[bash] Fix --query argument of CTRL-R
...
Fix #1898
2020-02-29 12:01:55 +09:00
Jack Bates
e34c7c00b1
Test multi-line C-r ( #1892 )
2020-02-28 20:06:38 +09:00
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 >
2020-02-28 18:47:13 +09:00
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
2020-02-28 18:21:37 +09:00
Junegunn Choi
afa2c4e0af
[fish] Ignore empty environment variables
2020-02-28 17:51:07 +09:00
Junegunn Choi
2ff7db1b36
Use a more robust way to check if the shell is ready
2020-02-28 14:46:08 +09:00
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.
2020-02-28 02:38:32 +09:00
Chris
d8cb5c1cf5
Update README.md: MacPorts upgrade instruction ( #1893 )
2020-02-26 17:58:54 +09:00
Junegunn Choi
dca56da0ef
Add 'insert' key for --bind
...
Close #1744
2020-02-24 01:43:19 +09:00
Junegunn Choi
ec75d16ea8
Fix panic on unexpected escape sequences
2020-02-24 01:37:08 +09:00
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 >
2020-02-24 00:17:38 +09:00
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 >
2020-02-23 23:24:50 +09:00
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.
2020-02-21 09:51:34 +09:00
Junegunn Choi
9897ee9591
[bash] Strip trailing whitespace on kill completion
2020-02-20 16:36:59 +09:00
Junegunn Choi
5215415315
[completion] Allow users to customize fzf options via _fzf_comprun
...
Related #1809 #1850
2020-02-20 00:28:16 +09:00
Junegunn Choi
54891d11e0
[bash-completion] Minor optimization
2020-02-19 11:59:18 +09:00
Junegunn Choi
567c8303bf
Update ANSI processor to handle "rmso" and "rmul"
...
Fix #1877
2020-02-18 00:45:24 +09:00
Hiroki Konishi
2a60edcd52
Make pointer and multi-select marker customizable ( #1844 )
...
Add --pointer and --marker option which can provide additional context to the user
2020-02-17 10:19:03 +09:00
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.
2020-02-16 15:45:59 +09:00
Junegunn Choi
b57e6cff7e
[vim] Pick up fzf-tmux on $PATH when bin/fzf-tmux is not found
...
Close #1874
2020-02-16 12:32:20 +09:00
Junegunn Choi
5b99f19dac
[vim] Remove unnecessary statement
2020-02-14 15:51:22 +09:00
Junegunn Choi
6c03571887
[vim] Add fzf#install() for downloading fzf binary
2020-02-14 14:04:23 +09:00
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' } }
2020-02-14 00:36:20 +09:00
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.
2020-02-13 21:13:30 +09:00
Junegunn Choi
9d7480ae3c
[vim] Use install.ps1 to download binary on Windows
...
Credits to @jiangjianshan
2020-02-12 18:01:41 +09:00
jiangjianshan
f39cf6d855
Add install.ps1 for downloading fzf.exe on Windows ( #1845 )
2020-02-12 17:56:53 +09:00
Kyoichiro Yamada
001d116884
[vim] Consider ambiwidth for border ( #1861 )
...
Close #1856
Close #1857
2020-02-10 17:52:15 +09:00
Junegunn Choi
02c5e62efe
Fix documentation
2020-02-10 01:24:00 +09:00
Junegunn Choi
446df07b62
[vim] Border style for popup window (rounded | sharp | horizontal)
2020-02-06 12:27:48 +09:00
Junegunn Choi
8583b150c9
Fix inline info truncation
2020-02-06 12:01:51 +09:00
Junegunn Choi
a859aa72ee
[vim] Add support for xoffset and yoffset options for popup
...
Close https://github.com/junegunn/fzf.vim/issues/942
2020-02-06 10:40:57 +09:00
Junegunn Choi
0896036266
[vim] Set &bufhidden=hide before starting terminal buffer
2020-02-05 10:09:15 +09:00
mattn
311b78ae82
[windows] Use native walker since output of DOS command is not UTF-8 encoded ( #1847 )
...
Makes scanning 300x faster on Windows
2020-02-04 12:31:00 +09:00
Sergey Bronnikov
f5cf4fc8fb
README: OpenBSD package ( #1848 )
2020-02-04 01:16:42 +09:00
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.
2020-02-04 00:35:57 +09:00
Junegunn Choi
293dd76af1
Update Dockerfile
2020-02-03 15:00:21 +09:00
Shun Sakai
3918c45ced
Update copyright year ( #1832 )
...
Update copyright year to 2020 and change to multi-year format.
2020-01-25 01:41:55 +09:00
Junegunn Choi
4ec403347c
Update Neovim floating window example to have border
2020-01-22 17:34:38 +09:00
Junegunn Choi
e01266ffcb
Period.
2020-01-19 19:46:17 +09:00
Tony Metzidis
f246fb2fc2
Show error message when failed to start preview command ( #1810 )
...
Fix #1637
2020-01-19 19:42:10 +09:00
Chitoku
f7b26b34cb
[zsh-completion] Fix quoting/splitting issues ( #1820 )
2020-01-19 14:19:05 +09:00
Aaron Bieber
a1bcdc225e
Add pledge(2) support (OpenBSD only) via a 'protector' package. ( #1297 )
2020-01-19 14:13:32 +09:00
Junegunn Choi
7771241cc0
Fix F1, F2, F3, F4 on rxvt-unicode
...
Tested on urxvt.
Fix #1799 .
2020-01-18 12:30:38 +09:00
Junegunn Choi
6e3af646b2
Draw spinner with Unicode characters
2020-01-15 10:43:09 +09:00
Jack Bates
82bf8c138d
[bash] Populate emacs and vi keymaps ( #1815 )
...
Enables the right bindings when switching between editing modes.
2020-01-08 18:35:43 +09:00
Jan Edmund Lazo
e21b001116
[vim] Use iconv only if +iconv is enabled ( #1813 )
2020-01-07 16:11:47 +09:00
Junegunn Choi
577024f1e9
Use rounded corners
2019-12-31 19:27:32 +09:00
Junegunn Choi
d4ad4a25db
[bash-completion] Fix default alias/variable completion
...
Fix #1795
2019-12-20 18:39:22 +09:00
Junegunn Choi
30577b0c17
0.20.0
2019-12-18 01:07:25 +09:00
Junegunn Choi
212de25409
Fix incorrect header array mutation
2019-12-16 18:47:05 +09:00
Jan Edmund Lazo
5da8bbf45a
[vim] Encode list source to codepage ( #1794 )
2019-12-16 14:41:03 +09:00
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
2019-12-15 22:17:24 +09:00
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
2019-12-15 18:25:58 +09:00
Junegunn Choi
9fefe08b3f
Revert README as preview-{fg,bg} are only available on master
2019-12-13 12:46:27 +09:00
Junegunn Choi
684bfff713
Update README/CHANGELOG
2019-12-13 12:43:34 +09:00
Junegunn Choi
3db6b88d82
Add preview-fg and preview-bg for --color
...
Close #1776
2019-12-12 23:03:17 +09:00
Junegunn Choi
8ae96774df
Gutter color of 16-color theme should be undefined by default
2019-12-12 22:53:28 +09:00
Junegunn Choi
f68017d21e
[windows/vim] Encode batchfile in current codepage
...
Backport https://github.com/junegunn/vim-plug/pull/913
2019-12-12 12:29:14 +09:00
Junegunn Choi
2b725a4db5
Defer resetting multi-selection on reload
2019-12-09 21:32:58 +09:00
Junegunn Choi
af1a5f130b
Add clear-query and clear-selection
...
Close #1787
Related #1364
2019-12-07 14:44:24 +09:00
Junegunn Choi
86e3994e87
Properly clear list when --header-lines not filled on reload
2019-12-06 22:34:45 +09:00
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'
2019-12-06 22:34:30 +09:00
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.*
2019-12-06 17:58:53 +09:00
Junegunn Choi
9d842630c9
Mention _fzf_setup_completion helper function for bash
2019-12-06 12:03:34 +09:00
David Gray
77cb906dfe
[completion] Add support for HostName lines in ~/.ssh/config ( #1785 )
...
Close #1783
2019-12-06 10:14:15 +09:00
Junegunn Choi
a59e846f74
Update installation instruction
...
Close #1707
Close #1779
2019-12-05 23:10:41 +09:00
infokiller
6e6340a0c9
Ignore zcompile output files (*.zwc files) ( #1775 )
2019-12-05 22:27:30 +09:00
John Purnell
357e82e51b
[completion] Ignore hg repos ( #1777 )
...
* Update completion.bash
* Update completion.zsh
2019-12-05 22:27:04 +09:00
Junegunn Choi
394d8cfd18
Remove immediate flickering on reload action
2019-12-05 22:27:18 +09:00
Junegunn Choi
ef80bd401f
Update installation instruction using Linux package managers
...
Added NixOS instruction. Close #1731
2019-12-01 23:48:48 +09:00
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
2019-12-01 23:20:26 +09:00
Junegunn Choi
1dd256a68a
Update README-VIM
2019-11-29 18:32:49 +09:00
Junegunn Choi
85644aa3fb
Revamp README-VIM.md
2019-11-23 01:54:52 +09:00
Junegunn Choi
effbc258bb
Update CHANGELOG
2019-11-21 23:06:14 +09:00
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
2019-11-21 23:06:14 +09:00
Junegunn Choi
60465c4664
Fix parse error of --bind expression
2019-11-21 23:06:13 +09:00
Jan Edmund Lazo
c03c058bd5
[install] Support busybox uname on Windows ( #1758 )
2019-11-16 22:23:42 +09:00
Junegunn Choi
7238c8944d
Update CHANGELOG
2019-11-16 01:23:01 +09:00
Junegunn Choi
9a41fd5327
0.19.0
2019-11-15 22:54:55 +09:00
Junegunn Choi
b471042037
Merge branch 'devel'
2019-11-15 22:53:08 +09:00
Junegunn Choi
2886f06977
Fix --preview-window noborder with non-default background color
2019-11-15 18:27:08 +09:00
Junegunn Choi
d630484eeb
Update error message for --preview-window
2019-11-15 17:20:47 +09:00
Junegunn Choi
e24299239e
Add --preview-window noborder option to disable preview border
...
Close #1699
2019-11-15 11:39:51 +09:00
Junegunn Choi
d2fa470165
Add --info=STYLE [default|inline|hidden]
...
Close #1738
2019-11-15 00:39:29 +09:00
Junegunn Choi
168453da71
More key chords for --bind
...
Close #1752
2019-11-14 22:39:35 +09:00
Junegunn Choi
23a06d63ac
Update CHANGELOG and man pages
2019-11-13 01:27:39 +09:00
Junegunn Choi
751aa1944a
Remove trailing whitespaces when using --with-nth
2019-11-12 23:20:09 +09:00
Junegunn Choi
05b5f3f845
'reload' action should reset multi-selection
2019-11-12 00:57:19 +09:00
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".
2019-11-12 00:47:05 +09:00
Junegunn Choi
7e1c0f39e7
'reload' action should reset --header-lines
2019-11-12 00:10:24 +09:00
Junegunn Choi
deccf20a35
Fix regression of select-all
2019-11-11 23:31:31 +09:00
Junegunn Choi
73c0a645e0
Remove unnecessary reader barrier on --filter mode
2019-11-11 12:53:03 +09:00
Junegunn Choi
e975bd0c8d
Add test cases for --phony and reload action
2019-11-10 13:13:45 +09:00
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
2019-11-10 11:43:37 +09:00
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
2019-11-10 11:36:55 +09:00
Junegunn Choi
dceb5d09cd
RTFM, please
2019-11-08 14:09:49 +09:00
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
^
2019-11-05 09:46:51 +09:00
zhaoyunfeng
b911af200c
[zsh-completion] Fix prefix extraction when triggers start with ';'
2019-11-03 00:33:30 +09:00
Junegunn Choi
68683c444f
Fix argument parser for -m
...
/cc @tessus
2019-11-02 20:44:21 +09:00
Junegunn Choi
a185593d65
Remove unnecessary map lookup
2019-11-02 19:55:05 +09:00
Junegunn Choi
525040238e
Fix behavior of 'deselect-all' to only deselect matches
...
To make it consistent with select-all and toggle-all.
Close #1364
2019-11-02 19:41:59 +09:00
Junegunn Choi
33f89a08f3
Build with Go 1.13
2019-11-02 14:59:22 +09:00
Junegunn Choi
11645e1fac
Fix flaky test case
2019-11-02 14:55:13 +09:00
Junegunn Choi
6390140539
[vim/windows] Use chcp only if sed is in PATH
...
https://github.com/junegunn/vim-plug/pull/891
2019-11-02 14:35:21 +09:00
Junegunn Choi
072066c49c
--multi to take optional argument to limit the number of selection
...
Close #1718
Related #688
2019-11-02 14:25:12 +09:00
Junegunn Choi
a2e9366c84
Fix flaky test case
2019-11-02 13:15:01 +09:00
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.
2019-10-27 23:50:12 +09:00
Junegunn Choi
0c6c76e081
[zsh] Suppress global alias expansion in widget functions
...
Close #1708
2019-10-17 14:51:57 +09:00
stiletto
f1520bdde6
Support building on machines with uname -m == "aarch64" ( #1710 )
2019-10-11 22:11:06 +09:00
Junegunn Choi
3089880f18
[vim/windows] Fix chcp parsing for the current codepage
...
https://github.com/junegunn/vim-plug/pull/888
2019-10-08 09:41:22 +09:00
Junegunn Choi
ab11b74be4
[vim] Output of chcp was not parsed correctly
...
By @gh4w and @janlazo
See 68b31a4a66
2019-09-29 14:53:45 +09:00
Junegunn Choi
a5a97be017
[bash-completion] Properly handle exit event
...
Related #1704
2019-09-29 14:45:58 +09:00
Junegunn Choi
80b5bc1b68
[vim] Shell-escape --color option generated by fzf#wrap
...
Fix https://github.com/junegunn/fzf.vim/issues/855
2019-09-09 12:12:42 +09:00
Junegunn Choi
5c7dcaffe8
[bash-completion] _fzf_setup_completion to retain previous options
2019-08-09 11:11:29 +09:00
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
2019-08-08 15:35:52 +09:00
Ross Smith II
4800e5d2ae
Add scoop mention ( #1646 )
2019-08-06 14:11:28 +09:00
Junegunn Choi
3b1e37f718
Fix #1657 : alt-0 to alt-9
2019-08-06 14:06:58 +09:00
Christian Muehlhaeuser
6577388250
os.Kill signal cannot be trapped ( #1641 )
2019-07-19 13:24:46 +09:00
Christian Muehlhaeuser
3b9dbd4146
Code cleanup: remove unnecessary string conversions ( #1642 )
2019-07-19 13:23:18 +09:00
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
2019-07-19 13:22:35 +09:00
Dan Čermák
7322504ad0
Add installation instructions for openSUSE ( #1631 )
2019-07-17 11:19:13 +09:00
miclill
de569f0052
Add Debian install instructions ( #1620 )
2019-07-17 11:18:07 +09:00
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.
2019-07-13 14:47:51 +09:00
charlton1
c1dbc800e5
[vim] Fix name-based colors for GVim/8.0 w/o builtin terminal ( #1634 )
...
(i.e. spawn xterm)
2019-07-09 11:08:36 +09:00
Junegunn Choi
951746297e
Fix invalid layout example
2019-06-08 23:29:04 +09:00
Junegunn Choi
984304568d
Remove outdated GVim instruction
...
The section is no longer relevant since (G)Vim 8 or above has builtin
terminal emulator.
2019-06-08 23:22:05 +09:00
Junegunn Choi
723217bdea
Add fzf#run tutorial to README-VIM.md
2019-06-08 23:17:30 +09:00
Mateusz Piotrowski
0fdb71f7e4
Add FreeBSD installation instructions ( #1569 )
2019-06-05 09:26:04 +09:00
Junegunn Choi
12ce76b56a
[bash] Make sure to execute builtin history
...
Fix #1592
2019-06-03 18:46:01 +09:00
Michael Kelley
0030d18448
Update sys module to newer version ( #1582 )
...
A newer version of the sys module is needed for pull request #1341
2019-05-26 11:06:46 +09:00
Junegunn Choi
0e3e6ac442
Disallow preview scroll when the content just fits the window
2019-05-21 16:35:45 +09:00
Dominik Reller
430e8193e0
[install] Remove unused variable in install script ( #1571 )
2019-05-07 11:34:55 +09:00
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`
2019-05-01 02:35:51 +09:00
Junegunn Choi
ef492f6178
Output --help message to standard output
...
Close #1554
2019-04-21 18:02:34 +09:00
Alexey Samoshkin
8eea45ef50
Add demo screencast video to README ( #1557 )
2019-04-18 18:49:30 +09:00
Junegunn Choi
ff951341c9
0.18.0
2019-03-31 11:22:38 +09:00
Junegunn Choi
df570afd52
[docker] Fix gem install option in Dockerfile
2019-03-31 11:22:12 +09:00
Junegunn Choi
07d755df11
Fix regression of prompt display
2019-03-30 02:07:09 +09:00
Junegunn Choi
37585bd5a5
Disable preview scroll if the content fits on the screen
...
Close #1540
2019-03-29 18:28:45 +09:00
Junegunn Choi
89e24bf8f2
Fix ineffective break statement
2019-03-29 17:29:24 +09:00
Junegunn Choi
8d2fcd3518
Avoid unnecessary redraw of the preview window
2019-03-29 15:12:46 +09:00
Junegunn Choi
f39ab3875e
Redraw prompt only when necessary
2019-03-29 15:02:31 +09:00
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
2019-03-29 10:31:17 +09:00
Junegunn Choi
75972d59a8
Add --no-unicode option to draw borders in ASCII characters
...
Close ##1533
2019-03-29 02:11:03 +09:00
Junegunn Choi
e7d60aac9c
[vim] Do not restore cwd when autochdir is set and buffer changed
...
Close #1539
2019-03-28 13:57:04 +09:00
Junegunn Choi
a0bfbdd49c
[vim] Increase window height by 2 when --border is set
...
Close #1535
2019-03-26 16:42:35 +09:00
Junegunn Choi
ba594982f0
Add MacPorts instruction
...
Close #1521
2019-03-18 18:45:57 +09:00
Junegunn Choi
2157f4f193
Add color option for gutter
...
fzf --color gutter:-1
Close #1529
Close #1468
2019-03-17 15:52:38 +09:00
Junegunn Choi
309bae423c
[zsh-completion] Suppress "no matches found" message
2019-03-14 01:10:51 +09:00
Junegunn Choi
4f8bf2ae78
[install] Avoid generating empty component in $PATH
...
Fix #1517
2019-03-08 12:38:36 +09:00
Junegunn Choi
85c1f8a9e0
Always prepend ANSI reset code before re-assembling tokens
2019-03-07 15:29:57 +09:00
Junegunn Choi
e00e7e1e56
Remove unnecessary ANSI code injection
2019-03-07 02:02:02 +09:00
Junegunn Choi
1a6defdbcc
Use simple string concatenation instead of using fmt.Sprintf
2019-03-07 02:00:31 +09:00
Junegunn Choi
ef577a6509
Preserve the original color of each token when using --with-nth with --ansi
...
Close #1500
2019-03-06 19:05:05 +09:00
Junegunn Choi
b7c6838e45
[install] Fix symlink log
...
Related #1466
2019-03-05 14:45:29 +09:00
Junegunn Choi
91d04cec5c
[install] Print better error message when fzf --version failed
...
Related #1466
2019-03-05 14:44:29 +09:00
Rui Coelho
3bd8441079
[completion] Look up on ~/.ssh/config.d/* files when doing ssh host complete ( #1420 )
2019-02-28 16:40:41 +09:00
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
2019-02-28 16:13:59 +09:00
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
2019-02-22 14:36:30 +09:00
Junegunn Choi
6c32148f90
Add placeholder expression for zero-based item index: {n} and {+n}
...
Close #1482
2019-02-19 01:12:57 +09:00
Junegunn Choi
315e568de0
Update build instruction
...
Close #1485
2019-01-31 18:43:10 +09:00
Junegunn Choi
5d16b28869
Fix tab width after ANSI reset code in preview window
...
Close #1423
2018-12-22 11:52:18 +09:00
Junegunn Choi
5624a89231
Inverse-only matches should not reorder the remaining results
...
Fix #1458
2018-12-19 23:05:29 +09:00
Junegunn Choi
63c42b14f2
Remove trailing spaces in Makefile
2018-12-13 15:17:30 +09:00
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
2018-12-13 14:36:15 +09:00
Junegunn Choi
ca42e5e00a
Avoid unnecessary redraw of preview window
...
Close #1455
2018-12-13 10:58:57 +09:00
Junegunn Choi
61feee690c
Render preview window when the initial query fails to match
...
Only if preview template contains {q}
Fix #1452
Related #1307
2018-12-05 18:45:55 +09:00
Christian Muehlhaeuser
d4ed955aee
Typo & grammar fixes in README ( #1413 )
2018-11-09 16:50:16 +09:00
Junegunn Choi
b46227dcb6
0.17.5
2018-10-07 01:46:29 +09:00
Paul Frybarger
fd8d371ac7
[zsh] Fix multiline prompt issue with 'zle reset-prompt' ( #1397 )
...
Close #867
Close #1256
2018-10-05 10:56:26 +09:00
Junegunn Choi
0e06e298d4
[man] Document that FZF_DEFAULT_COMMAND should be POSIX-compliant
...
Close #1379
2018-09-30 22:20:46 +09:00
Junegunn Choi
72df905902
Do not wait for more keystrokes after double escape characters
...
Close #1393
2018-09-28 10:33:53 +09:00
Junegunn Choi
0d748a0699
Kill running preview process after 500ms when focus has changed
...
Close #1383
Close #1384
2018-09-28 10:33:52 +09:00
Junegunn Choi
27c40dc6b0
Restore STDIN during execute-silent
...
This allows users to terminate the process with CTRL-C when it hangs.
2018-09-27 15:54:13 +09:00
Junegunn Choi
8e34e6fbb4
[install] Escape spaces in installation directory
...
Close #1390
2018-09-27 10:15:22 +09:00
Junegunn Choi
3bc98ed623
Add link to related projects page
2018-09-27 02:52:52 +09:00
Tim Cuthbertson
70a92a858a
Don't drop buffered input data in findOffset() ( #1392 )
2018-09-27 02:35:44 +09:00
Jan Edmund Lazo
49d04374a4
[install] Detect MSYS on Windows ( #1391 )
2018-09-25 23:03:36 +09:00
Junegunn Choi
8540902a35
Add link to git key bindings gist
2018-09-04 12:24:46 +09:00
Junegunn Choi
8c6fcee3ca
[vim] Fix directory switching around sink function
...
Close #1356
Related:
- #612
- https://github.com/junegunn/fzf.vim/issues/308
2018-08-20 15:31:41 +09:00
Junegunn Choi
13803d0dbb
[vim] Clear temporary window-local working directory
...
Close #1085
Close #1086
Close https://github.com/junegunn/fzf.vim/issues/678
2018-08-10 18:24:18 +09:00
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
2018-08-08 15:43:55 +09:00
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.
2018-07-16 18:55:06 +09:00
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 **`
2018-07-06 11:29:39 +09:00
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.
2018-06-27 19:02:16 +09:00
做梦专业户
e67cc75063
Update Makefile to support armv8l ( #1321 )
2018-06-27 18:56:02 +09:00
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
2018-06-25 19:07:47 +09:00
Junegunn Choi
f0fe79dd3b
0.17.4
2018-06-10 10:35:52 +09:00
Akinori MUSHA
daa1958f86
Provide an option to reverse items only ( #1267 )
2018-06-10 01:41:50 +09:00
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
2018-06-10 01:40:22 +09:00
Junegunn Choi
af87650bc4
[docker] Build binary from source
2018-06-08 19:42:29 +09:00
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**
2018-06-02 10:40:33 +09:00
Junegunn Choi
76a2dcb5a9
Add Dockerfile for running tests
...
make docker
make docker-test
2018-06-01 18:23:25 +09:00
Junegunn Choi
68ec3d1c10
Fix flaky test cases
2018-06-01 18:21:34 +09:00
Mark
2ff19084ca
[install] Support for XDG Base Directory Specification ( #1282 )
...
Add --xdg option which makes the installer generate files under $XDG_CONFIG_HOME/fzf.
2018-06-01 11:54:58 +09:00
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.
2018-05-14 17:24:32 +09:00
Jan Edmund Lazo
cce17ad0a0
[vim] Use CRLF in batchfile for multibyte codepage ( #1289 )
...
Close #1288
2018-05-13 16:24:28 +09:00
Junegunn Choi
b8296a91b9
Clarify Vim plugin instruction
...
Close #1251
@amaravora
2018-05-04 16:01:42 +09:00
Junegunn Choi
6e9452b06e
Add Arch Linux installation instruction
...
Close #1273
@codingCoffee
2018-05-04 16:00:40 +09:00
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.
2018-05-04 15:38:27 +09:00
ptzz
1fb0fbca58
[bash] Do not print error when falling back to default completion ( #1279 )
...
Fixes #1278
2018-05-04 14:55:48 +09:00
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'.
2018-05-04 04:25:15 +09:00
Junegunn Choi
87504a528e
[bash] Fix infinite loop on tab completion
...
awk may not set OFS to match FS depending on the implementation.
Close #1227
2018-04-30 12:58:10 +09:00
Junegunn Choi
6eac4af7db
[vim] Ignore Vim:Interrupt when "Abort" selected on E325
...
Close #1268
2018-04-26 10:23:18 +09:00
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.
2018-04-25 18:47:56 +09:00
Junegunn Choi
9e753a0d44
Implement ttyname() in case /dev/tty is not available
...
Close #1266
Close #447
2018-04-25 17:50:47 +09:00
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
2018-04-12 17:49:52 +09:00
Junegunn Choi
7dbbbef51a
Add support for alt-{up,down,left,right} keys
...
Close #1234
2018-04-12 17:42:48 +09:00
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.
2018-04-12 17:21:56 +09:00
Akinori MUSHA
d207672bd5
Parse the output of go version to get the value of GOOS ( #1260 )
2018-04-12 17:09:08 +09:00
Robert Orzanna
851fa38251
Add reference to Fedora package documentation ( #1255 )
2018-04-06 14:10:10 +09:00
ZDNoFYVe
43345fb642
Implement flag for preserving whitespace around field ( #1242 )
2018-03-30 11:47:46 +09:00
xalexalex
9ff33814ea
Fix typo in README ( #1243 )
2018-03-27 17:53:20 +09:00
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
2018-03-13 14:56:55 +09:00
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.
2018-03-06 16:33:33 +09:00
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)
2018-02-16 21:55:23 +09:00
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
2018-02-15 19:57:21 +09:00
Junegunn Choi
cce6aef557
[bash] Fix extra space issue of dynamic completion with 'nospace'
...
Close #1203
2018-02-15 18:21:02 +09:00
Junegunn Choi
eb3afc03b5
[vim] Make list options compatible with layout options
...
Fix #1205
2018-01-26 13:48:05 +09:00
Jan Edmund Lazo
7f0caf0683
Update Windows default command to print relative paths ( #1200 )
2018-01-17 22:02:50 +09:00
Pierre P
7f606665cb
[install] Make default answer "y" ( #1195 )
2018-01-14 03:19:33 +09:00
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
2018-01-06 02:47:42 +09:00
Junegunn Choi
93aeae1985
[bash] Trigger redraw-current-line before history-expand-line
...
Close #681
2017-12-07 23:33:01 +09:00
Junegunn Choi
5c34ab6692
[vim] Fix terminal buffer cleanup on Vim 8
...
Close #1172
2017-12-05 23:50:55 +09:00
Junegunn Choi
390b49653b
0.17.3
2017-12-03 23:55:24 +09:00
Junegunn Choi
b877c385f0
Fix assertions in test_dynamic_completion_loader
2017-12-03 23:54:58 +09:00
Junegunn Choi
9c47739c0e
Fix panic when replace-query is triggered on empty result set
2017-12-03 23:48:59 +09:00
Junegunn Choi
04aa2992e7
Revert "0.17.2"
...
This reverts commit 2f1edeff78 .
2017-12-03 23:42:38 +09:00
Junegunn Choi
2f1edeff78
0.17.2
2017-12-03 23:34:37 +09:00
Junegunn Choi
306d51cdcf
Update tcell to fix double-enter problem on Windows GVim
...
- Close #1169
- https://github.com/gdamore/tcell/pull/159
2017-12-03 23:32:45 +09:00
Junegunn Choi
54a026525a
[vim] Remove unnecessary term_wait workaround
...
The issue is fixed in 1232624ae5
2017-12-03 23:32:43 +09:00
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
2017-12-03 23:32:41 +09:00
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
2017-12-02 02:28:36 +09:00
Junegunn Choi
338a73d764
[man] Describe 'cancel' action
2017-12-01 19:13:51 +09:00
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
2017-12-01 13:08:55 +09:00
Junegunn Choi
1e8e1d3c9d
Fix test case on older versions of Ruby
2017-12-01 13:03:02 +09:00
Junegunn Choi
f6b1962056
Inject $LINES and $COLUMNS when running preview command
...
Close #1168
2017-12-01 03:28:10 +09:00
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
2017-12-01 03:28:08 +09:00
Junegunn Choi
9615c4edf1
Fix test case for invalid FZF_DEFAULT_COMMAND
2017-12-01 02:22:36 +09:00
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
2017-12-01 01:40:42 +09:00
Junegunn Choi
1e5bd55672
[install] Change the order of case patterns for $archi ( #1060 )
...
/cc @ehandal
2017-11-27 15:44:19 +09:00
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.
2017-11-22 13:34:02 +09:00
Junegunn Choi
6b27554cdb
Clarify installation instructions
2017-11-22 03:10:20 +09:00
Junegunn Choi
fc1b119159
[vim] Add instruction to hide statusline of terminal buffer ( #1143 )
2017-11-19 12:07:54 +09:00
Aaron Jensen
2cd0d4a9f7
[zsh] Fire zsh precmd functions after cd ( #1136 )
...
Fixes #915
2017-11-14 12:43:52 +09:00
Elliott Sales de Andrade
fd03aabeb2
Add Fedora installation information ( #1141 )
2017-11-14 12:40:17 +09:00
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.
2017-11-08 23:54:46 +09:00
Junegunn Choi
a6d2ab3360
Update README: Examples using fd
...
- https://github.com/sharkdp/fd
- https://mike.place/2017/fzf-fd/
/cc @williamsmj
2017-10-29 23:48:55 +09:00
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.
2017-10-27 09:12:12 +09:00
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.
2017-10-23 13:19:11 +09:00
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.
2017-10-21 10:31:34 +09:00
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
2017-10-20 12:56:02 +09:00
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.
2017-10-19 22:04:32 +09:00
Junegunn Choi
0b33dc6ce1
0.17.1
2017-10-16 01:58:57 +09:00
Junegunn Choi
64a6ced62e
Do not immediately check --height option on Windows ( #1082 )
2017-10-15 19:02:05 +09:00
Junegunn Choi
438f6c96cd
Fix compilation error of Windows binary
2017-10-15 18:32:59 +09:00
Junegunn Choi
6ae085f974
Add link to Windows wiki page
...
Related: #1072
/cc @janlazo
2017-10-15 17:44:25 +09:00
Junegunn Choi
cb8e97274e
Update README to add an example of _fzf_compgen_dir
...
/cc @chrisjohnson
Close #1067
Close #1083
2017-10-14 16:18:46 +09:00
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 ".
2017-10-14 15:26:37 +09:00
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.
2017-10-10 12:27:01 +09:00
Junegunn Choi
1b1bc9ea36
[install] Download arm8 binaries on Linux aarch64
...
Close #1060
2017-10-08 03:52:55 +09:00
Junegunn Choi
c2614467cf
[neovim] Fix Neovim plugin to use terminal instead of --height
...
Close #1066
Close #1068
2017-09-30 22:13:43 +09:00
Junegunn Choi
077ae51f05
[vim] Use Vim 8 terminal when appropriate
...
Close #1055
2017-09-29 01:11:00 +09:00
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
2017-09-28 23:05:02 +09:00
Ricardo González
7f5f6efbac
[fzf-tmux] Executes fzf from fzf-tmux with a process name ( #1056 )
2017-09-28 22:23:44 +09:00
Josh Pencheon
45d4c57d91
[completion] Include host aliases in ssh completion ( #1062 )
2017-09-27 00:18:01 +09:00
Robert Orzanna
41e0208335
Update Homebrew/Linuxbrew instructions ( #1052 )
2017-09-17 17:12:20 +09:00
Lawrence Wu
2f8238342b
[install] Don't touch dotfiles if not requested ( #1048 )
2017-09-11 09:18:26 +09:00
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).
2017-09-09 23:20:42 +09:00
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
2017-09-08 18:33:17 +09:00
Junegunn Choi
e3973c74e7
Fix custom foreground color inside preview window
...
Close #1046
2017-09-08 18:18:54 +09:00
Junegunn Choi
a8deca2dd9
[vim] Update README-VIM: fzf can run inside GVim
2017-09-07 12:42:40 +09:00
Junegunn Choi
a78ade1771
Update link to performance chart
2017-09-07 12:38:34 +09:00
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
2017-09-07 11:03:26 +09:00
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.
2017-09-07 11:01:40 +09:00
Junegunn Choi
288976310b
Update g:fzf_colors example
2017-09-06 10:44:25 +09:00
Junegunn Choi
58b5be8ab6
0.17.0-2
2017-09-05 13:40:58 +09:00
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
2017-09-05 13:29:46 +09:00
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
2017-09-05 13:29:46 +09:00
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
2017-09-05 13:29:46 +09:00
Jan Edmund Lazo
446e04469d
[neovim] use batchfile for s:execute_term in Windows
2017-09-05 13:29:46 +09:00
Michael Smith
5097e563df
[neovim] Fix terminal buffer marker on Windows
...
Original Patch: a9bf29b65e
2017-09-05 13:29:46 +09:00
Jan Edmund Lazo
c7ad97c641
[neovim] use terminal in Windows for v0.2.1+
2017-09-05 13:29:46 +09:00
Junegunn Choi
9516fe3324
[install] Add --no-{bash,zsh,fish}
...
Close #1040
2017-09-03 11:45:22 +09:00
Junegunn Choi
20cdbac8c3
[install] Ignore user-defined grep aliases
2017-09-03 11:38:22 +09:00
Junegunn Choi
e3e7b3360c
Delete ncurses implementation
2017-09-02 03:19:50 +09:00
Junegunn Choi
655dfb8328
[fzf-tmux] Remove cat command
...
Close #1039
2017-09-01 18:46:00 +09:00
Mike Hearn
9b9c67b768
[fzf-tmux] Add pane_height/pane_width fallback ( #1037 )
2017-09-01 11:16:00 +09:00
Junegunn Choi
5b7457ff08
[install] Wait for a linefeed when asking for confirmation
...
Close #1035
2017-09-01 02:45:48 +09:00
Junegunn Choi
48adad5454
[neovim] Set &shell to sh (again) after opening a new window
...
Close #1031
2017-08-30 18:58:28 +09:00
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.
2017-08-28 22:32:13 +09:00
Junegunn Choi
e89eebb7ba
0.17.0
2017-08-27 03:32:21 +09:00
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)
2017-08-27 02:19:56 +09:00
Junegunn Choi
6b4805ca1a
Optimize rank comparison on x86 (little-endian)
2017-08-27 01:46:11 +09:00
Junegunn Choi
159699b5d7
Remove an unnecessary code branch
2017-08-26 20:09:46 +09:00
Junegunn Choi
af809c9661
Minor refactorings
2017-08-26 03:24:42 +09:00
Junegunn Choi
329de8f416
[fzf-tmux] Execute trap with bash instead of the default shell
...
Close #1007
2017-08-26 02:51:19 +09:00
Junegunn Choi
e825b07e85
[neovim] Allow running FZF in multiple windows
...
Close #1023
2017-08-26 01:56:49 +09:00
Junegunn Choi
71fdb99a07
Remove bound checkings in inner loops
2017-08-26 01:28:39 +09:00
Junegunn Choi
55ee4186aa
Ignore EvtReadNew if EvtReadFin is already set
2017-08-20 14:30:17 +09:00
Junegunn Choi
941b0a0ff7
Minor optimization of FuzzyMatchV2
...
Calculate the first row of the score matrix during phase 2
2017-08-20 12:29:11 +09:00
Junegunn Choi
6aae12288e
Extract debug code from FuzzyMatchV2
2017-08-20 12:29:11 +09:00
Junegunn Choi
302cc552ef
Remove unused clear arguments of alloc16 and alloc32
2017-08-20 12:29:11 +09:00
Junegunn Choi
a2a4df0886
Pass util.Chars by pointer
2017-08-20 12:29:11 +09:00
Jan Edmund Lazo
3399e39968
[vim] Escape backslashes in fzf#shellescape ( #1021 )
2017-08-20 12:28:36 +09:00
Junegunn Choi
87874bba88
Remove redundant read event when --sync is used
2017-08-20 01:58:51 +09:00
Junegunn Choi
c304fc4333
Delay slab allocation
2017-08-19 12:14:48 +09:00
Junegunn Choi
6977cf268f
Limit search scope of uppercase letter
2017-08-18 05:30:13 +09:00
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.
2017-08-18 03:04:11 +09:00
Junegunn Choi
8d23646fe6
Revert "Short-circuit ANSI processing if no ANSI codes are found"
...
This reverts commit 656963e018 .
2017-08-17 19:12:44 +09:00
Junegunn Choi
656963e018
Short-circuit ANSI processing if no ANSI codes are found
2017-08-17 19:12:06 +09:00
Junegunn Choi
644277faf1
Linuxbrew can install fzf
...
Close #1017
2017-08-17 16:57:02 +09:00
Junegunn Choi
0558dfee79
Remove count field from ChunkList
2017-08-16 12:26:06 +09:00
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.
2017-08-16 03:33:48 +09:00
Junegunn Choi
0d171ba1d8
Remove special nilItem
2017-08-15 01:10:41 +09:00
Junegunn Choi
2069bbc8b5
[vim] Allow Funcref in g:fzf_action
...
https://github.com/junegunn/fzf.vim/issues/185
2017-08-14 16:23:18 +09:00
Jan Edmund Lazo
053d628b53
Add MinGW 64 to install fzf in Windows 64-bit ( #1015 )
2017-08-13 23:20:06 +09:00
Junegunn Choi
6bc592e6c9
Update FuzzyMatchV1 to use skip optimization used in V2
2017-08-12 00:28:30 +09:00
Junegunn Choi
6c76d8cd1c
Disallow escaping of meta characters except for spaces
...
https://github.com/junegunn/fzf/issues/444#issuecomment-321719604
2017-08-11 13:09:33 +09:00
Junegunn Choi
a09e411936
Treat | as proper query when it can't be an OR operator
2017-08-11 00:07:18 +09:00
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.
2017-08-10 23:59:52 +09:00
Junegunn Choi
e55e029ae8
Build cache key for a pattern only once
2017-08-10 23:18:52 +09:00
Junegunn Choi
6b18b144cf
Fix escaping of meta characters after ' or ! prefix
...
https://github.com/junegunn/fzf/issues/444#issuecomment-321432803
2017-08-10 12:40:53 +09:00
Junegunn Choi
6d53089cc1
Allow escaping term starting with |
...
Close #444
2017-08-09 23:33:37 +09:00
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
2017-08-09 23:28:47 +09:00
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
2017-08-09 01:58:29 +09:00
Junegunn Choi
462c68b625
[vim] Fix issues with other plugins changing working directory
...
Close #1005
2017-08-09 01:54:01 +09:00
Junegunn Choi
999d374f0c
Fix invalid cache lookups
2017-08-08 13:23:33 +09:00
Junegunn Choi
b208aa675e
Update Travis build to run on Trusty
2017-08-05 04:28:43 +09:00
Junegunn Choi
2b98fee136
Fix Travis CI build
...
tcell build is commented out as it doesn't reliably respond to tmux
send-keys.
2017-08-05 04:01:17 +09:00
Junegunn Choi
e5e75efebc
[vim] Fix vader test cases
2017-08-04 19:25:06 +09:00
Junegunn Choi
4a4fef2daf
Update performance comparison chart
2017-08-04 09:28:29 +09:00
Junegunn Choi
ecb6b234cc
0.16.11
2017-08-02 02:50:28 +09:00
Junegunn Choi
39dbc8acdb
Exit 2 instead of panic when failed to open /dev/tty
2017-08-02 02:50:26 +09:00
Junegunn Choi
a56489bc7f
Remove non-exclusive access to ChunkList field
2017-08-02 00:09:00 +09:00
Junegunn Choi
99927c7071
Modify loop conditions in checkAscii function
2017-08-01 22:04:42 +09:00
Junegunn Choi
3e28403978
[man] Add note on --no- convention
...
Close #1003
2017-08-01 21:34:44 +09:00
Junegunn Choi
37370f057f
Do not use defer in performance-sensitive contexts
2017-08-01 03:44:55 +09:00
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.
2017-08-01 03:44:38 +09:00
Junegunn Choi
9d2c6a95f4
Revert "[bash] Do not append space when path completion is cancelled"
...
This reverts commit 376a76d1d3 as it
affects normal completion
2017-07-31 14:08:17 +09:00
Junegunn Choi
376a76d1d3
[bash] Do not append space when path completion is cancelled
...
Close #990
2017-07-30 21:51:44 +09:00
Jan Edmund Lazo
1fcc07e54e
[vim] Fix escape of backslash in s:shortpath
...
Close #1000
2017-07-30 20:05:01 +09:00
Junegunn Choi
8db3345c2f
Optimize exact match by applying the same trick for fuzzy match
2017-07-30 18:16:54 +09:00
Junegunn Choi
69aa2fea68
Optimize fuzzy search performance for ASCII strings
2017-07-30 17:31:50 +09:00
Junegunn Choi
298749bfcd
Update README
2017-07-29 17:12:46 +09:00
Junegunn Choi
f1f31baae1
Update README: Missing TOC
2017-07-29 17:10:00 +09:00
Junegunn Choi
e1c8f19e8f
Update README: Advanced topics
2017-07-29 17:09:05 +09:00
Junegunn Choi
5e302c70e9
Update README: rg intead of pt
2017-07-29 17:09:05 +09:00
Junegunn Choi
4c5a679066
Make deselect-all instantaneous
2017-07-28 13:13:03 +09:00
Andrew Halberstadt
41f0b2c354
Add MinGW on Windows to install script ( #998 )
...
Running uname -sm yields:
MINGW32_NT-6.2 i686
2017-07-28 12:22:33 +09:00
Junegunn Choi
a0a3c349c9
Update preview window when selection has changed
...
Close #995
2017-07-28 01:39:25 +09:00
Alexey Shamrin
bc3983181d
Update fish comments, because 2.6.0 was released ( #991 )
2017-07-25 19:10:34 +09:00
Junegunn Choi
980b58ef5a
Update README
...
Removed outdated animated GIF.
2017-07-23 22:07:24 +09:00
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.
2017-07-23 13:12:15 +09:00
Junegunn Choi
6dbc108da2
0.16.10
2017-07-21 18:41:11 +09:00
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.
2017-07-21 17:31:11 +09:00
Junegunn Choi
06301c7847
Fix regression: ANSI color in preview window not cleared
2017-07-21 16:44:59 +09:00
Junegunn Choi
18a1aeaa91
0.16.9
2017-07-21 00:08:55 +09:00
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.
2017-07-20 02:44:30 +09:00
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
2017-07-19 22:47:15 +09:00
Junegunn Choi
28810c178f
Optimize ANSI code scanner
...
This change gives 5x speed improvement
2017-07-19 21:49:41 +09:00
Junegunn Choi
a9e64efe45
Fix regression: output printed on alternate screen
2017-07-19 13:17:06 +09:00
Junegunn Choi
6b5886c034
Adjust --no-clear option for repetitive relaunching
...
Related: https://gist.github.com/junegunn/4963bab6ace453f7f529d2d0e01b1d85
Close #974
2017-07-18 21:10:49 +09:00
Junegunn Choi
7727ad43af
[vim] Use fnameescape to escape command line arguments
...
Fix https://github.com/junegunn/fzf.vim/issues/404
Thanks to @janlazo.
2017-07-18 16:33:58 +09:00
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.
2017-07-18 03:14:33 +09:00
Junegunn Choi
5e72709613
Speed up initial scanning with bitwise AND operation
2017-07-18 02:17:05 +09:00
Junegunn Choi
9e85cba0d0
Reduce memory footprint of Item struct
2017-07-16 23:34:32 +09:00
Junegunn Choi
4b59ced08f
Add gopath to gitignore
2017-07-16 23:34:32 +09:00
Junegunn Choi
8dbdd55730
Refactor cache lookup
...
- Remove multiple mutex locks in partial cache lookup
- Simplify return values
2017-07-16 23:34:32 +09:00
Junegunn Choi
6725151a99
Remove unnecessary copy of Chunk slice
2017-07-16 23:34:32 +09:00
Junegunn Choi
d4f3d5a164
Remove pointer indirection by changing Chunk definition
2017-07-16 23:34:32 +09:00
Tom Fitzhenry
7b5ccc45bc
[fish] Fix ctrl-r regression in versions <2.4 ( #972 )
...
Close #966
2017-07-15 18:50:23 +09:00
Jan Edmund Lazo
940214a1a2
[neovim] Fix lcd when fzf job exits on Windows ( #970 )
...
Related: #960 (relative filepaths)
2017-07-10 02:06:13 +09:00
Jan Edmund Lazo
68bd410159
[vim] Don't pipe FZF_DEFAULT_COMMAND in Windows ( #969 )
...
Related #960 , #552
2017-07-09 13:08:16 +09:00
Junegunn Choi
b13fcfd831
Add missing --no-expect flag
2017-07-04 23:02:15 +09:00
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
2017-07-01 01:13:15 +09:00
Junegunn Choi
3fc795340d
Fix test failulre with non-zero pane-base-index
2017-07-01 01:05:47 +09:00
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.
2017-06-25 21:16:15 +09:00
Tom Fitzhenry
dbcaec59ae
[fish] Support multiline commands ( #954 )
...
Fix found by @amosbird at https://github.com/junegunn/fzf/issues/953#issuecomment-310309055
closes #440
2017-06-25 21:09:51 +09:00
Junegunn Choi
faedae708e
Fix FZF_CTRL_T_COMMAND example for fish
...
See #944
2017-06-23 01:50:45 +09:00
Junegunn Choi
0c66521b23
Fix handling of bracketed paste mode
...
fzf should immediately continue consuming the buffer after discarding
bracketed paste mode sequence.
Close #951
2017-06-22 02:35:57 +09:00
Junegunn Choi
bf92862459
Update man page: missing name "border" for --color
2017-06-20 14:15:11 +09:00
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".
2017-06-12 18:24:45 +09:00
Junegunn Choi
842a73357c
[fish] Fix CTRL-T with paths that don't start with ./
...
Close #943
2017-06-10 13:35:24 +09:00
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
2017-06-09 12:00:59 +09:00
Jan Edmund Lazo
050777b8c4
[vim] Uncomment test case to escape % in cmd.exe ( #941 )
2017-06-08 10:25:35 +09:00
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*
2017-06-08 10:02:34 +09:00
Junegunn Choi
b49f22cdf9
0.16.8
2017-06-05 23:21:50 +09:00
Jan Edmund Lazo
7e483b0c25
[vim] Add support for Cygwin ( #933 )
2017-06-05 13:54:47 +09:00
Junegunn Choi
3cf9ae04c7
[fzf-tmux] Fix cleanup of temporary files
...
Close #935
2017-06-04 23:24:57 +09:00
Junegunn Choi
bf0cb4bfe2
Use find as the default command on Cygwin environment
2017-06-04 16:23:47 +09:00
Junegunn Choi
773133c4ce
[vim] Allow running install --bin on Cygwin
2017-06-04 15:15:46 +09:00
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
2017-06-03 19:47:53 +09:00
Junegunn Choi
f4731c0514
Merge branch 'master' into devel
2017-06-03 19:42:26 +09:00
Junegunn Choi
34f16e5b7d
Fix Makefile and install script for the new project layout
2017-06-02 18:19:21 +09:00
Junegunn Choi
83e9af6601
Add git revision to --version output
2017-06-02 17:59:12 +09:00
Junegunn Choi
8bbf9335e1
Restructuring: main package in project root
2017-06-02 17:59:01 +09:00
Junegunn Choi
159f30b37f
Merge branch 'glide' of https://github.com/hinshun/fzf into hinshun-glide
2017-06-02 13:35:40 +09:00
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
2017-06-02 13:25:35 +09:00
Edgar Lee
7d3575b362
Use glide to handle go dependencies
2017-06-01 17:08:47 -07:00
Junegunn Choi
35d407021c
[vim] Replace invalid s:escape calls with fzf#shellescape
2017-05-31 23:59:11 +09:00
Junegunn Choi
076f49d447
[vim] Make sure to delete temporary batchfile on Windows
2017-05-31 10:03:23 +09:00
Junegunn Choi
0665fe0413
[vim] Remove unnecessary ternary expression
...
Related: https://github.com/junegunn/fzf.vim/issues/378
2017-05-31 10:02:04 +09:00
Jan Edmund Lazo
669a6fee40
[vim] Use utf-8 for cmd.exe ( #929 )
2017-05-31 09:56:01 +09:00
Jan Edmund Lazo
8aab0fc189
[vim] Replace s:fzf_shellescape and s:shellesc with fzf#shellescape ( #916 )
2017-05-29 10:06:06 +09:00
Junegunn Choi
5d6eb5bfd6
Respect ANSI color state from the previous line in preview output
2017-05-28 02:26:42 +09:00
Junegunn Choi
cf4711d878
Fix display of tab characters in --prompt
2017-05-26 19:02:49 +09:00
Junegunn Choi
21d664d670
Update extra bash completion example
2017-05-25 19:09:04 +09:00
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 >
2017-05-25 01:36:59 +09:00
Junegunn Choi
96a3250152
Update test case for --cycle
2017-05-24 13:20:13 +09:00
Junegunn Choi
f5746002fd
Do not "--cycle" on page-up/page-down
...
Close #928
2017-05-24 02:43:39 +09:00
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
2017-05-22 17:07:05 +09:00
Junegunn Choi
3a5086796d
[vim] Prevent 'wildignore' from affecting expand() ( #917 )
2017-05-22 01:23:59 +09:00
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 .
2017-05-22 01:04:04 +09:00
Aurelien Rainone
e65f14cbed
Update README: Add table of contents ( #927 )
2017-05-20 19:08:56 +09:00
Theodore Dubois
6898849e3e
Mention that the fish bug has been fixed ( #912 )
2017-05-05 10:48:28 +09:00
Junegunn Choi
2d61691bb2
0.16.7
2017-04-30 11:54:40 +09:00
Junegunn Choi
eba9e04e2e
Export FZF_PREVIEW_HEIGHT instead of FZF_HEIGHT
...
https://github.com/junegunn/fzf.vim/issues/361
2017-04-30 11:36:23 +09:00
Junegunn Choi
33f32de690
Merge branch 'master' into devel
2017-04-30 11:23:42 +09:00
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
2017-04-30 11:18:56 +09:00
Junegunn Choi
7f17a9d1b4
Update mattn/go-shellwords
2017-04-30 00:47:44 +09:00
Junegunn Choi
d34e4cf698
Support CTRL-Z (SIGSTOP)
2017-04-28 22:58:08 +09:00
Junegunn Choi
6b592137b9
Add support for ctrl-alt-[a-z] key chords
...
Close #906
2017-04-28 02:36:36 +09:00
Junegunn Choi
d5e72bf55d
Update README-VIM: options as list ( #896 )
2017-04-28 02:09:55 +09:00
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
2017-04-28 01:57:38 +09:00
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
2017-04-22 11:30:51 +09:00
Junegunn Choi
a5862d4b9c
[bash-completion] Use -o dirnames instead of -o plusdirs
...
Close #903
Related #135
2017-04-11 22:21:16 +09:00
Junegunn Choi
a50909e806
Correction: fzf no longer depends on ncurses
2017-04-06 02:08:49 +09:00
Kouki Higashikawa
7c8f7d3f20
[fzf-tmux] Close with exit code 130 when tmux pane is killed
...
Fix #796
2017-04-03 11:49:54 +09:00
Junegunn Choi
9078197446
Add --version to --help output and man page
...
Close #888
Close #894
2017-04-02 11:30:22 +09:00
Junegunn Choi
0fe07cf9fe
Update README.md
...
Add PayPal donation button
2017-04-02 10:47:06 +09:00
Junegunn Choi
2216169ca1
Update doc/fzf.txt accordingly
2017-04-01 12:19:39 +09:00
Junegunn Choi
50e989ca85
Update example in README-VIM
2017-04-01 12:06:25 +09:00
Junegunn Choi
fa1fc3d855
Add vim doc
...
Close #893
2017-04-01 12:00:30 +09:00
五所和哉
bbe696e925
[fzf-tmux] Fix issue with zoomed pane on fish ( #891 )
2017-04-01 11:09:46 +09:00
Miodrag Milić
5d12f523a3
Add chocolatey upgrade instruction to Readme ( #890 )
2017-03-30 01:59:41 +09:00
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.
2017-03-27 13:41:39 +09:00
Sam Van Den Berge
2ba10071c9
Add support for IPv6 addresses in ssh completion ( #877 )
...
Signed-off-by: Sam Van Den Berge <sam@drgt.net >
2017-03-21 01:06:13 +09:00
Christian Sturm
505dc0491b
Make install script to work with non GNU tar ( #871 )
2017-03-10 23:22:37 +09:00
Junegunn Choi
54a4ab0f26
Add Chocolatey instruction
...
Thanks to @majkinetor. Close #869 .
2017-03-07 23:03:14 +09:00
Junegunn Choi
e03e91477b
0.16.6
2017-03-05 03:05:06 +09:00
Junegunn Choi
88ac397158
Add test case for --no-clear
2017-03-04 14:26:47 +09:00
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
2017-03-04 14:09:36 +09:00
Junegunn Choi
53348feb89
Add --no-clear option
2017-03-04 11:29:31 +09:00
Junegunn Choi
337cdbb37c
[zsh] Use setopt noposixbuiltins instead of emulate -L zsh
...
Close #858
3a6af27586 (commitcomment-21135641)
2017-03-03 19:09:29 +09:00
Junegunn Choi
05fdf91fc5
Revert "[zsh] emulate -L zsh to avoid issues with incompatible options"
...
This reverts commit 3a6af27586 .
2017-03-03 18:57:22 +09:00
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.
2017-03-03 12:20:01 +09:00
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.
2017-03-03 02:26:30 +09:00
Junegunn Choi
a484811f78
[vim] Capitalize exception messages
2017-03-02 14:17:59 +09:00
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
2017-03-02 14:14:57 +09:00
Junegunn Choi
972fb1a29d
Suppress ANSI colors in preview window if --no-color is set
2017-03-02 12:49:51 +09:00
Junegunn Choi
3a6af27586
[zsh] emulate -L zsh to avoid issues with incompatible options
...
Close #858
2017-03-01 16:07:04 +09:00
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
2017-03-01 16:00:08 +09:00
Junegunn Choi
cd59e5d07b
[neovim] Set 'dir' to the current direcotry
...
Close https://github.com/junegunn/fzf.vim/issues/308
2017-02-25 23:52:56 +09:00
Junegunn Choi
0b940e4b2b
Redraw item if query string has changed
2017-02-24 02:30:11 +09:00
Junegunn Choi
b29375c844
[vim] Minor refactoring
2017-02-19 20:53:12 +09:00
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
2017-02-19 20:47:44 +09:00
Junegunn Choi
e87a85a179
0.16.5
2017-02-19 01:40:25 +09:00
Junegunn Choi
11407bf656
Exclude sysfs in find commands
2017-02-19 01:33:13 +09:00
Junegunn Choi
c82fb3c9b9
Add toggle-preview-wrap action
2017-02-18 23:49:00 +09:00
Junegunn Choi
309e1d8619
Properly truncate long query string
2017-02-18 23:17:29 +09:00
Junegunn Choi
c2db67c1c0
[vim] Prepend @echo off to $FZF_DEFAULT_COMMAND on Windows ( #847 )
2017-02-18 21:58:03 +09:00
Junegunn Choi
9526594905
[vim] Fix FZF_DEFAULT_COMMAND on Windows
...
Close #847 . Patch submitted by @wontoncc.
2017-02-18 18:17:37 +09:00
Junegunn Choi
3d74d277aa
Use cut instead of sed in the default command
2017-02-17 13:07:45 +09:00
Junegunn Choi
fc274c2ba4
[vim] Do not escape % when using system() instead of !
...
Close https://github.com/junegunn/fzf.vim/issues/309
2017-02-17 10:20:39 +09:00
Pierre Neidhardt
ce43ea9f42
[shell] Replace sed with -mindepth 1 and cut ( #844 )
2017-02-16 17:18:01 +09:00
Junegunn Choi
21da02fac2
Fix indentation
2017-02-14 22:30:09 +09:00
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
2017-02-14 22:28:04 +09:00
Daniel Gray
afa25d8c57
[zsh] Do not cd when cancelling alt+c keybind ( #840 )
2017-02-09 14:05:02 +09:00
Junegunn Choi
1ba7acf4bd
[fzf-tmux] Fix race condition when using -l/-u on zoomed panes
...
Using a dummy command that works as the barrier.
2017-02-08 14:55:51 +09:00
Prabir Shrestha
a847fe8754
Use "type" instead of "cat" on windows ( #836 )
2017-02-07 14:42:08 +09:00
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.
2017-02-06 21:15:29 +09:00
Junegunn Choi
876c233a26
Remove Ruby version
...
Related #832
2017-02-06 21:06:12 +09:00
Junegunn Choi
ee5aeb80a4
0.16.4
2017-02-05 16:17:54 +09:00
Junegunn Choi
02ceae15a2
[vim] Download instruction for Windows
2017-02-05 02:07:54 +09:00
Junegunn Choi
e514739280
Fix failing test case
2017-02-04 22:49:17 +09:00
Junegunn Choi
72265298f9
[vim] Apply --no-height when running fzf in full screen mode
...
To override --height option in FZF_DEFAULT_OPTS
2017-02-04 21:52:05 +09:00
Junegunn Choi
4b700192c1
Add --border option to draw horizontal lines above and below the finder
...
Goes well with --height
2017-02-04 21:51:22 +09:00
Junegunn Choi
fe83589ade
Add test case for --tiebreak=begin
2017-02-03 02:14:14 +09:00
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.
2017-02-02 13:46:46 +09:00
Junegunn Choi
c95bb109c8
Suppress CSI codes in the output
2017-02-02 13:14:27 +09:00
Junegunn Choi
bd9c46ee34
Update ANSI processor to strip ^H along with its preceding character
2017-02-02 13:00:41 +09:00
Junegunn Choi
736aeaa1d3
Update go-runewidth
...
https://github.com/junegunn/go-runewidth/pull/1
/cc @joshuarubin
2017-02-02 10:08:56 +09:00
Junegunn Choi
dd1f26522c
Fix caching scheme when --exact is set and '-prefix is used
2017-02-01 02:06:56 +09:00
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
```
2017-02-01 01:06:52 +09:00
Junegunn Choi
5b749e2d5c
Update documentation
2017-01-31 21:43:41 +09:00
Junegunn Choi
d85a69a709
0.16.3
2017-01-30 01:53:17 +09:00
Junegunn Choi
a425e96fb2
[vim] g:fzf_prefer_tmux for choosing fzf-tmux over --height
...
https://github.com/junegunn/fzf.vim/issues/296
2017-01-30 01:47:30 +09:00
Junegunn Choi
7763fdf6ba
Update man pages
2017-01-30 01:27:12 +09:00
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
2017-01-30 01:08:07 +09:00
Junegunn Choi
36dceecd58
Add support for ctrl-space key
...
Close #825
2017-01-28 02:54:47 +09:00
Junegunn Choi
421b9b271a
Add execute-silent action
...
Close #823
2017-01-27 18:56:41 +09:00
Junegunn Choi
ed57dcb924
Extend placeholder expression for multiple selections
...
Close #788
2017-01-27 16:38:42 +09:00
Junegunn Choi
95c77bfb98
Use --bind instead of --toggle-sort
...
Related #822
2017-01-26 11:54:08 +09:00
Junegunn Choi
2e3e721344
Merge branch 'devel'
2017-01-26 11:52:24 +09:00
Junegunn Choi
da2c28d5c2
Add --read0 and --print0 to --help output
...
Close #822
2017-01-26 11:41:20 +09:00
Junegunn Choi
dbddee9de9
[fish] Add toggle-sort back to CTRL-R ( #759 )
2017-01-25 10:21:14 +09:00
Junegunn Choi
8731d75607
Recalculate the width of trimmed line
...
Close #821
2017-01-25 02:39:49 +09:00
Junegunn Choi
f2ce233a6d
0.16.2
2017-01-24 00:37:47 +09:00
Junegunn Choi
6a75e30941
Allow invisible preview window (--preview-window 0)
...
Close #820
2017-01-24 00:23:16 +09:00
Junegunn Choi
a3244c4892
Delete every line below the cursor
2017-01-23 22:07:18 +09:00
Junegunn Choi
a5ad8fd3bd
Minor refactoring
2017-01-23 12:55:13 +09:00
Junegunn Choi
deccdb1ec5
Cursor postition response can be preceded by user key strokes
2017-01-23 12:55:11 +09:00
Junegunn Choi
12a43b5e62
Disable mouse if failed to query cursor position
2017-01-23 12:55:04 +09:00
Junegunn Choi
e1291aa6d2
Fix make deps to see the right git dir
2017-01-23 12:10:43 +09:00
Junegunn Choi
bb26f32ac7
Allow build on OpenBSD/FreeBSD/Android
...
Close #497
2017-01-22 18:51:04 +09:00
Junegunn Choi
4d928001b8
Update release script to upload assets in parallel
2017-01-22 18:33:30 +09:00
Junegunn Choi
c4baa6a10c
Update man page: 24-bit color
2017-01-22 18:33:03 +09:00
Junegunn Choi
71dec3dc5e
Fix bug where screen is not properly cleared on toggle-preview
2017-01-22 17:43:27 +09:00
Junegunn Choi
e5017c0431
Remove unnecesasry test case
2017-01-22 17:41:47 +09:00
Junegunn Choi
cbb5134874
[vim] Use 24-bit colors if termguicolors is set
2017-01-22 14:40:30 +09:00
Junegunn Choi
ff248d566d
Drop ncurses dependency
...
Close #818
2017-01-22 14:13:37 +09:00
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
2017-01-22 05:26:38 +09:00
Junegunn Choi
2a669e9a17
Clear lines even when background color is not set
...
Also revert the workaround in Vim plugin introduced in fa7c897 .
Related: #814
2017-01-22 03:19:50 +09:00
Junegunn Choi
5130abe76f
Merge branch 'master' into devel
2017-01-22 03:10:06 +09:00
Junegunn Choi
fa7c8977a8
[vim] tput el to clear the last line
...
Close #814
Not grouping commands to avoid errors on non-standard shells.
2017-01-22 03:03:26 +09:00
Junegunn Choi
24fa183297
make deps
2017-01-22 02:54:19 +09:00
Junegunn Choi
131aa5dd15
Composable actions in --bind
...
Close #816
2017-01-22 02:32:49 +09:00
Junegunn Choi
a06ccc928f
Fix flakies
2017-01-21 04:17:51 +09:00
Junegunn Choi
d09ad13208
[zsh] Workaround trailing esacped space bug in go-shellwords
...
https://github.com/mattn/go-shellwords/issues/3
Close #812
2017-01-21 03:59:36 +09:00
Junegunn Choi
8ac37d5927
[shell] Do not override --reverse in CTRL-R
...
Close #807
2017-01-17 18:09:29 +09:00
Junegunn Choi
7ef0e50507
[bash/zsh] Remove unused --reverse in CTRL-R binding
...
Related #807
2017-01-17 11:58:25 +09:00
Junegunn Choi
62ab8ece5e
0.16.1
2017-01-16 12:27:40 +09:00
Junegunn Choi
8e2e63f9b9
Propertly fill window with background color
...
Close #805
2017-01-16 12:27:32 +09:00
Junegunn Choi
f96173cbe4
Add -L flag to the default find command
...
Close #781
2017-01-16 12:01:58 +09:00
Amos Bird
11015df52f
Add half-page-{up,down} actions ( #784 )
2017-01-16 11:58:13 +09:00
Junegunn Choi
05ed57a9f0
Merge pull request #794 from junegunn/devel
...
0.16.0
2017-01-16 02:43:56 +09:00
Junegunn Choi
4bece04207
0.16.0
2017-01-16 02:39:37 +09:00
Junegunn Choi
ede7bfb901
Optimize LightRenderer for slow terminals
2017-01-16 02:26:36 +09:00
Junegunn Choi
44d3faa048
[completion] Restore --height option for kill completion
2017-01-15 22:02:04 +09:00
Junegunn Choi
e0036b5ad2
Add --filepath-word option
...
Close #802
2017-01-15 19:42:28 +09:00
Junegunn Choi
208d4f2173
[shell] Make layout configurable via $FZF_DEFAULT_OPTS and $FZF_{KEY}_OPTS
2017-01-15 16:15:51 +09:00
Junegunn Choi
dc3957ce79
[completion] Add preview window to kill completion
2017-01-15 15:06:37 +09:00
Junegunn Choi
4ecb7f3a16
Replace --normalize with --literal and enable normalization by default
...
Ref #790
2017-01-15 13:22:09 +09:00
Junegunn Choi
03f5ef08c8
Use crypto/ssh/terminal instead of external stty command
2017-01-15 13:10:59 +09:00
Junegunn Choi
2720816266
[vim] Use /dev/tty as STDIN when using --height w/o explicit source
2017-01-15 04:33:03 +09:00
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
2017-01-14 20:55:30 +09:00
Junegunn Choi
5b68027bee
Fix $FZF_COMPLETION_OPTS evaluation
...
Close #799
2017-01-14 01:10:34 +09:00
Junegunn Choi
48863ac55c
Update invalid $TERM test case
2017-01-14 01:04:17 +09:00
Junegunn Choi
d64828ce6d
Print error message to stderr on unexpected exit
2017-01-11 23:01:56 +09:00
Junegunn Choi
2aa739be81
Fix bug where occurrence of the pattern in header lines are highlighted
2017-01-11 22:47:26 +09:00
Junegunn Choi
9977a3e9fc
Make preview renderer suspend early on line wrap
2017-01-11 22:13:40 +09:00
Junegunn Choi
f8082bc53a
No need to use /bin/sh to execute stty and tput
2017-01-11 21:48:36 +09:00
Junegunn Choi
996dcb14a3
Make fzf immediately quit when failed to read /dev/tty
...
Close #798
2017-01-11 02:12:32 +09:00
Junegunn Choi
0c127cfdc1
No need to query row position of the cursor if mouse is disabled
2017-01-10 22:55:55 +09:00
Junegunn Choi
ae274158de
Add experimental support for 24-bit colors
2017-01-10 02:16:12 +09:00
Junegunn Choi
340af463cd
Add --min-height option for percent --height
2017-01-10 01:04:36 +09:00
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.
2017-01-09 19:09:30 +09:00
Junegunn Choi
d18b8e0d2c
Retry flaky test cases
2017-01-09 13:22:24 +09:00
Junegunn Choi
6c6c0a4778
Make util.RuneWidth return 1 for non-displayable characters
...
Fix line wrapping in preview window
2017-01-09 10:49:05 +09:00
Junegunn Choi
a16d8f66a9
Normalize pattern string before passing it to Algo function
2017-01-09 09:52:17 +09:00
Junegunn Choi
45793d75c2
Add --normalize option to normalize latin script characters
...
Close #790
2017-01-09 03:12:23 +09:00
Junegunn Choi
9d545f9578
Fix update of multi-select pointer
2017-01-08 02:29:31 +09:00
Junegunn Choi
a30999a785
Prepare for 0.16.0 release
2017-01-08 02:09:56 +09:00
Junegunn Choi
1a50f1eca1
[vim] Use --height instead of fzf-tmux
2017-01-08 02:09:56 +09:00
Junegunn Choi
1448d631a7
Add --height option
2017-01-08 02:09:56 +09:00
Junegunn Choi
fd137a9e87
[bash/zsh-completion] Filter ~/.ssh/known_hosts
...
Close #791
2017-01-07 22:46:34 +09:00
Jan Edmund Lazo
3670273719
[vim] Use cmd.exe directly on GVim (launcher='%s') ( #787 )
2017-01-04 14:07:01 +09:00
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
2017-01-02 02:16:25 +09:00
Jan Edmund Lazo
42a2371d26
[vim] Use cmd.exe in Windows ( #785 )
2017-01-01 11:48:15 +09:00
Junegunn Choi
45faad7e04
[bash] Addendum fix for #580
2017-01-01 02:23:20 +09:00
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 .
2016-12-31 00:30:00 +09:00
Junegunn Choi
7b0d9e1e07
Apply --tabstop to preview window
2016-12-27 01:35:09 +09:00
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.
2016-12-24 12:53:07 +09:00
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.
2016-12-19 02:51:19 +09:00
Junegunn Choi
97330ee8fc
No need to set MANPATH
...
Close #774
2016-12-17 11:20:28 +09:00
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.
2016-12-14 15:37:27 +09:00
Marco Hinz
8a502af4c1
Neovim: event handlers always expect three arguments ( #768 )
2016-12-14 01:56:53 +09:00
Junegunn Choi
c60bfb2b0f
[neovim] Keep alternate file unchanged
...
Close https://github.com/junegunn/fzf.vim/issues/265
2016-12-11 22:32:59 +09:00
Junegunn Choi
16b5902aa2
Fix Linux build ( #756 )
2016-12-05 02:27:38 +09:00
Junegunn Choi
a442fe0fd0
Truncate long lines in preview window
...
Add `:wrap` to --preview-window to wrap lines instead
Close #756
2016-12-05 02:13:59 +09:00
Junegunn Choi
ab9ae4f643
[vim] Fix path display in FZF when cwd is ~
2016-12-03 01:13:56 +09:00
Junegunn Choi
d9a51030ea
[vim] Display relative path in prompt
2016-12-02 21:07:23 +09:00
Junegunn Choi
67026718c1
Add BUILD.md
2016-11-27 15:16:53 +09:00
Junegunn Choi
a71c471405
0.15.9
2016-11-26 12:36:24 +09:00
Junegunn Choi
3858086047
Always print scroll indicator in preview window
2016-11-26 12:34:16 +09:00
Junegunn Choi
dffef3d9f3
Update build instructions for ncurses 6 and tcell
...
Close #357
Close #738
2016-11-26 11:41:57 +09:00
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
2016-11-26 00:36:38 +09:00
Junegunn Choi
6f17f412ba
Workaround for rendering glitch in case of short-lived input process
...
: | fzf --preview 'echo foo'
2016-11-25 14:05:37 +09:00
Junegunn Choi
746961bf43
[ncurses6] Suppress tui.Italic on ncurses 5
2016-11-24 13:42:14 +09:00
Junegunn Choi
182a6d99fd
[ncurses6] Support italics
2016-11-24 00:13:10 +09:00
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
2016-11-24 00:12:43 +09:00
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.
2016-11-23 02:28:03 +09:00
Junegunn Choi
8524ea7441
Do not ignore resize event from ncurses and tcell
2016-11-23 01:58:46 +09:00
Junegunn Choi
6a65006f55
0.15.8
2016-11-19 23:13:26 +09:00
Junegunn Choi
d75ed841a9
Fix --no-bold on --no-color
2016-11-19 23:12:28 +09:00
Junegunn Choi
3cd2547e91
Reduce ESC delay to 100ms
2016-11-19 23:03:27 +09:00
Junegunn Choi
8c661d4e8c
Revamp escape sequence processing for WSL
...
Also add support for alt-[0-9] and f1[12]
2016-11-19 22:42:15 +09:00
Junegunn Choi
4b332d831e
Add --no-bold option
2016-11-15 23:57:32 +09:00
Junegunn Choi
22487810ba
Update README: link to wiki page
2016-11-15 23:44:04 +09:00
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.
2016-11-15 01:52:54 +09:00
Junegunn Choi
2e8814bb57
Add WSL to .github/ISSUE_TEMPLATE.md
2016-11-14 12:26:46 +09:00
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 .
2016-11-14 02:15:23 +09:00
Junegunn Choi
a2beb159f1
0.15.7
2016-11-09 12:41:46 +09:00
Junegunn Choi
7ce427ff47
Fix panic when color is disabled and header lines contain ANSI colors
...
Close #732
2016-11-09 12:05:45 +09:00
Junegunn Choi
a221c672fb
0.15.6
2016-11-09 01:45:27 +09:00
Junegunn Choi
f87d382ec8
Fix --color=bw on tcell build
2016-11-09 01:45:06 +09:00
Junegunn Choi
3dfc020fac
Merge pull request #730 from laur89/master
...
Minor README markup fix
2016-11-09 00:06:42 +09:00
Laur Aliste
2d87896939
Minor README markup fix.
2016-11-08 15:41:46 +01:00
Junegunn Choi
2192d8d816
GOOS=windows make release
2016-11-08 03:32:41 +09:00
Junegunn Choi
d206949f62
Wait for additional keys after ESC for up to 100ms
...
Close #661
2016-11-08 03:07:26 +09:00
Junegunn Choi
4accc69022
Fix flaky test cases
2016-11-08 02:19:05 +09:00
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
2016-11-08 02:06:34 +09:00
Michael Kelley
26895da969
Implement tcell-based renderer
2016-11-07 02:32:14 +09:00
Junegunn Choi
0c573b3dff
Prepare for termbox/windows build
...
`TAGS=termbox make` (or `go build -tags termbox`)
2016-11-07 02:32:14 +09:00
Junegunn Choi
2cff00dce2
man fzf in README
...
Close #726
2016-11-01 00:39:02 +09:00
Junegunn Choi
06a6ad8bca
Update ANSI processor to ignore ^N and ^O
...
This reverts commit 02c6ad0e59 .
2016-10-30 12:29:29 +09:00
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"'
2016-10-30 11:43:06 +09:00
Junegunn Choi
9f321cbe13
Fix header lines being cleared on toggle-preview
...
Close #722
2016-10-28 03:13:50 +09:00
Junegunn Choi
9f30ca2923
0.15.5
2016-10-23 22:00:32 +09:00
Junegunn Choi
37f2d8f795
[vim] Respect g:fzf_colors
...
Close #711
2016-10-22 01:14:16 +09:00
Junegunn Choi
400e443a0a
Make test cases less susceptible to timeout errors
2016-10-22 00:01:21 +09:00
Junegunn Choi
0a8d2996dc
Set foreground color without affecting background
...
Close #712
2016-10-21 19:35:59 +09:00
Junegunn Choi
cfdb00b971
Allow other options to follow --color without spec
2016-10-21 19:20:16 +09:00
Junegunn Choi
9b9ad39143
[vim] Set g:loaded_fzf
2016-10-18 15:00:47 +09:00
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.
2016-10-18 01:13:57 +09:00
Junegunn Choi
47b11cb8b4
Merge pull request #701 from nthapaliya/zsh_script_improvements
...
[zsh] GNU coreutils compatibility
2016-10-14 10:00:58 +09:00
Niraj Thapaliya
d3da310b92
Use command to ignore shell function
2016-10-13 09:53:24 -06:00
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
2016-10-13 09:52:49 -06:00
Junegunn Choi
ac549a853a
[fzf-tmux] Fix bash condition
...
Fix #702
2016-10-13 10:42:26 +09:00
Junegunn Choi
053af9a1c8
[fzf-tmux/vim/nvim] Do not split small window
...
Close #699
2016-10-12 23:10:21 +09:00
Junegunn Choi
60112def02
Merge pull request #698 from Ambrevar/master
...
[fish] Yank commandline in fzf-history-widget
2016-10-12 01:54:51 +09:00
Pierre Neidhardt
2134c0c8a9
key-bindings.fish: Yank commandline in fzf-history-widget
2016-10-11 21:15:00 +05:30
Junegunn Choi
3222d62ddf
0.15.4
2016-10-04 02:17:36 +09:00
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` |
2016-10-04 02:09:03 +09:00
Junegunn Choi
154cf22ffa
Display scroll indicator in preview window
2016-10-04 01:40:45 +09:00
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.
2016-10-04 01:39:48 +09:00
Junegunn Choi
01b88539ba
[vim] Apply --multi and --prompt to :FZF command
2016-10-04 00:30:04 +09:00
Junegunn Choi
3066b206af
Support field index expressions in preview and execute action
...
Also close #679 . The placeholder for the current query is {q}.
2016-10-03 14:33:28 +09:00
Junegunn Choi
04492bab10
Use unicode.IsSpace to cover more whitespace characters
2016-09-29 22:40:22 +09:00
Junegunn Choi
8b0d0342d4
0.15.3
2016-09-29 03:05:20 +09:00
Junegunn Choi
957c12e7d7
Fix SEGV when trying to render preview but the window is closed
...
Close #677
2016-09-29 02:53:05 +09:00
Junegunn Choi
3b5ae0f8a2
Fix failing unit tests on ANSI attributes
2016-09-29 01:06:47 +09:00
Junegunn Choi
1fc5659842
Add support for more ANSI color attributes ( #674 )
...
Dim, underline, blink, reverse
2016-09-29 00:54:27 +09:00
Junegunn Choi
1acd2adce2
Update man page: missing actions
2016-09-26 15:33:46 +09:00