From 0d49ffd0536997858596d9c70a235c18c3295632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 19 Mar 2023 08:02:10 +0100 Subject: core: add command `/reset` to reset options to their default values --- ChangeLog.adoc | 1 + doc/de/includes/autogen_user_commands.de.adoc | 17 ++++ doc/en/includes/autogen_user_commands.en.adoc | 17 ++++ doc/fr/includes/autogen_user_commands.fr.adoc | 17 ++++ doc/it/includes/autogen_user_commands.it.adoc | 17 ++++ doc/ja/includes/autogen_user_commands.ja.adoc | 17 ++++ doc/pl/includes/autogen_user_commands.pl.adoc | 17 ++++ doc/sr/includes/autogen_user_commands.sr.adoc | 17 ++++ po/cs.po | 60 ++++++++--- po/de.po | 77 ++++++++++++--- po/es.po | 61 +++++++++--- po/fr.po | 56 ++++++++--- po/hu.po | 48 ++++++--- po/it.po | 60 ++++++++--- po/ja.po | 74 +++++++++++--- po/pl.po | 75 +++++++++++--- po/pt.po | 74 +++++++++++--- po/pt_BR.po | 61 +++++++++--- po/ru.po | 48 ++++++--- po/sr.po | 75 +++++++++++--- po/tr.po | 75 +++++++++++--- po/weechat.pot | 45 ++++++--- src/core/wee-command.c | 137 ++++++++++++++++++++++++++ tests/unit/core/test-core-command.cpp | 10 ++ 24 files changed, 999 insertions(+), 157 deletions(-) diff --git a/ChangeLog.adoc b/ChangeLog.adoc index 3ffa806d1..176e9d2e5 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -25,6 +25,7 @@ New features:: * core: add key kbd:[Alt+K] (upper case) to grab raw key and its command (issue #1238) * core: add option `key` in command `/debug` (issue #1238) * core: force ctrl keys to lower case when they are added (issue #1875) + * core: add command `/reset` to reset options to their default values * core: add access to hashtable properties in evaluation of expressions (issue #1888) * core: display similar command names when a command is unknown (issue #1877) * core, plugins: make many identifiers case sensitive (issue #1872, issue #398, bug #32213) diff --git a/doc/de/includes/autogen_user_commands.de.adoc b/doc/de/includes/autogen_user_commands.de.adoc index 10a9bfe06..a8e8f10e2 100644 --- a/doc/de/includes/autogen_user_commands.de.adoc +++ b/doc/de/includes/autogen_user_commands.de.adoc @@ -2054,6 +2054,23 @@ Beispiel: /repeat 2 /window page_up ---- +[[command_weechat_reset]] +* `+reset+`: reset config options + +---- +/reset