Skip to content
Discussion options

You must be logged in to vote

That means this command fzf --bind 'tab:transform-query(echo {})' allows me to change the query string (user input) to the current item by pressing the tab key, and it works as expected.

While I could’ve offered to you this rather simple solution I preferred to show you what’s possible in case you’d decide on a more complex transformation which required lua code.

But I don't understand how your code works (even it works), could you show me a little bit more explanation if possible?:)

Your understanding is accurate, the code is simpler than you think, add debug=true and you’ll see the fzf command line arguments generated by fzf-lua, stringify_data returns a shell command with the field…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wisonye
Comment options

@ibhagwan
Comment options

Answer selected by wisonye
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants