Add /titlebar show resource command

Additionally to `/resource titlebar on` we now allow the setting via
/titlebar show|hide resource` since it's about the titlebar.

But makes sense to have it in `/resource` too because there is
`/resource message on|off` too. And this one doesnt have an setting of
it's own.

Regards https://github.com/profanity-im/profanity/issues/1116
This commit is contained in:
Michael Vetter
2019-11-05 20:51:27 +01:00
parent fc6f2755c1
commit 3d272f02bc
3 changed files with 10 additions and 3 deletions

View File

@@ -776,6 +776,7 @@ cmd_ac_init(void)
titlebar_show_ac = autocomplete_new();
autocomplete_add(titlebar_show_ac, "tls");
autocomplete_add(titlebar_show_ac, "encwarn");
autocomplete_add(titlebar_show_ac, "resource");
tls_certpath_ac = autocomplete_new();
autocomplete_add(tls_certpath_ac, "set");