fzf-tab icon indicating copy to clipboard operation
fzf-tab copied to clipboard

[Q] How to print-query and continuous-trigger at the same time?

Open ballattacker opened this issue 4 years ago • 1 comments

Describe your question

I have this in my .zshrc

zstyle ':fzf-tab:*' print-query alt-enter
zstyle ':fzf-tab:*' continuous-trigger alt-enter

But hitting alt-enter only print my current query. What I want to do is to also trigger a new completion menu immediately, so I don't have to hit alt-enter and then tab.

And also how do I bind multiple keys to a command? For example

zstyle ':fzf-tab:*' print-query alt-enter shift-enter

won't work. I get an error unsupported key: alt-enter shift-enter. Where as

zstyle ':fzf-tab:*' continuous-trigger alt-enter
zstyle ':fzf-tab:*' continuous-trigger shift-enter

will overwrite alt-enter with shift-enter.

And thank you so much for this wonderful plugin. My terminal life is just plain zsh with fzf-tab now.

ballattacker avatar Nov 10 '21 07:11 ballattacker

zstyle ':fzf-tab:' print-query alt-enter zstyle ':fzf-tab:' continuous-trigger alt-enter

But hitting alt-enter only print my current query. What I want to do is to also trigger a new completion menu immediately, so I don't have to hit alt-enter and then tab.

I don't understand why you'd want this. print-query just exits fzf-tab and insert what ever was typed into fzf into $RBUFFER Why aren't you just using zstyle ':fzf-tab:*' continuous-trigger alt-enter?

And if that doesn't work, unset print-query with" zstyle ':fzf-tab:*' print-query '' before your continuous-trigger zstyle line.

Sneethe avatar Jun 12 '25 09:06 Sneethe