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 Jul 13 09:23:44 UTC 2024

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

Log Message:
fzf: update to 0.54.0

0.54.0

* Implemented line wrap of long items
  * --wrap option enables line wrap
  * --wrap-sign customizes the sign for wrapped lines (default: ↳ )
  * toggle-wrap action toggles line wrap

        history | fzf --tac --wrap --bind 'ctrl-/:toggle-wrap' --wrap-sign $'\t↳ '

  * fzf by default binds CTRL-/ and ALT-/ to toggle-wrap

* Updated shell integration scripts to leverage line wrap
  * CTRL-R binding includes --wrap-sign $'\t↳ ' to indent wrapped lines
  * kill ** completion uses --wrap to show the whole line by default
    instead of showing it in the preview window
* Added --info-command option for customizing the info line

    # Prepend the current cursor position in yellow
    fzf --info-command='echo -e "\x1b[33;1m$FZF_POS\x1b[m/$FZF_INFO 💛"'

  * $FZF_INFO is set to the original info text
  * ANSI color codes are supported

* Pointer and marker signs can be set to empty strings

    # Minimal style
    fzf --pointer '' --marker '' --prompt '' --info hidden

* Better cache management and improved rendering for --tail
* Improved --sync behavior
  * When --sync is provided, fzf will not render the interface until the
    initial filtering and the associated actions (bound to any of start,
    load, result, or focus) are complete.

        # fzf will not render intermediate states
        (sleep 1; seq 1000000; sleep 1) |
          fzf --sync --query 5 --listen --bind start:up,load:up,result:up,focus:change-header:Ready

* GET endpoint is now available from execute and transform actions (it used
  to timeout due to lock conflict)

    fzf --listen --sync --bind 'focus:transform-header:curl -s localhost:$FZF_PORT?limit=0 | jq .'

* Added offset-middle action to place the current item is in the middle of
  the screen
* fzf will not start the initial reader when reload or reload-sync is bound
  to start event. fzf < /dev/null or : | fzf are no longer required and
  extraneous load 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 extraneous
    # `load` 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!'

* Fixed mouse support on Windows
* Fixed crash when using --tiebreak=end with very long items
* zsh 5.0 compatibility (thanks to @LangLangBart)
* Fixed --walker-skip to also skip symlinks to directories
* Fixed result event not fired when input stream is not complete
* Built-in reader of the Windows binary will print forward slashes on MSYS
  and WSL
* New tags will have v prefix so that they are available on
  https://proxy.golang.org/

0.53.0

* Multi-line display
  * See Processing multi-line items
  * fzf can now display multi-line items

      # All bash functions, highlighted
      declare -f | perl -0777 -pe 's/^}\n/}\0/gm' |
        bat --plain --language bash --color always |
        fzf --read0 --ansi --reverse --multi --highlight-line

      # Ripgrep multi-line output
      rg --pretty bash | perl -0777 -pe 's/\n\n/\n\0/gm' |
        fzf --read0 --ansi --multi --highlight-line --reverse --tmux 70%

    * To disable multi-line display, use --no-multi-line

* CTRL-R bindings of bash, zsh, and fish have been updated to leverage
  multi-line display
* The default --pointer and --marker have been changed from > to Unicode
  bar characters as they look better with multi-line items
* Added --marker-multi-line to customize the select marker for multi-line
  entries with the default set to ╻┃╹

    ╻First line
    ┃...
    ╹Last line

* Native tmux integration
  * Added --tmux option to replace fzf-tmux script and simplify
    distribution

      # --tmux [center|top|bottom|left|right][,SIZE[%]][,SIZE[%]]
      # Center, 100% width and 70% height
      fzf --tmux 100%,70% --border horizontal --padding 1,2

      # Left, 30% width
      fzf --tmux left,30%

      # Bottom, 50% height
      fzf --tmux bottom,50%

  * To keep the implementation simple, it only uses popups. You need tmux
    3.3 or later.

* To use --tmux in Vim plugin:

    let g:fzf_layout = { 'tmux': '100%,70%' }

* Added support for endless input streams
  * See Browsing log stream with fzf
  * Added --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
      tail -f *.log | fzf --tail 100000 --tac --no-sort --exact

* Better Windows Support
  * fzf now works on Git bash (mintty) out of the box via winpty
    integration
  * Many fixes and improvements for Windows

