[Q] How to print-query and continuous-trigger at the same time?
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.
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.