Tab completion?
benlindsay opened this issue · 6 comments
Is there any chance this supports tab completion? Tab completion works in my normal pass stuff, but not after I've typed pass update ...
.
Thanks!
Nevermind, an issue in the tail extension explained how to add this. Kind of hacky but it seems like it has to be this way until pass adds direct support for tab completion for extensions? The issue is here: palortoff/pass-extension-tail#4.
If anyone sees this in the future, on my mac the bash completion file was at /usr/local/etc/bash_completion.d/pass
, and I changed line 84 to look like this:
local commands="init ls find grep show insert generate edit rm mv cp git help version update tail tailedit"
(adding update
for this plugin, and tail
an tailedit
for the other plugin)
and line 97 to look like this:
ls|list|edit|update|tail|tailedit)
(same thing here).
Many thank for this information. I did the same kind of hacked completion for zsh. But right now, we need pass support.
I'm reopening this issue because I plan to work on it in the future.
Also, mostly as just a note for future me, I had issues getting this hack to work properly on my mac unless bash and bash-completion were installed via homebrew, and my shell was running from /usr/local/bin/bash
instead of /bin/bash
This is now implemented.