-
Notifications
You must be signed in to change notification settings - Fork 0
⬆️ Update dependency junegunn/fzf to v0.62.0 #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
renovate
wants to merge
1
commit into
main
Choose a base branch
from
renovate/junegunn-fzf-0.x
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53a97fe
to
1396b5c
Compare
1396b5c
to
2dc1e48
Compare
2dc1e48
to
adc0111
Compare
adc0111
to
8b67da7
Compare
8b67da7
to
4a07b07
Compare
4a07b07
to
3138709
Compare
3138709
to
eaf712a
Compare
eaf712a
to
51892cb
Compare
51892cb
to
a321879
Compare
a321879
to
2a90629
Compare
2a90629
to
dc6ce74
Compare
dc6ce74
to
a6cfee9
Compare
a6cfee9
to
635e31f
Compare
635e31f
to
b32b924
Compare
b32b924
to
625d302
Compare
625d302
to
76a0f09
Compare
d74d02a
to
ff1da1d
Compare
ff1da1d
to
da356fe
Compare
da356fe
to
1610c6f
Compare
1610c6f
to
dd565ed
Compare
dd565ed
to
edcd21f
Compare
edcd21f
to
de59211
Compare
de59211
to
83d240c
Compare
83d240c
to
1fdb883
Compare
1fdb883
to
45d8447
Compare
45d8447
to
15823ad
Compare
15823ad
to
0c059d5
Compare
0c059d5
to
e92f1c2
Compare
e92f1c2
to
6ddde34
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
None yet
0 participants
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.39.0
->v0.62.0
Release Notes
junegunn/fzf (junegunn/fzf)
v0.62.0
: 0.62.0Compare Source
--color
option syntax to allow whitespace-separated entries (in addition to commas), making multi-line definitions easier to write and readseoul256-light
fzf --style full --color='
fg:#616161 fg+:#616161
bg:#ffffff bg+:#e9e9e9 alt-bg:#f1f1f1
hl:#719872 hl+:#719899
pointer:#e12672 marker:#e17899
header:#719872
spinner:#719899 info:#727100
prompt:#0099bd query:#616161
border:#e1e1e1
'
reload
(#4364)selected-bg
not applied to colored items (#4372)Screenshot
v0.61.3
: 0.61.3Compare Source
tmux run-shell 'fzf --tmux'
to fail (#4559 #4560)v0.61.2
: 0.61.2Compare Source
--tmux
option when already inside a tmux popup (@peikk0)--no-tty-default
option to make fzf search for the current TTY device instead of defaulting to/dev/tty
(#4242)v0.61.1
: 0.61.1Compare Source
v0.61.0
: 0.61.0Compare Source
--ghost=TEXT
to display a ghost text when the input is emptyDisplay "Type to search" when the input is empty
fzf --ghost "Type to search"
v0.60.3
: 0.60.3Compare Source
become
when using--tmux
option (#4283)--accept-nth
compatible with--select-1
(#4287)v0.60.2
: 0.60.2Compare Source
--with-nth
and--accept-nth
now supports{n}
which evaluates to the zero-based ordinal index of the itemv0.60.1
: 0.60.1Compare Source
v0.60.0
: 0.60.0Compare Source
Release highlights: https://junegunn.github.io/fzf/releases/0.60.0/
--accept-nth
for choosing output fieldsBecomes
ps -ef | fzf --multi --header-lines 1 --accept-nth 2
git branch | fzf | cut -c3-
Can be rewritten as
git branch | fzf --accept-nth -1
exclude
andexclude-multi
actions for dynamically excluding items'exclude-multi' will exclude the selected items or the current item
seq 100 | fzf --multi --bind 'ctrl-x:exclude-multi'
v0.59.0
: 0.59.0Compare Source
Release highlights: https://junegunn.github.io/fzf/releases/0.59.0/
pathname
for prioritizing file name matches--scheme=path
now sets--tiebreak=pathname,length
path
scheme$FZF_DEFAULT_COMMAND
which is usually a command for listing files,reload
ortransform
action is bound tostart
event, because in that case, fzf can't be sure of the input type.--header-lines-border
to display header from--header-lines
with a separate borderUse --header-lines-border to separate two headers
ps -ef | fzf --style full --layout reverse --header-lines 1
--bind 'ctrl-r:reload(ps -ef)' --header 'Press CTRL-R to reload'
--header-lines-border bottom --no-list-border
--no-input
option to completely disable and hide the input sectionClick 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}'
Vim-like mode switch
fzf --layout reverse-list --no-input
--bind 'j:down,k:up,/:show-input+unbind(j,k,/)'
--bind 'enter,esc,ctrl-c:transform:
if [[ $FZF_INPUT_STATE = enabled ]]; then
echo "rebind(j,k,/)+hide-input"
elif [[ $FZF_KEY = enter ]]; then
echo accept
else
echo abort
fi
'
Load 'ps -ef' output on start and reload it on CTRL-R
fzf --bind 'start,ctrl-r:reload:ps -ef'
--header-lines
will be displayed at the top inreverse-list
layoutbell
action to ring the terminal bellPress CTRL-Y to copy the current line to the clipboard and ring the bell
fzf --bind 'ctrl-y:execute-silent(echo -n {} | pbcopy)+bell'
v0.58.0
: 0.58.0Compare Source
Release highlights: https://junegunn.github.io/fzf/releases/0.58.0/
This version introduces three new border types,
--list-border
,--input-border
, and--header-border
, offering much greater flexibility for customizing the user interface.Also, fzf now offers "style presets" for quick customization, which can be activated using the
--style
option.default
full
minimal
--style=full[:BORDER_STYLE]
--style=default
--style=minimal
--list-border[=STYLE]
--list-label=LABEL
--list-label-pos=COL[:bottom]
list-fg
list-bg
list-border
list-label
change-list-label
transform-list-label
--input-border[=STYLE]
--input-label=LABEL
--input-label-pos=COL[:bottom]
input-fg
(query
)input-bg
input-border
input-label
change-input-label
transform-input-label
--header-border[=STYLE]
--header-label=LABEL
--header-label-pos=COL[:bottom]
header-fg
(header
)header-bg
header-border
header-label
change-header-label
transform-header-label
--preview-border[=STYLE]
as short for--preview-window=border[-STYLE]
line
which draws a single separator line between the preview window and the rest of the interface┈┈
) in each--gap
for better visual separation.All bash/zsh functions, highlighted
declare -f |
perl -0 -pe 's/^}\n/}\0/gm' |
bat --plain --language bash --color always |
fzf --read0 --ansi --layout reverse --multi --highlight-line --gap
toggle-multi-line
actiontoggle-hscroll
actionchange-nth
action for dynamically changing the value of the--nth
optionStart 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
--delimiter '|'
instead of escaping it as--delimiter '\|'
v0.57.0
: 0.57.0Compare Source
--walker-root
can take multiple directory arguments. e.g.--walker-root include src lib
--walker-skip
can handle multi-component patterns. e.g.--walker-skip target/build
FZF_PREVIEW_*
environment variables are exported to all child processes (#4098)v0.56.3
: 0.56.3Compare Source
v0.56.2
: 0.56.2Compare Source
--wrap
is set (#4083)ksh_arrays
is set (#4084)v0.56.1
: 0.56.1Compare Source
reload
(#4070)page-up
andpage-down
actions now work correctly with multi-line items (#4069){n}
is allowed inSCROLL
expression in--preview-window
(#4079)v0.56.0
: 0.56.0Compare Source
--gap[=N]
option to display empty lines between items.All bash functions, highlighted
noinfo
option to--preview-window
to hide the scroll indicator in the preview windowv0.55.0
: 0.55.0Compare Source
Release highlights: https://junegunn.github.io/fzf/releases/0.55.0/
exact-boundary-match
type to the search syntax. When a search term is single-quoted, fzf will search for the exact occurrences of the string with both ends at word boundaries.complete -D
option__fzf_default_completion
function for more information$FZF_DEFAULT_OPTS
and$FZF_DEFAULT_OPTS_FILE
Layout options
...
'
--ellipsis
is now··
instead of..
.exit
callback that is called with the exit status of fzf--tmux bottom
when the status line is not at the bottom--read0
or--wrap
)ps
command forkill
completion on Cygwinv0.54.3
: 0.54.3Compare Source
A regression in 0.54.0 would cause this to fail
fzf --height '~100%' --bind 'start:reload:seq 10'
v0.54.2
: 0.54.2Compare Source
tar.gz
format instead ofzip
format since we no longer notarize the zip files but binaries--no-height
).--no-height
to your$FZF_DEFAULT_OPTS
.v0.54.1
: 0.54.1Compare Source
cd
instead ofbuiltin cd
builtin cd
was introduced to work around a bug ofcd
coming fromzoxide init --cmd cd fish
where it cannot handle--
argument.cd
of fish is actually a wrapper function for supportingcd -
, so we want to use it instead.v0.54.0
: 0.54.0Compare Source
Release highlights: https://junegunn.github.io/fzf/releases/0.54.0/
--wrap
option enables line wrap--wrap-sign
customizes the sign for wrapped lines (default:↳
)toggle-wrap
action toggles line wrapCTRL-/
andALT-/
totoggle-wrap
--wrap-sign $'\t↳ '
to indent wrapped lineskill **
completion uses--wrap
to show the whole line by default instead of showing it in the preview window--info-command
option for customizing the info linePrepend the current cursor position in yellow
fzf --info-command='echo -e "\x1b[33;1m$FZF_POS\x1b[m/$FZF_INFO 💛"'
--tail
--sync
behavior--sync
is provided, fzf will not render the interface until the initial filtering and the associated actions (bound to any ofstart
,load
,result
, orfocus
) are complete.fzf will not render intermediate states
execute
andtransform
actions (it used to timeout due to lock conflict)fzf --listen --sync --bind 'focus:transform-header:curl -s localhost:$FZF_PORT?limit=0 | jq .'
offset-middle
action to place the current item is in the middle of the screenreload
orreload-sync
is bound tostart
event.fzf < /dev/null
or: | fzf
are no longer required and extraneousload
event will not fire due to the empty list.Now this will work as expected. Previously, this would print an invalid header line.
fzf < /dev/null
or: | fzf
would fix the problem, but then an extraneousload
event would fire and the header would be prematurely updated.fzf --header 'Loading ...' --header-lines 1
--bind 'start:reload:sleep 1; ps -ef'
--bind 'load:change-header:Loaded!'
v0.53.0
Compare Source
Release highlights: https://junegunn.github.io/fzf/releases/0.53.0/
All bash functions, highlighted
Ripgrep multi-line output
--tmux
option to replace fzf-tmux script and simplify distribution--tmux [center|top|bottom|left|right][,SIZE[%]][,SIZE[%]]
Center, 100% width and 70% height
Left, 30% width
Bottom, 50% height
--tail=NUM
option to limit the number of items to keep in memory. This is useful when you want to browse an endless stream of data (e.g. log stream) with fzf while limiting memory usage.Interactive filtering of a log stream
fzf --man
to see it--scroll-off
to 3, as we think it's a better defaultexecute
action now directly writes to and reads from/dev/tty
. Manual/dev/tty
redirection for interactive programs is no longer required.v0.52.1
Compare Source
v0.52.0
Compare Source
--highlight-line
to highlight the whole current line (à laset cursorline
of Vim)selected-fg
,selected-bg
, andselected-hl
fzf --border --multi --info inline-right --layout reverse --marker ▏ --pointer ▌ --prompt '▌ ' \ --highlight-line --color gutter:-1,selected-bg:238,selected-fg:146,current-fg:189
click-header
event that is triggered when the header section is clicked. When the event is triggered,$FZF_CLICK_HEADER_COLUMN
and$FZF_CLICK_HEADER_LINE
are set.$FZF_COMPLETION_{DIR,PATH}_OPTS
for separately customizing the behavior of fuzzy completionv0.51.0
Compare Source
$FZF_POS
exported to the child processes. It's the vertical position of the cursor in the list starting from 1.v0.50.0
Compare Source
Search performance optimization. You can observe 50%+ improvement in some scenarios.
$ rg --line-number --no-heading --smart-case . > $DATA
Added
jump
andjump-cancel
events that are triggered when leavingjump
modev0.49.0
Compare Source
--info=hidden
and--info=inline-right
will no longer hide the horizontal separator by default. This gives you more flexibility in customizing the layout.FZF_PREVIEW_LABEL
FZF_BORDER_LABEL
Use the current value of $FZF_PREVIEW_LABEL to determine which actions to perform
track
action totrack-current
to highlight the difference between the global tracking state set by--track
and a one-off tracking actiontrack
is still available as an aliasuntrack-current
andtoggle-track-current
actions*-current
actions are no-op when the global tracking state is setv0.48.1
Compare Source
FZF_CTRL_T_COMMAND
andFZF_ALT_C_COMMAND
to empty strings respectively when sourcing the scriptbash
zsh
fish
v0.48.0
Compare Source
Set up fzf key bindings and fuzzy completion
Set up fzf key bindings and fuzzy completion
Set up fzf key bindings
--walker=OPTS
[file][,dir][,follow][,hidden]
)file,follow,hidden
--walker-root=DIR
.
--walker-skip=DIRS
.git,node_modules
Built-in walker is only used by standalone fzf when $FZF_DEFAULT_COMMAND is not set
Walker options in $FZF_DEFAULT_OPTS
Reading from STDIN; --walker is ignored
Reading from $FZF_DEFAULT_COMMAND; --walker is ignored
v0.47.0
Compare Source
This doesn't affect you if you have
$FZF_DEFAULT_COMMAND
set.devtmpfs
orproc
typesBut fzf has had the walker code for years to tackle the performance problem on Windows. And I decided to use the same approach on different platforms as well for the benefits listed above.
$FZF_DEFAULT_OPTS_FILE
to allow managing default options in a file$FZF_DEFAULT_OPTS_FILE
$FZF_DEFAULT_OPTS
v0.46.1
Compare Source
v0.46.0
Compare Source
result
- triggered when the filtering for the current query is complete and the result list is readyresize
- triggered when the terminal size is changedFZF_LINES
FZF_COLUMNS
FZF_TOTAL_COUNT
FZF_MATCH_COUNT
FZF_SELECT_COUNT
FZF_QUERY
FZF_PROMPT
FZF_ACTION
Script to dynamically resize the preview window
1 line for info, another for prompt, and 2 more lines for preview window border
{fzf:prompt}
and{fzf:action}
--ambidouble
if your terminal displays ambiguous width characters (e.g. box-drawing characters for borders) as 2 columnsRUNEWIDTH_EASTASIAN=1
is still respected for backward compatibility, but it's recommended that you use this new option insteadv0.45.0
Compare Source
transform
action to conditionally perform a series of actionsv0.44.1
Compare Source
focus
eventv0.44.0
Compare Source
display an image using Kitty image protocol or Sixel. You can use it
like so:
fzf --preview='fzf-preview.sh {}'
v0.43.0
Compare Source
(not available on Windows)
--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.
'
v0.42.0
Compare Source
--info=right
--info=inline-right
thinblock
which uses symbols for legacy computingone eighth block elements
block
, this style is suitable when using a differentbackground color because the window is completely contained within the border.
BAT_THEME=GitHub fzf --info=right --border=thinblock --preview-window=border-thinblock \ --margin=3 --scrollbar=▏▕ --preview='bat --color=always --style=numbers {}' \ --color=light,query:238,fg:238,bg:251,bg+:249,gutter:251,border:248,preview-bg:253
terminal emulator.
v0.41.1
Compare Source
--disabled
is set anda reload is triggered by
change:reload
bindingv0.41.0
Compare Source
preview-border
andpreview-scrollbar
block
which uses block elements--scrollbar
can take two characters, one for the main window, the otherfor the preview window
v0.40.0
Compare Source
zero
event that is triggered when there's no matchConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.