Subject: CVS commit: pkgsrc/sysutils/fzf
From: Iku Iwasa
Date: 2024-03-23 07:34:00
Message id: 20240323063400.DA47BFA2C@cvs.NetBSD.org

Log Message:
fzf: update to 0.48.1

0.48.1

* 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

0.48.0

* 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

       # Set up fzf key bindings and fuzzy completion
       eval "$(fzf --zsh)"

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

0.47.0

* 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
  * Option precedence from lower to higher
    a. Options read from $FZF_DEFAULT_OPTS_FILE
    b. Options from $FZF_DEFAULT_OPTS
    c. Options from command-line arguments
* Bug fixes and improvements

Files:
RevisionActionfile
1.84modifypkgsrc/sysutils/fzf/Makefile
1.22modifypkgsrc/sysutils/fzf/distinfo
1.10modifypkgsrc/sysutils/fzf/go-modules.mk