* man page is now embedded in the binary; fzf --man to see it
* Changed the default --scroll-off to 3, as we think it's a better default
* Process started by execute action now directly writes to and reads from
  /dev/tty. Manual /dev/tty redirection for interactive programs is no
  longer required.

    # Vim will work fine without /dev/tty redirection
    ls | fzf --bind 'space:execute:vim {}' > selected

* Added: print(...) action to queue an arbitrary string to be printed on
  exit. This was mainly added to work around the limitation of --expect where
  it's not compatible with --bind on the same key and it would ignore other
  actions bound to it.

    # This doesn't work as expected because --expect is not compatible with --bind
    fzf --multi --expect ctrl-y --bind 'ctrl-y:select-all'

    # This is something you can do instead
    fzf --multi --bind 'enter:print()+accept,ctrl-y:select-all+print(ctrl-y)+accept'

* We also considered making them compatible, but realized that some users
  may have been relying on the current behavior.
* NO_COLOR: environment variable is now respected. If the variable is set,
  fzf defaults to --no-color unless otherwise specified.


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 pkgsrc/sysutils/fzf/Makefile
cvs rdiff -u -r1.25 -r1.26 pkgsrc/sysutils/fzf/distinfo
cvs rdiff -u -r1.13 -r1.14 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.91 pkgsrc/sysutils/fzf/Makefile:1.92
--- pkgsrc/sysutils/fzf/Makefile:1.91   Wed Jul  3 06:59:32 2024
+++ pkgsrc/sysutils/fzf/Makefile        Sat Jul 13 09:23:44 2024
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.91 2024/07/03 06:59:32 bsiegert Exp $
+# $NetBSD: Makefile,v 1.92 2024/07/13 09:23:44 iquiw Exp $
 
-DISTNAME=      fzf-0.52.1
-PKGREVISION=   3
+DISTNAME=      fzf-0.54.0
 CATEGORIES=    sysutils
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=junegunn/}
+GITHUB_TAG=     v${PKGVERSION_NOREV}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/junegunn/fzf/

Index: pkgsrc/sysutils/fzf/distinfo
diff -u pkgsrc/sysutils/fzf/distinfo:1.25 pkgsrc/sysutils/fzf/distinfo:1.26
--- pkgsrc/sysutils/fzf/distinfo:1.25   Sun May 19 02:35:37 2024
+++ pkgsrc/sysutils/fzf/distinfo        Sat Jul 13 09:23:44 2024
@@ -1,14 +1,14 @@
-$NetBSD: distinfo,v 1.25 2024/05/19 02:35:37 iquiw Exp $
+$NetBSD: distinfo,v 1.26 2024/07/13 09:23:44 iquiw Exp $
 
