summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-12-05 21:35:35 +0100
committermathieui <mathieui@mathieui.net>2014-12-05 21:35:35 +0100
commit8c63e26335706ff938c425c8ec7efb82635b1d69 (patch)
tree9e17d1de213f219444d5ff576c10ef6bbdc44879
parent6e27b4e6ef1b09e42419b172d281c3fd83a71312 (diff)
downloadpoezio-8c63e26335706ff938c425c8ec7efb82635b1d69.tar.gz
poezio-8c63e26335706ff938c425c8ec7efb82635b1d69.tar.bz2
poezio-8c63e26335706ff938c425c8ec7efb82635b1d69.tar.xz
poezio-8c63e26335706ff938c425c8ec7efb82635b1d69.zip
Add documentation for /set_default
and fix minor typing mistakes too
-rw-r--r--doc/source/commands.rst6
-rw-r--r--src/core/core.py8
2 files changed, 10 insertions, 4 deletions
diff --git a/doc/source/commands.rst b/doc/source/commands.rst
index 449d4095..fe106dea 100644
--- a/doc/source/commands.rst
+++ b/doc/source/commands.rst
@@ -146,6 +146,12 @@ These commands work in *any* tab.
just set the option to true if it’s currently false, and to false if it’s
currently true.
+ /set_default
+ **Usage:** ``/set_default [section] <option>``
+
+ Set the value of an option back to the default. For example,
+ ``/set_default resource`` will reset the ``resource`` option.
+
/toggle
**Usage:** ``/toggle <option>``
diff --git a/src/core/core.py b/src/core/core.py
index 65d8622c..54d48aa4 100644
--- a/src/core/core.py
+++ b/src/core/core.py
@@ -1767,7 +1767,7 @@ class Core(object):
desc=_("Set the value of an option in your configuration file."
" You can, for example, change your default nickname by "
"doing `/set default_nick toto` or your resource with `/set"
- "resource blabla`. You can also set options in specific "
+ " resource blabla`. You can also set options in specific "
"sections with `/set bindings M-i ^i` or in specific plugin"
" with `/set mpd_client| host 127.0.0.1`. `toggle` can be "
"used as a special value to toggle a boolean option."),
@@ -1775,9 +1775,9 @@ class Core(object):
completion=self.completion_set)
self.register_command('set_default', self.command_set_default,
usage=_("[section] <option>"),
- desc=_("Set the default value of an option. For example,"
- "`/set_default resource` will reset the default_resource"
- "option. You can also reset options in specific"
+ desc=_("Set the default value of an option. For example, "
+ "`/set_default resource` will reset the resource "
+ "option. You can also reset options in specific "
"sections by doing `/set_default section option`."),
shortdesc=_("Set the default value of an option"),
completion=self.completion_set_default)