junegunn/fzf

`toggle-track` could not work

liangkarl opened this issue · 2 comments

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues

Output of fzf --version

0.39.0 (2023040)

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

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

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.01 or later?

Footnotes

  1. fzf/CHANGELOG.md at master · junegunn/fzf · GitHub

Wow, thank you! Problem solved.