diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-11-05 20:51:27 +0100 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-11-05 20:51:27 +0100 |
commit | 3d272f02bce39babe943a71bf6df4d9539fc787c (patch) | |
tree | 8d95e581f7c71723ac3a64bcf67ed76c793d0632 /src/command/cmd_defs.c | |
parent | fc6f2755c1cb65436df1a1e2a12e6f2de99183a9 (diff) | |
download | profani-tty-3d272f02bce39babe943a71bf6df4d9539fc787c.tar.gz |
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
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 5 |
1 files changed, 3 insertions, 2 deletions
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", |