diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-05-31 21:18:16 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-25 16:35:27 +0200 |
commit | cc0ba21e67bb56ba270efc59e2aa108bb44f2f15 (patch) | |
tree | 7bf80b5aeaef2476dbe3360921b4c1b6044025b5 /src/plugins/fset/fset-command.c | |
parent | 6a29941fdcd32e39a92200ef31253a7ea6e724b9 (diff) | |
download | weechat-cc0ba21e67bb56ba270efc59e2aa108bb44f2f15.zip |
fset: add supported variables for formats in /help fset
Diffstat (limited to 'src/plugins/fset/fset-command.c')
-rw-r--r-- | src/plugins/fset/fset-command.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c index 971d60844..05fda0838 100644 --- a/src/plugins/fset/fset-command.c +++ b/src/plugins/fset/fset-command.c @@ -420,7 +420,35 @@ fset_command_init () " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" " =xxx show only options with \"xxx\" in value\n" - " ==xxx show only options with exact value \"xxx\""), + " ==xxx show only options with exact value \"xxx\"\n" + "\n" + "The lines with options are displayed using string evaluation " + "(see /help eval for the format), with these options:\n" + " - fset.format.option: format for an option which is not on " + "current line\n" + " - fset.format.option_current: format for the current option\n" + "\n" + "The following variables can be used in these options:\n" + " - option data, with color and padded by spaces on the right:\n" + " - ${name}: option name\n" + " - ${parent_name}: parent option name\n" + " - ${type}: option type\n" + " - ${default_value}: option default value\n" + " - ${value}: option value\n" + " - ${value_undef}: \"1\" if value is null, otherwise \"0\"\n" + " - ${value2}: option value, with inherited value if null\n" + " - ${parent_value}: parent option value\n" + " - ${min}: min value\n" + " - ${max}: max value\n" + " - ${description}: option description\n" + " - ${string_values}: string values allowed for set of an " + "integer option using strings\n" + " - option data, with color but no spaces:\n" + " - same names prefixed by underscore, for example: ${_name}, " + "${_type}, ...\n" + " - option data, raw format (no colors/spaces):\n" + " - same names prefixed by two underscores, for example: " + "${__name}, ${__type}, ..."), "-bar" " || -refresh" " || -up 1|2|3|4|5" @@ -432,7 +460,7 @@ fset_command_init () " || -unset" " || -set" " || -append" - " || *|f:|s:|d:|d=|d==|=|==", + " || *|f:|s:|d|d:|d=|d==|=|==", &fset_command_fset, NULL, NULL); weechat_hook_command_run ("/set", &fset_command_run_set_cb, NULL, NULL); } |