auto completion with tab: separate commands and tree structure

J Rt jean.rblt at gmail.com
Fri Mar 27 13:12:47 CET 2020


First, I looked for another less intrusive way to take contact about
this point, but could not find an issue system or similar on the self
hosted git. If I missed something, apologies, feel free to let me know
how I should have taken contact.

When using pass (which I love), I have only 1 'complaint': the
auto-completion with TAB.

The complaint is: when hitting tab twice for autocomplete, both
admissible arguments and the full cwd tree are proposed. In a sense,
this is of course great as it makes it easy to fill in folder
structure arguments, but it also drowns the available commands in a
very long output. For example, when I hit double TAB:

me at me0:~$ pass
bstuff/                   gstuff                ls                         show
cstuff/                        ggstuff/                     mv
                suff/
cp                         grep                       nstuf/
     ssh_keys/
edit                       help                       nastuff/
   sostuff/
find                       init                       pwsdstuff/  ustuff/
generate                   insert                     ptstuff/
       version
git                        lstuff/                  rm

Where I 'stuffed' it all for privacy, but you see the idea.

Now I am wondering, would it be possible instead to get this kind of
output when hitting double TAB:

me at me0:~$ pass
ls          show            mv   cp                 grep        edit
               help       find
init        generate           insert         version          git
           rm
---
bstuff/                  gstuff
cstuff/                        ggstuff/
             suff/
nstuf/                ssh_keys/
nastuff/
sostuff/                  pwsdstuff/                                    ustuff/
 ptstuff/                                        lstuff/

That would make it in my opinion much easier to find a command quickly
if it is what one looks for, while still showing all options.

Cheers,

JR


More information about the Password-Store mailing list