Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature request: track selection across reload-sync #3460

Open
7 of 10 tasks
yorickvP opened this issue Oct 1, 2023 · 2 comments
Open
7 of 10 tasks

feature request: track selection across reload-sync #3460

yorickvP opened this issue Oct 1, 2023 · 2 comments

Comments

@yorickvP
Copy link

yorickvP commented Oct 1, 2023

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

Info

  • OS
    • Linux
    • Mac OS X
    • Windows
    • Etc.
  • Shell
    • bash
    • zsh
    • fish

Problem / Steps to reproduce

I'm using a single selection, and I have a binding that sorts my input in various ways:

    --bind 'ctrl-s:execute-silent(track+reload-sync<'"$FZF_DEFAULT_COMMAND" | sort -hk3'>)' \

However, this loses the current selection and instead selects whatever line is at that position in the new ordering.
I would like fzf to track of the currently selected line when reload-sync completes and it's still in there. How could I achieve this?

@junegunn
Copy link
Owner

junegunn commented Oct 8, 2023

What's the exact use case?

@yorickvP
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants