From 3d272f02bce39babe943a71bf6df4d9539fc787c Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 5 Nov 2019 20:51:27 +0100 Subject: 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 --- src/command/cmd_defs.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/command/cmd_defs.c') diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index d1b1d4c1..f10b5b33 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -1319,14 +1319,15 @@ static struct cmd_t command_defs[] = CMD_SYN( "/titlebar up", "/titlebar down", - "/titlebar show|hide [tls|encwarn]") + "/titlebar show|hide [encwarn|resource|tls]") CMD_DESC( "Titlebar settings.") CMD_ARGS( { "up", "Move the title bar up the screen." }, { "down", "Move the title bar down the screen." }, { "show tls", "Show or hide TLS indicator in the titlebar." }, - { "show encwarn", "Enable or disable the unencrypted warning message in the titlebar." } + { "show encwarn", "Enable or disable the unencrypted warning message in the titlebar." }, + { "show resource", "Show or hide the current resource in the titlebar." } ) CMD_EXAMPLES( "/titlebar up", -- cgit 1.4.1-2-gfad0