pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils/fzf



Module Name:    pkgsrc
Committed By:   iquiw
Date:           Sat Feb  8 06:59:44 UTC 2025

Modified Files:
        pkgsrc/sysutils/fzf: Makefile distinfo go-modules.mk

Log Message:
fzf: update to 0.59.0

* Prioritizing file name matches
  * Added a new tiebreak option pathname for prioritizing file name matches
  * --scheme=path now sets --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,
    * but not when reload or transform action is bound to start event,
      because in that case, fzf can't be sure of the input type.
* Added --header-lines-border to display header from --header-lines with a
  separate border

    # Use --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

* click-header event now sets $FZF_CLICK_HEADER_WORD and
  $FZF_CLICK_HEADER_NTH. You can use them to implement a clickable header
  for changing the search scope using the new transform-nth action.

    # Click on the header line to limit search scope
    ps -ef | fzf --style full --layout reverse --header-lines 1 \
                 --header-lines-border bottom --no-list-border \
                 --color fg:dim,nth:regular \
                 --bind 'click-header:transform-nth(
                           echo $FZF_CLICK_HEADER_NTH
                         )+transform-prompt(
                           echo "$FZF_CLICK_HEADER_WORD> "
                         )'

  * $FZF_KEY was updated to expose the type of the click. e.g. click,
    ctrl-click, etc. You can use it to implement a more sophisticated
    behavior.
  * kill completion for bash and zsh were updated to use this feature
* Added --no-input option to completely disable and hide the input section

    # 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}'

    # 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
        '

  * You can later show the input section using show-input or toggle-input
    action, and hide it again using hide-input, or toggle-input.
* Extended {q} placeholder to support ranges. e.g. {q:1}, {q:2..}, etc.
* Added search(...) and transform-search(...) action to trigger an fzf
  search with an arbitrary query string. This can be used to extend the
  search syntax of fzf. In the following example, fzf will use the first
  word of the query to trigger ripgrep search, and use the rest of the
  query to perform fzf search within the result.

    export TEMP=$(mktemp -u)
    trap 'rm -f "$TEMP"' EXIT

    TRANSFORMER='
      rg_pat={q:1}      # The first word is passed to ripgrep
      fzf_pat={q:2..}   # The rest are passed to fzf

      if ! [[ -r "$TEMP" ]] || [[ $rg_pat != $(cat "$TEMP") ]]; then
        echo "$rg_pat" > "$TEMP"
        printf "reload:sleep 0.1; rg --column --line-number --no-heading --color=always --smart-case %q || true" "$rg_pat"
      fi
      echo "+search:$fzf_pat"
    '
    fzf --ansi --disabled \
      --with-shell 'bash -c' \
      --bind "start,change:transform:$TRANSFORMER"

* You can now bind actions to multiple keys and events at once by writing a
  comma-separated list of keys and events before the colon

    # Load 'ps -ef' output on start and reload it on CTRL-R
    fzf --bind 'start,ctrl-r:reload:ps -ef'

* --min-height option now takes a number followed by +, which tells fzf to
  show at least that many items in the list section. The default value is
  now changed to 10+.

    # You will only see the input section which takes 3 lines
    fzf --style=full --height 1% --min-height 3

    # You will see 3 items in the list section
    fzf --style full --height 1% --min-height 3+

  * Shell integration scripts were updated to use --min-height 20+ by
    default
* --header-lines will be displayed at the top in reverse-list layout
* Added bell action to ring the terminal bell

    # Press CTRL-Y to copy the current line to the clipboard and ring the bell
    fzf --bind 'ctrl-y:execute-silent(echo -n {} | pbcopy)+bell'

* Added toggle-bind action
* Bug fixes and improvements
* Fixed fish script to support fish 3.1.2 or later


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 pkgsrc/sysutils/fzf/Makefile
cvs rdiff -u -r1.34 -r1.35 pkgsrc/sysutils/fzf/distinfo
cvs rdiff -u -r1.21 -r1.22 pkgsrc/sysutils/fzf/go-modules.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/fzf/Makefile
diff -u pkgsrc/sysutils/fzf/Makefile:1.102 pkgsrc/sysutils/fzf/Makefile:1.103
--- pkgsrc/sysutils/fzf/Makefile:1.102  Sun Jan 26 07:06:58 2025
+++ pkgsrc/sysutils/fzf/Makefile        Sat Feb  8 06:59:43 2025
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.102 2025/01/26 07:06:58 iquiw Exp $
+# $NetBSD: Makefile,v 1.103 2025/02/08 06:59:43 iquiw Exp $
 
