[BUG] Disable continuous-trigger when working with pass
NicolasWebDev opened this issue · comments
Describe the bug
The pass command works with passwords indicated as files within directories.
I have the following line in my .zshrc:
zstyle ':fzf-tab:*pass*' continuous-trigger ''
But I can't disable continuous-trigger for some subcommands. And somehow completion with continuous-trigger is not working, so when putting '/' at the end of the first directory, completion goes back to the root.
If I use ctrl-x h I get the following contexts:
❯ pass insert
tags in context :completion::complete:options:
options (_arguments _pass)
tags in context :completion::complete:pass-insert:
options (_arguments _pass)
messages (_message _arguments _pass)
values (_values
_pass_complete_entries_helper
_pass_complete_entries_with_subdirs
_pass
_normal)
tags in context :completion::complete:values:
values (_values
_pass_complete_entries_helper
_pass_complete_entries_with_subdirs
_pass
_normal)
Continuous trigger is not disabled, I guess because there are the contexts :completion::complete:options:
and :completion::complete:values:
as well. I understand that both of them are used extensively, so I wouldn't like to disable continuous-triggers for them.
Is there a way to indicate that if one of the contexts matches, then disable the continuous trigger?
To Reproduce
Steps to reproduce the behavior:
- Type 'pass insert '
- Press Tab
- Fill any of the directories
- Press /
- Continuous-trigger gets run
Expected behavior
I expect continuous trigger to be disabled.
Screenshots
Before typing /
After typing /, it got back to the root of the whole hierarchy
Environment:
- OS: Arch Linux
- zsh version: zsh 5.9 (x86_64-pc-linux-gnu)