Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Disable continuous-trigger when working with pass #367

Open
NicolasWebDev opened this issue Apr 29, 2023 · 0 comments
Open

[BUG] Disable continuous-trigger when working with pass #367

NicolasWebDev opened this issue Apr 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@NicolasWebDev
Copy link

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:

  1. Type 'pass insert '
  2. Press Tab
  3. Fill any of the directories
  4. Press /
  5. Continuous-trigger gets run

Expected behavior

I expect continuous trigger to be disabled.

Screenshots

Before typing /
Screenshot from 2023-04-28 20-38-29
After typing /, it got back to the root of the whole hierarchy
Screenshot from 2023-04-28 20-38-39

Environment:

  • OS: Arch Linux
  • zsh version: zsh 5.9 (x86_64-pc-linux-gnu)
@NicolasWebDev NicolasWebDev added the bug Something isn't working label Apr 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant