diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-08-02 10:23:13 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-08-02 10:23:13 +0200 |
commit | 658e36a06618dd48798133983c4a234e747834ad (patch) | |
tree | 6355ffa39185e5b17c9f5dee1f720636d2016cef /src/command/cmd_defs.c | |
parent | d4150eb7d15c3a8674eaf78a212209381ed95ee9 (diff) | |
download | profani-tty-658e36a06618dd48798133983c4a234e747834ad.tar.gz |
Add 'save' command to save preferences
Most applications have an 'apply changes' button. This makes testing easier too. Implement https://github.com/profanity-im/profanity/issues/1164
Diffstat (limited to 'src/command/cmd_defs.c')
-rw-r--r-- | src/command/cmd_defs.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/command/cmd_defs.c b/src/command/cmd_defs.c index efe2bad0..358b3472 100644 --- a/src/command/cmd_defs.c +++ b/src/command/cmd_defs.c @@ -2393,6 +2393,19 @@ static struct cmd_t command_defs[] = "/omemo untrust buddy@buddychat.org c4f9c875-144d7a3b-0c4a05b6-ca3be51a-a037f329-0bd3ae62-07f99719-55559d2a", "/omemo char *") }, + + { "/save", + parse_args, 0, 0, NULL, + CMD_NOSUBFUNCS + CMD_MAINFUNC(cmd_save) + CMD_NOTAGS + CMD_SYN( + "/save") + CMD_DESC( + "Save preferences to configuration file.") + CMD_NOARGS + CMD_NOEXAMPLES + }, }; static GHashTable *search_index; |