-BLAKE2s (fzf-0.52.1.tar.gz) = ed8a4a2fb2e3c92901771774e2fe3e51d7fe6b04970da09e27e3e162099bb8d2
-SHA512 (fzf-0.52.1.tar.gz) = 90b70c0fff41605ca647b02b64a6906e113e6cc377a51db8771806da58463ab87512294b430243b0263a3e800d64e652b6b2580b0b8205890f235d3b64c5e763
-Size (fzf-0.52.1.tar.gz) = 274817 bytes
-BLAKE2s (github.com_charlievieth_fastwalk_@v_v1.0.3.mod) = b89cd6cce3e61bdc68142ee85c6b6497e8238152ea9c02d6de09deab505ed752
-SHA512 (github.com_charlievieth_fastwalk_@v_v1.0.3.mod) = 467d763be7a68aae310e2e65d562711ae45ec4ccf9e76fa17af4518f1383dbb8fdd719e72a3249cc78da67c5e06d08dfa99fddfa1361eaf7b5a51778f0b870a0
-Size (github.com_charlievieth_fastwalk_@v_v1.0.3.mod) = 49 bytes
-BLAKE2s (github.com_charlievieth_fastwalk_@v_v1.0.3.zip) = fa51a9a486b537e7a3580d623bb54d45a22b7294a0001fffe3ccc91e69ba578b
-SHA512 (github.com_charlievieth_fastwalk_@v_v1.0.3.zip) = 13714ff9c6b5948ad33dddfc4a8ab15f35717138d09a4d614ce159313dd981af6c17caecdd6b7640aa019f01963b21eb203449324274bd4fc807a2e151733458
-Size (github.com_charlievieth_fastwalk_@v_v1.0.3.zip) = 58728 bytes
+BLAKE2s (fzf-0.54.0.tar.gz) = c2c8ede17fe28773cd17c095e3df8e551db31956f1c93946eb3e1c92ade60b9f
+SHA512 (fzf-0.54.0.tar.gz) = ed136c12142ceb7fabb39bd8f2d5e408efc44d17fb94514d9677a0a47013dc488bafeb657b7d448533d487091db4bd4194510e99493f8b05b007560d8c59ee2c
+Size (fzf-0.54.0.tar.gz) = 291944 bytes
+BLAKE2s (github.com_charlievieth_fastwalk_@v_v1.0.7-0.20240703190418-87029d931815.mod) = e8a7372dc8ccd4b8314db801bc0fa8a4cd56b7a1d0e751ff5b17fd818c736d51
+SHA512 (github.com_charlievieth_fastwalk_@v_v1.0.7-0.20240703190418-87029d931815.mod) = 
248041dfa704d79f56df26574e07ab2fe143d1b038c06ffcbcc6966039a83afdf6ceb6bc52f43b10db424445ec9999298d07b5a4af58b7cbe49ef5eddcaf5659
+Size (github.com_charlievieth_fastwalk_@v_v1.0.7-0.20240703190418-87029d931815.mod) = 49 bytes
+BLAKE2s (github.com_charlievieth_fastwalk_@v_v1.0.7-0.20240703190418-87029d931815.zip) = 653601e0a14845f1b7da097fbc33764f76956b6333983cef4645fccc468f6dc1
+SHA512 (github.com_charlievieth_fastwalk_@v_v1.0.7-0.20240703190418-87029d931815.zip) = 
ff651fa55e490da80a9e06f32352b078852e0acd973bb4986f8841cdac948230ffb8a9263aad5ffd5d31f5656dd2e94d009e5ddc91e1fbb1610f6fcb3b527acd
+Size (github.com_charlievieth_fastwalk_@v_v1.0.7-0.20240703190418-87029d931815.zip) = 61094 bytes
 BLAKE2s (github.com_gdamore_encoding_@v_v1.0.0.mod) = d98306119aa62bd2bb2dc3fd0a93976e35a5396dd7d50fb0fc3eb0c157fb88c2
 SHA512 (github.com_gdamore_encoding_@v_v1.0.0.mod) = fb153c4e481c073133f0c933c67eba8a1f160ab146921f2c77125b6ff5c348cea57e3a5701a557c8db2212d32e3cba1c09b9509210660c17b66c2a45ba97cb75
 Size (github.com_gdamore_encoding_@v_v1.0.0.mod) = 77 bytes
