Skip to content
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

Update dependency junegunn/fzf to v0.48.1 #40

Merged
merged 1 commit into from
Mar 23, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 23, 2024

Mend Renovate

This PR contains the following updates:

Package Update Change
junegunn/fzf minor 0.43.0 -> 0.48.1

Release Notes

junegunn/fzf (junegunn/fzf)

v0.48.1

Compare Source

  • CTRL-T and ALT-C bindings can be disabled by setting FZF_CTRL_T_COMMAND and FZF_ALT_C_COMMAND to empty strings respectively when sourcing the script

bash

FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= eval "$(fzf --bash)"

zsh

FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= eval "$(fzf --zsh)"

fish

fzf --fish | FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= source
```
- Setting the variables after sourcing the script will have no effect
  • Bug fixes

v0.48.0

Compare Source

  • Shell integration scripts are now embedded in the fzf binary. This simplifies the distribution, and the users are less likely to have problems caused by using incompatible scripts and binaries.
    • bash

Set up fzf key bindings and fuzzy completion

  eval "$(fzf --bash)"
  ```
- zsh
  ```sh

Set up fzf key bindings and fuzzy completion

  eval "$(fzf --zsh)"
  ```
- fish
  ```fish

Set up fzf key bindings

  fzf --fish | source
  ```
  • Added options for customizing the behavior of the built-in walker
    Option Description Default
    --walker=OPTS Walker options ([file][,dir][,follow][,hidden]) file,follow,hidden
    --walker-root=DIR Root directory from which to start walker .
    --walker-skip=DIRS Comma-separated list of directory names to skip .git,node_modules
    • Examples

Built-in walker is only used by standalone fzf when $FZF_DEFAULT_COMMAND is not set

    unset FZF_DEFAULT_COMMAND

    fzf # default: --walker=file,follow,hidden --walker-root=. --walker-skip=.git,node_modules
    fzf --walker=file,dir,hidden,follow --walker-skip=.git,node_modules,target

Walker options in $FZF_DEFAULT_OPTS

    export FZF_DEFAULT_OPTS="--walker=file,dir,hidden,follow --walker-skip=.git,node_modules,target"
    fzf

Reading from STDIN; --walker is ignored

    seq 100 | fzf --walker=dir

Reading from $FZF_DEFAULT_COMMAND; --walker is ignored

    export FZF_DEFAULT_COMMAND='seq 100'
    fzf --walker=dir
    ```
  • Shell integration scripts have been updated to use the built-in walker with these new options and they are now much faster out of the box.

v0.47.0

Compare Source

  • Replaced "the default find command" with a built-in directory walker to simplify the code and to achieve better performance and consistent behavior across platforms.
    This doesn't affect you if you have $FZF_DEFAULT_COMMAND set.
    • Breaking changes:
      • Unlike the previous "find" command, the new traversal code will list hidden files, but hidden directories will still be ignored
      • No filtering of devtmpfs or proc types
      • Traversal is parallelized, so the order of the entries will be different each time
    • You may wonder why fzf implements directory walker anyway when it's a filter program following the Unix philosophy.
      But 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.
    • Built-in walker is using the excellent charlievieth/fastwalk library, which easily outperforms its competitors and supports safely following symlinks.
  • Added $FZF_DEFAULT_OPTS_FILE to allow managing default options in a file
    • See #​3618
    • Option precedence from lower to higher
      1. Options read from $FZF_DEFAULT_OPTS_FILE
      2. Options from $FZF_DEFAULT_OPTS
      3. Options from command-line arguments
  • Bug fixes and improvements

v0.46.1

Compare Source

v0.46.0

Compare Source

  • Added two new events
    • result - triggered when the filtering for the current query is complete and the result list is ready
    • resize - triggered when the terminal size is changed
  • fzf now exports the following environment variables to the child processes
    Variable Description
    FZF_LINES Number of lines fzf takes up excluding padding and margin
    FZF_COLUMNS Number of columns fzf takes up excluding padding and margin
    FZF_TOTAL_COUNT Total number of items
    FZF_MATCH_COUNT Number of matched items
    FZF_SELECT_COUNT Number of selected items
    FZF_QUERY Current query string
    FZF_PROMPT Prompt string
    FZF_ACTION The name of the last action performed
    • This allows you to write sophisticated transformations like so

Script to dynamically resize the preview window

transformer='

1 line for info, another for prompt, and 2 more lines for preview window border

  lines=$(( FZF_LINES - FZF_MATCH_COUNT - 4 ))
  if [[ $FZF_MATCH_COUNT -eq 0 ]]; then
    echo "change-preview-window:hidden"
  elif [[ $lines -gt 3 ]]; then
    echo "change-preview-window:$lines"
  elif [[ $FZF_PREVIEW_LINES -ne 3 ]]; then
    echo "change-preview-window:3"
  fi
'
seq 10000 | fzf --preview 'seq {} 10000' --preview-window up \
                --bind "result:transform:$transformer" \
                --bind "resize:transform:$transformer"
```
  • And we're phasing out {fzf:prompt} and {fzf:action}
  • Changed mattn/go-runewidth dependency to rivo/uniseg for accurate results
    • Set --ambidouble if your terminal displays ambiguous width characters (e.g. box-drawing characters for borders) as 2 columns
    • RUNEWIDTH_EASTASIAN=1 is still respected for backward compatibility, but it's recommended that you use this new option instead
  • Bug fixes

v0.45.0

Compare Source

  • Added transform action to conditionally perform a series of actions

v0.44.1

Compare Source

  • Fixed crash when preview window is hidden on focus event

v0.44.0

Compare Source

  • (Experimental) Sixel image support in preview window (not available on Windows)
    • bin/fzf-preview.sh is added to demonstrate how to
      display an image using Kitty image protocol or Sixel. You can use it
      like so:
      fzf --preview='fzf-preview.sh {}'
  • (Experimental) iTerm2 inline image protocol support in preview window (not available on Windows)

Configuration

📅 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/junegunn-fzf-0.x branch from 8de114e to dd649e2 Compare March 23, 2024 11:50
@cappyzawa cappyzawa enabled auto-merge (squash) March 23, 2024 11:51
@renovate renovate bot force-pushed the renovate/junegunn-fzf-0.x branch 2 times, most recently from 4b6f45c to c706a1a Compare March 23, 2024 11:56
@renovate renovate bot force-pushed the renovate/junegunn-fzf-0.x branch from c706a1a to 5b3134a Compare March 23, 2024 12:01
@cappyzawa cappyzawa merged commit f955172 into master Mar 23, 2024
3 checks passed
@cappyzawa cappyzawa deleted the renovate/junegunn-fzf-0.x branch March 23, 2024 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant