gopass icon indicating copy to clipboard operation
gopass copied to clipboard

Allow disabling the default `gopass create` wizard templates

Open chaorace opened this issue 2 years ago • 3 comments

Currently, the two default wizard templates for gopass create ("Website login" & "PIN Code (numerical)") seem to always load in as options for the wizard.

It would be nice to have a config option to turn this off so that only custom templates appear as options in that wizard menu. I particularly want this because both stock templates are marked "priority: 0", which forces you to use negative priority values in custom templates if you want them to appear first in the list (important if you want to change the default option).

chaorace avatar Jul 29 '22 15:07 chaorace

Sounds like a valid feature request. But we'll need to figure out how to handle this cleanly.

dominikschulz avatar Jul 29 '22 19:07 dominikschulz

Would you prefer to configure this per password store or per user?

dominikschulz avatar Sep 17 '22 14:09 dominikschulz

@dominikschulz, in my opinion this issue could be resolved in different way than originally suggested by @chaorace.

How about removing hard-coded templates and automatically adding ".gopass/create/default.yml" with one default template to every new password store? This approach would give the users more control over all templates.

If someone would delete ".gopass/create/default.yml" (without creating any other templates), the program could inform them that no templates are available and ask for username and password that would be stored in root of the password store without any specific prefix.

ghost avatar Sep 22 '22 12:09 ghost