diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-05-31 20:23:48 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-06-25 16:35:27 +0200 |
commit | 8c7b4282aee9663d570dbb285b5c65d5ab09e912 (patch) | |
tree | 38dae9dc0dce82870b6e2f3fe77fefe5d7e200fb /src/plugins/fset/fset-config.c | |
parent | 805bc6ca2c2885b68b512ed641fa1cb62a3d4cdf (diff) | |
download | weechat-8c7b4282aee9663d570dbb285b5c65d5ab09e912.zip |
fset: hook command /set, add option fset.look.condition_catch_set
Diffstat (limited to 'src/plugins/fset/fset-config.c')
-rw-r--r-- | src/plugins/fset/fset-config.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-config.c b/src/plugins/fset/fset-config.c index 2e5999f93..059339cd0 100644 --- a/src/plugins/fset/fset-config.c +++ b/src/plugins/fset/fset-config.c @@ -33,6 +33,7 @@ struct t_config_file *fset_config_file = NULL; /* fset config, look section */ +struct t_config_option *fset_config_look_condition_catch_set; struct t_config_option *fset_config_look_enabled; struct t_config_option *fset_config_look_help_bar; struct t_config_option *fset_config_look_use_keys; @@ -187,6 +188,21 @@ fset_config_init () return 0; } + fset_config_look_condition_catch_set = weechat_config_new_option ( + fset_config_file, ptr_section, + "condition_catch_set", "string", + N_("condition to catch /set command and display results in the fset " + "buffer; following variables can be used: ${name} (name of option " + "given for the /set command), ${count} (number of options found " + "with the /set argument); an empty string disables the catch of " + "/set command; with value \"1\", the fset buffer is always used " + "with /set command"), + NULL, 0, 0, + "${count} >= 1", + NULL, 0, + NULL, NULL, NULL, + NULL, NULL, NULL, + NULL, NULL, NULL); fset_config_look_enabled = weechat_config_new_option ( fset_config_file, ptr_section, "enabled", "boolean", |