@@ -111,12 +111,12 @@ Size (golang.org_x_sys_@v_v0.0.0-2022072
 BLAKE2s (golang.org_x_sys_@v_v0.17.0.mod) = 546db01fa3b030f3f3b5f8d3674bc29d1f026a60a57e474fff3e1cd44fe694a1
 SHA512 (golang.org_x_sys_@v_v0.17.0.mod) = ec229018bf6fa169913d0c66821fc296766b8a71720123e8d8cfcf5b8b8da110e338d03b8233b1224b8586ea9d9e4231b9720c1f806d4be2523413c521acf97b
 Size (golang.org_x_sys_@v_v0.17.0.mod) = 33 bytes
-BLAKE2s (golang.org_x_sys_@v_v0.20.0.mod) = 546db01fa3b030f3f3b5f8d3674bc29d1f026a60a57e474fff3e1cd44fe694a1
-SHA512 (golang.org_x_sys_@v_v0.20.0.mod) = ec229018bf6fa169913d0c66821fc296766b8a71720123e8d8cfcf5b8b8da110e338d03b8233b1224b8586ea9d9e4231b9720c1f806d4be2523413c521acf97b
-Size (golang.org_x_sys_@v_v0.20.0.mod) = 33 bytes
-BLAKE2s (golang.org_x_sys_@v_v0.20.0.zip) = bfb5cf5435aaa8f141d117d7d1af94aa21672b9143c2d05bdcd2e6030c071ac5
-SHA512 (golang.org_x_sys_@v_v0.20.0.zip) = 77034cf37c802a12f33c55cf3e41f80f7f1393ca65128e4622aef8e705b0627f877c13e25b6fc7792cdc2ac31ce36d1c7a434b52fe1e665ace7d45ee949091a1
-Size (golang.org_x_sys_@v_v0.20.0.zip) = 1956163 bytes
+BLAKE2s (golang.org_x_sys_@v_v0.22.0.mod) = 546db01fa3b030f3f3b5f8d3674bc29d1f026a60a57e474fff3e1cd44fe694a1
+SHA512 (golang.org_x_sys_@v_v0.22.0.mod) = ec229018bf6fa169913d0c66821fc296766b8a71720123e8d8cfcf5b8b8da110e338d03b8233b1224b8586ea9d9e4231b9720c1f806d4be2523413c521acf97b
+Size (golang.org_x_sys_@v_v0.22.0.mod) = 33 bytes
+BLAKE2s (golang.org_x_sys_@v_v0.22.0.zip) = 0e195c55b2bfc0017f2ee68e9746508bc5c1123bbda6ce3ed74728cb288d842d
+SHA512 (golang.org_x_sys_@v_v0.22.0.zip) = cf86b26be9efd54690b748e14fdf9a46cf1f118870c1605f3c3e894d5aea15e08c8fe69d0a461cfa9c7ecba7052236d1128158156ae0f004a1d1b3c004dcf464
+Size (golang.org_x_sys_@v_v0.22.0.zip) = 1959283 bytes
 BLAKE2s (golang.org_x_sys_@v_v0.5.0.mod) = 66613eb38a59b8a7f75e1aaeb294a1c4ea290d4e9ae699137566025e50ed741c
 SHA512 (golang.org_x_sys_@v_v0.5.0.mod) = 85e511b1261c1935f5ee4754ad31d1d946f9e10f0af9905f44c4348d6ce5104319c03fb38517dde616698f6487b0c62788cfa96bc0ffb3b6db80accd7e552655
 Size (golang.org_x_sys_@v_v0.5.0.mod) = 33 bytes
@@ -132,12 +132,12 @@ Size (golang.org_x_term_@v_v0.0.0-202109
 BLAKE2s (golang.org_x_term_@v_v0.17.0.mod) = d186e45ff945967b6e9a6c94ee97a07c3d547a2e7957e5ccc00d38e7991827cb
 SHA512 (golang.org_x_term_@v_v0.17.0.mod) = fd43b7d38d8700f0238fe367383336925e796753f8960623061e6346a7e338b91103e4b7940bba3a6b3678f8f1c8ed054aa225ed289ce9712b9501be0de1f187
 Size (golang.org_x_term_@v_v0.17.0.mod) = 68 bytes
-BLAKE2s (golang.org_x_term_@v_v0.20.0.mod) = 6d24927c8d2966e9e6010caff50d5361836dd18f69852bed5996fee07a6097fe
-SHA512 (golang.org_x_term_@v_v0.20.0.mod) = 62a68fa198061738355ac170ea591c54c6c2b99a25590f4760981522591b496b5eee3bd34766e5c56d7d6d786b68054dbf11edfb72328ef6f5ab09b12486fb10
-Size (golang.org_x_term_@v_v0.20.0.mod) = 68 bytes
-BLAKE2s (golang.org_x_term_@v_v0.20.0.zip) = b291c5a0fecac0e042f38e988eb6cf5862bb0ab73d373adc2b4dad4c9226b9e4
-SHA512 (golang.org_x_term_@v_v0.20.0.zip) = 4edd60133c83fe0522242de779b94f0cfee6d6f575b37b392eeacdd3b5c5699968b58c7642cd87a668b0ebc4ed5740dafa927346a4fd9b87d35105d9e30eb818
-Size (golang.org_x_term_@v_v0.20.0.zip) = 19883 bytes
+BLAKE2s (golang.org_x_term_@v_v0.22.0.mod) = 3d1cf3ba9ef9bb70e6367ef242cd5cf5618a0964627270a0adf356b6d0744e0c
+SHA512 (golang.org_x_term_@v_v0.22.0.mod) = d0978a65360d3d94cb645f13a825dc71aa9ef2799191adb302b23de80a28f6197b4b8bf1cd3d5422ac2e4626e99025d6a13f87bedc4a288d8d018cbf7cf26108
+Size (golang.org_x_term_@v_v0.22.0.mod) = 68 bytes
+BLAKE2s (golang.org_x_term_@v_v0.22.0.zip) = d837b7db85c2567c7c4f9681f3259f0a7a7b38edaaad1934d96ae21f41c78eb0
+SHA512 (golang.org_x_term_@v_v0.22.0.zip) = 97c701d0ef735144946162d2b4001506bdd11c4dd949d241e46bee30ef73ee9129f193dc9c4d5bf901e4424980448d072d96e161661a7b110d0720aabc5f74f0
+Size (golang.org_x_term_@v_v0.22.0.zip) = 19883 bytes
 BLAKE2s (golang.org_x_term_@v_v0.5.0.mod) = aa9178ce8f4a13282fdb39fa4cf1c641a73f8e915e3b849e8a57cf6705c8cc34
 SHA512 (golang.org_x_term_@v_v0.5.0.mod) = 88ef95fca01c9d194993ea0e3853b31c1e3862defedbcf111624af86eeea63099af727b817ebcb3d9ae926692882e08a41fd72f8b8687b5527b2d9115ac55d3a
 Size (golang.org_x_term_@v_v0.5.0.mod) = 67 bytes

Index: pkgsrc/sysutils/fzf/go-modules.mk
diff -u pkgsrc/sysutils/fzf/go-modules.mk:1.13 pkgsrc/sysutils/fzf/go-modules.mk:1.14
--- pkgsrc/sysutils/fzf/go-modules.mk:1.13      Sun May 19 02:35:37 2024
+++ pkgsrc/sysutils/fzf/go-modules.mk   Sat Jul 13 09:23:44 2024
@@ -1,7 +1,7 @@
-# $NetBSD: go-modules.mk,v 1.13 2024/05/19 02:35:37 iquiw Exp $
+# $NetBSD: go-modules.mk,v 1.14 2024/07/13 09:23:44 iquiw Exp $
 
-GO_MODULE_FILES+=      github.com/charlievieth/fastwalk/@v/v1.0.3.mod
-GO_MODULE_FILES+=      github.com/charlievieth/fastwalk/@v/v1.0.3.zip
+GO_MODULE_FILES+=      github.com/charlievieth/fastwalk/@v/v1.0.7-0.20240703190418-87029d931815.mod
+GO_MODULE_FILES+=      github.com/charlievieth/fastwalk/@v/v1.0.7-0.20240703190418-87029d931815.zip
 GO_MODULE_FILES+=      github.com/gdamore/encoding/@v/v1.0.0.mod
 GO_MODULE_FILES+=      github.com/gdamore/encoding/@v/v1.0.0.zip
 GO_MODULE_FILES+=      github.com/gdamore/tcell/v2/@v/v2.7.4.mod
@@ -36,15 +36,15 @@ GO_MODULE_FILES+=   golang.org/x/sys/@v/v0
 GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.0.0-20220520151302-bc2c85ada10a.mod
 GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.0.0-20220722155257-8c9f86f7a55f.mod
 GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.17.0.mod
-GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.20.0.mod
-GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.20.0.zip
+GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.22.0.mod
+GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.22.0.zip
 GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.5.0.mod
 GO_MODULE_FILES+=      golang.org/x/sys/@v/v0.6.0.mod
 GO_MODULE_FILES+=      golang.org/x/term/@v/v0.0.0-20201126162022-7de9c90e9dd1.mod
 GO_MODULE_FILES+=      golang.org/x/term/@v/v0.0.0-20210927222741-03fcf44c2211.mod
 GO_MODULE_FILES+=      golang.org/x/term/@v/v0.17.0.mod
-GO_MODULE_FILES+=      golang.org/x/term/@v/v0.20.0.mod
-GO_MODULE_FILES+=      golang.org/x/term/@v/v0.20.0.zip
+GO_MODULE_FILES+=      golang.org/x/term/@v/v0.22.0.mod
+GO_MODULE_FILES+=      golang.org/x/term/@v/v0.22.0.zip
 GO_MODULE_FILES+=      golang.org/x/term/@v/v0.5.0.mod
 GO_MODULE_FILES+=      golang.org/x/text/@v/v0.14.0.mod
 GO_MODULE_FILES+=      golang.org/x/text/@v/v0.14.0.zip



Home | Main Index | Thread Index | Old Index