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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user