-DISTNAME=      fzf-0.58.0
+DISTNAME=      fzf-0.59.0
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=junegunn/}
 GITHUB_TAG=     v${PKGVERSION_NOREV}

Index: pkgsrc/sysutils/fzf/distinfo
diff -u pkgsrc/sysutils/fzf/distinfo:1.34 pkgsrc/sysutils/fzf/distinfo:1.35
--- pkgsrc/sysutils/fzf/distinfo:1.34   Sun Jan 26 07:06:58 2025
+++ pkgsrc/sysutils/fzf/distinfo        Sat Feb  8 06:59:43 2025
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.34 2025/01/26 07:06:58 iquiw Exp $
+$NetBSD: distinfo,v 1.35 2025/02/08 06:59:43 iquiw Exp $
 
-BLAKE2s (fzf-0.58.0.tar.gz) = 34b9df686bf4129239b42d53b10c0668a33d9c7d230dbe70a63beca20f21ea7a
-SHA512 (fzf-0.58.0.tar.gz) = c9da6e0c4c6bca7b19fa7145f4bb712721da9464c0c4ef39ffc2de0a5482b43807b1d5c6d904b47b30e2b7e7e55061811c60132da09fa61168e132779c36b350
-Size (fzf-0.58.0.tar.gz) = 313214 bytes
+BLAKE2s (fzf-0.59.0.tar.gz) = 4c5b1126c4c042121b3af7a546087210a4150b357213148a6260e7fbc85be67f
+SHA512 (fzf-0.59.0.tar.gz) = 271f6870c680f7631fd9e9ee1fe154ef617f2329b8cf3611e24d0c0bac0b3a2f9c0e1be1eda874ffa8343a9c5669607650aaf607087b73a7ff71efa9e1f9994a
+Size (fzf-0.59.0.tar.gz) = 323970 bytes
 BLAKE2s (github.com_charlievieth_fastwalk_@v_v1.0.9.mod) = c40097d4f4ad93e100ae36b295bd103784b6f696d22d9bf7278a742f99be5199
 SHA512 (github.com_charlievieth_fastwalk_@v_v1.0.9.mod) = 2088d7467b0b19cc8e8f7ac6d22793fc3c4ae696e81d1b21c563e84ce787afdc8817d43ef0a4568ea6b0a3aed5ad4fc45ea25a874be733fbaf26bbe902e869ae
 Size (github.com_charlievieth_fastwalk_@v_v1.0.9.mod) = 92 bytes
