mirror of
https://git.jabber.space/devs/cproof.git
synced 2026-07-22 19:26:21 +00:00
Add option to set all window related time formats
Implements feature requested at: https://github.com/profanity-im/profanity/issues/632 So instead of: /time console set <format> /time chat set <format> /time muc set <format> /time mucconfig set <format> /time private set <format> /time xml set <format> As a short cut the user can do: /time all set <format> Excluding statusbar and lastactivity settings since they are not for main windows, but used slightly differently.
This commit is contained in:
@@ -717,6 +717,7 @@ cmd_ac_init(void)
|
||||
autocomplete_add(time_ac, "xml");
|
||||
autocomplete_add(time_ac, "statusbar");
|
||||
autocomplete_add(time_ac, "lastactivity");
|
||||
autocomplete_add(time_ac, "all");
|
||||
|
||||
time_format_ac = autocomplete_new();
|
||||
autocomplete_add(time_format_ac, "set");
|
||||
@@ -2665,6 +2666,11 @@ _time_autocomplete(ProfWin *window, const char *const input, gboolean previous)
|
||||
return found;
|
||||
}
|
||||
|
||||
found = autocomplete_param_with_ac(input, "/time all", time_format_ac, TRUE, previous);
|
||||
if (found) {
|
||||
return found;
|
||||
}
|
||||
|
||||
found = autocomplete_param_with_ac(input, "/time", time_ac, TRUE, previous);
|
||||
if (found) {
|
||||
return found;
|
||||
|
||||
Reference in New Issue
Block a user