summaryrefslogtreecommitdiff
path: root/src/plugins/fset
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-06-03 16:44:07 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-06-25 16:35:27 +0200
commit0953659d32308c0436f758d2920ec0bb5af32d04 (patch)
treebc6d77ea4948e4d4126cb4c71b8c84f1d0c824a9 /src/plugins/fset
parentab7830e32a6eced0496bd352930bbf4fa0706da3 (diff)
downloadweechat-0953659d32308c0436f758d2920ec0bb5af32d04.zip
fset: add examples in /help fset
Diffstat (limited to 'src/plugins/fset')
-rw-r--r--src/plugins/fset/fset-command.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c
index b96ec15d5..0a82021ab 100644
--- a/src/plugins/fset/fset-command.c
+++ b/src/plugins/fset/fset-command.c
@@ -575,7 +575,17 @@ fset_command_init ()
"\n"
"Note: spaces at beginning of input are ignored, so for example "
"\"q\" closes the fset buffer while \" q\" searches all options "
- "with \"q\" inside name."),
+ "with \"q\" inside name.\n"
+ "\n"
+ "Examples:\n"
+ " show IRC options changed:\n"
+ " /fset d:irc.*\n"
+ " show all options with \"nicklist\" in name:\n"
+ " /fset nicklist\n"
+ " show all values which contain \"red\":\n"
+ " /fset =red\n"
+ " show all integer options in irc plugin:\n"
+ " /fset c:${name} =~ ^irc.* && ${type_en} == integer"),
"-bar"
" || -toggle_bar"
" || -refresh"