@@ -24,12 +24,12 @@ Size (github.com_gdamore_tcell_v2_@v_v2.
 BLAKE2s (github.com_google_go-cmp_@v_v0.6.0.mod) = becdef0764c43b119969e6c10646c6fafece1f936110eaa977757d2e2e381cd0
 SHA512 (github.com_google_go-cmp_@v_v0.6.0.mod) = 89e0014b0c3ffa2578ab38c237fee3d2280d6955e810c83e426d4924cec07cfc796adc45074fc237629c5ff88a93044dc406472febf1adf73deae82cb1b24b80
 Size (github.com_google_go-cmp_@v_v0.6.0.mod) = 41 bytes
-BLAKE2s (github.com_junegunn_go-shellwords_@v_v0.0.0-20240813092932-a62c48c52e97.mod) = 6009f1d96423201ae6aea4e101e45b1fc50353fae3fb0d19b2c215ea3d526b77
-SHA512 (github.com_junegunn_go-shellwords_@v_v0.0.0-20240813092932-a62c48c52e97.mod) = 
0d3d9f97c0ac4285153f150b9a027bf496013b6ff96a71e08834157926e3ac00cfd0870a3b22f24a19abc28930f753829d74fedc13437deb4fa0a891b0a6bb4a
-Size (github.com_junegunn_go-shellwords_@v_v0.0.0-20240813092932-a62c48c52e97.mod) = 50 bytes
-BLAKE2s (github.com_junegunn_go-shellwords_@v_v0.0.0-20240813092932-a62c48c52e97.zip) = abc72d7f620d78c44d15186e8c2aec482f02a648b5b887b1d3a7e0ccfb3155fa
-SHA512 (github.com_junegunn_go-shellwords_@v_v0.0.0-20240813092932-a62c48c52e97.zip) = 
be7a8669574c5b21daae5d248adfe6a43b960c53544659154326f1b49674df5df902dc97af9a4168e79fd07d42d40ff586ff4ca246eb904ba874e261157c6c55
-Size (github.com_junegunn_go-shellwords_@v_v0.0.0-20240813092932-a62c48c52e97.zip) = 10179 bytes
+BLAKE2s (github.com_junegunn_go-shellwords_@v_v0.0.0-20250127100254-2aa3b3277741.mod) = 6009f1d96423201ae6aea4e101e45b1fc50353fae3fb0d19b2c215ea3d526b77
+SHA512 (github.com_junegunn_go-shellwords_@v_v0.0.0-20250127100254-2aa3b3277741.mod) = 
0d3d9f97c0ac4285153f150b9a027bf496013b6ff96a71e08834157926e3ac00cfd0870a3b22f24a19abc28930f753829d74fedc13437deb4fa0a891b0a6bb4a
+Size (github.com_junegunn_go-shellwords_@v_v0.0.0-20250127100254-2aa3b3277741.mod) = 50 bytes
+BLAKE2s (github.com_junegunn_go-shellwords_@v_v0.0.0-20250127100254-2aa3b3277741.zip) = 6e7400c311947fb732ce0c17cef7f78146921b01dd403fceb6536cf0627d82ae
+SHA512 (github.com_junegunn_go-shellwords_@v_v0.0.0-20250127100254-2aa3b3277741.zip) = 
99e8dbd4d80c26b03e9c7fbf045e60d5f33214749e943d7f37c5480bc49e3316c89c716936d18ee33d386417c3fc912d67390d6fa87baf478116d605fd6626c4
+Size (github.com_junegunn_go-shellwords_@v_v0.0.0-20250127100254-2aa3b3277741.zip) = 10171 bytes
 BLAKE2s (github.com_lucasb-eyer_go-colorful_@v_v1.2.0.mod) = d659ba07c1540d9564017c785739d2bf124b20eaaf3ffd78fbb38efe21ec5321
 SHA512 (github.com_lucasb-eyer_go-colorful_@v_v1.2.0.mod) = 270b19446ac9a396f5ce7a000873928a44edb1457f86d294971dae08be37cd64ddb8edc0293e100ee60d56c504851aa69ab11db0b4cfd46649c5f79459e40011
 Size (github.com_lucasb-eyer_go-colorful_@v_v1.2.0.mod) = 51 bytes

Index: pkgsrc/sysutils/fzf/go-modules.mk
diff -u pkgsrc/sysutils/fzf/go-modules.mk:1.21 pkgsrc/sysutils/fzf/go-modules.mk:1.22
--- pkgsrc/sysutils/fzf/go-modules.mk:1.21      Sun Jan 26 07:06:59 2025
+++ pkgsrc/sysutils/fzf/go-modules.mk   Sat Feb  8 06:59:43 2025
@@ -1,4 +1,4 @@
-# $NetBSD: go-modules.mk,v 1.21 2025/01/26 07:06:59 iquiw Exp $
+# $NetBSD: go-modules.mk,v 1.22 2025/02/08 06:59:43 iquiw Exp $
 
 GO_MODULE_FILES+=      github.com/charlievieth/fastwalk/@v/v1.0.9.mod
 GO_MODULE_FILES+=      github.com/charlievieth/fastwalk/@v/v1.0.9.zip
@@ -7,8 +7,8 @@ GO_MODULE_FILES+=       github.com/gdamore/enc
 GO_MODULE_FILES+=      github.com/gdamore/tcell/v2/@v/v2.8.1.mod
 GO_MODULE_FILES+=      github.com/gdamore/tcell/v2/@v/v2.8.1.zip
 GO_MODULE_FILES+=      github.com/google/go-cmp/@v/v0.6.0.mod
-GO_MODULE_FILES+=      github.com/junegunn/go-shellwords/@v/v0.0.0-20240813092932-a62c48c52e97.mod
-GO_MODULE_FILES+=      github.com/junegunn/go-shellwords/@v/v0.0.0-20240813092932-a62c48c52e97.zip
+GO_MODULE_FILES+=      github.com/junegunn/go-shellwords/@v/v0.0.0-20250127100254-2aa3b3277741.mod
+GO_MODULE_FILES+=      github.com/junegunn/go-shellwords/@v/v0.0.0-20250127100254-2aa3b3277741.zip
 GO_MODULE_FILES+=      github.com/lucasb-eyer/go-colorful/@v/v1.2.0.mod
 GO_MODULE_FILES+=      github.com/lucasb-eyer/go-colorful/@v/v1.2.0.zip
 GO_MODULE_FILES+=      github.com/mattn/go-isatty/@v/v0.0.20.mod



Home | Main Index | Thread Index | Old Index