junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
63.4k stars 2.36k forks source link

`toggle-track` could not work #3711

Closed liangkarl closed 4 months ago

liangkarl commented 4 months ago

Checklist

Output of fzf --version

0.39.0 (2023040)

OS

Shell

Problem / Steps to reproduce

Hi,

I've read fzf manual and used the toggle-track in --bind. However, it always report unknown action: toggle-track. Does anyone know what happened?

What I verified is like this

[00:00:07] 2 karl@DENG-KARLL dotfile:unstable $ FZF_DEFAULT_OPTS=
[00:00:17] 0 karl@DENG-KARLL dotfile:unstable $ fzf --bind='ctrl-t:toggle-sort'
[00:00:03] 130 karl@DENG-KARLL dotfile:unstable $ fzf --bind='ctrl-t:toggle-track'
unknown action: toggle-track
[00:00:03] 2 karl@DENG-KARLL dotfile:unstable $ fzf --bind='ctrl-t:track'
unknown action: track
[00:00:04] 2 karl@DENG-KARLL dotfile:unstable $ fzf --version
0.39.0 (2023040)

The manual write this

           toggle-search                (toggle search functionality)
           toggle-sort
           toggle-track
           toggle+up                    btab    (shift-tab)
           track                        (track the current item; automatically disabled if focus changes)
           transform-border-label(...)  (transform border label using an external command)
           transform-header(...)        (transform header using an external command)

Thanks

LangLangBart commented 4 months ago

0.39.0 (2023040)

I've read fzf manual and used the toggle-track in --bind. However, it always report unknown action: toggle-track. Does anyone know what happened?

Could you try version 0.40.0[^1] or later? [^1]: fzf/CHANGELOG.md at master · junegunn/fzf · GitHub

liangkarl commented 4 months ago

Wow, thank you! Problem solved.