Hi @marlonrichert ! I've been really enjoying your work! I had a question:
I'd like to be able to use
zstyle ':autocomplete:tab:*' completion insert
and
zstyle ':autocomplete:tab:*' completion fzf
simultaneously.
I'm not sure how to set this up (or if it's even possible). I know you can chain options in ':autocomplete:space:*' like so
zstyle ':autocomplete:space:*' magic correct-word expand-history
though this doesn't seem to work for ':autocomplete:tab:*'.
The ability to chain commands like so
zstyle ':autocomplete:tab:*' completion insert fzf
and have both the insert and fzf features working.
I like the idea. The tab completion code, however, is a lot more complex than the magic space code. I'll have to think about it how this should work. 馃檪
No problem, and of course no pressure!
Mostly wanted to make sure this wasn't something that was available already, and that I was just getting the zstyle syntax incorrect.
Thanks for your project! 馃
I've tested this with respect to Tab being used to start menu selection. i.e. zstyle ':autocomplete:tab:*' widget-style menu-complete
While tab and shift-tab do cycle the entries, and the entries are listed, the selected entry is not highlighted as it is if you start menu selection with Ctrl-Space. (EDIT: see next comment)
My problem is that I don't RTM carefully enough! Sorry! Works perfectly with zstyle ':autocomplete:tab:*' widget-style menu-selection!
@paw-lu Have you tried it yet?
Just updated and tried to give it a shot, but it ended up locking up my terminal on start for some reason after updating.
Had these in my .zshrc
zstyle ':autocomplete:tab:*' completion fzf
zstyle ':autocomplete:*' fuzzy-search off
zstyle ':autocomplete:*' magic off
Eventually I get this message:
Last login: Fri Sep 18 09:19:27 on ttys010
.autocomplete.patch:37: maximum nested function level reached; increase FUNCNEST?
.autocomplete.patch:37: maximum nested function level reached; increase FUNCNEST?
I'll investigate this a bit more later.
Did a clean reinstall and things seem to be okay now, can't reproduce the original issue.
Seems the issue returned. I'll have to test out these releases later. Something is up.
one issue is that 005da66 seems to mess with zsh-autosuggestions. I'll open a separate issue for that.
Thanks for notifying me, and again, thanks for the project!
Available now on master.
It's still not obvious to me how combine these settings.
If I wanted to combine fzf and insert-unambiguous would the proper way to combine them be
zstyle ':autocomplete:tab:*' fzf yes insert-unambiguous yes
If so I'm not getting the expected behavior. But I want to make sure I'm combining correctly before I file an issue.
No, that's not right. You have to paste the literal lines from the examples:
zstyle ':autocomplete:tab:*' fzf yes
zstyle ':autocomplete:tab:*' insert-unambiguous yes
The syntax is
zstyle <namespace> <setting> <value>
Thanks for the help @marlonrichert !
I had tried that before as well, and it also did not work out for me. I think I found my issue, unfortunately the behavior is triggered by sourcing Oh My Zsh.
Filed #118