Verified Commit 8c63e263 authored by mathieui's avatar mathieui

Add documentation for /set_default

and fix minor typing mistakes too
parent 6e27b4e6
...@@ -146,6 +146,12 @@ These commands work in *any* tab. ...@@ -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 just set the option to true if it’s currently false, and to false if it’s
currently true. 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 /toggle
**Usage:** ``/toggle <option>`` **Usage:** ``/toggle <option>``
......
...@@ -1767,7 +1767,7 @@ class Core(object): ...@@ -1767,7 +1767,7 @@ class Core(object):
desc=_("Set the value of an option in your configuration file." desc=_("Set the value of an option in your configuration file."
" You can, for example, change your default nickname by " " You can, for example, change your default nickname by "
"doing `/set default_nick toto` or your resource with `/set" "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" "sections with `/set bindings M-i ^i` or in specific plugin"
" with `/set mpd_client| host 127.0.0.1`. `toggle` can be " " with `/set mpd_client| host 127.0.0.1`. `toggle` can be "
"used as a special value to toggle a boolean option."), "used as a special value to toggle a boolean option."),
...@@ -1775,9 +1775,9 @@ class Core(object): ...@@ -1775,9 +1775,9 @@ class Core(object):
completion=self.completion_set) completion=self.completion_set)
self.register_command('set_default', self.command_set_default, self.register_command('set_default', self.command_set_default,
usage=_("[section] <option>"), usage=_("[section] <option>"),
desc=_("Set the default value of an option. For example," desc=_("Set the default value of an option. For example, "
"`/set_default resource` will reset the default_resource" "`/set_default resource` will reset the resource "
"option. You can also reset options in specific" "option. You can also reset options in specific "
"sections by doing `/set_default section option`."), "sections by doing `/set_default section option`."),
shortdesc=_("Set the default value of an option"), shortdesc=_("Set the default value of an option"),
completion=self.completion_set_default) completion=self.completion_set_default)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment