summaryrefslogtreecommitdiff
path: root/src/plugins/fset/fset-buffer.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-06-17 14:09:47 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-06-25 16:35:28 +0200
commit01ce879433e729f3093eb7dfaa8aa73767ef40dc (patch)
tree4ff5130ea325bd206fc82def4e018ba3ef7dcfbc /src/plugins/fset/fset-buffer.c
parent121faf7b12759b051a3a87573160be70296f92e9 (diff)
downloadweechat-01ce879433e729f3093eb7dfaa8aa73767ef40dc.zip
fset: add marking/unmarking of options matching filter with input "m:" and "u:"
Diffstat (limited to 'src/plugins/fset/fset-buffer.c')
-rw-r--r--src/plugins/fset/fset-buffer.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/fset/fset-buffer.c b/src/plugins/fset/fset-buffer.c
index 40cfcf3c0..b8ee79d0e 100644
--- a/src/plugins/fset/fset-buffer.c
+++ b/src/plugins/fset/fset-buffer.c
@@ -78,6 +78,8 @@ fset_buffer_set_title ()
"shift+up=mark and move up, "
"($)=refresh, "
"($$)=unmark/refresh, "
+ "(m)=mark matching options, "
+ "(u)=unmark matching options, "
"alt+p(p)=toggle plugins desc, "
"alt+v(v)=toggle help bar, "
"ctrl+X(x)=switch format, "
@@ -893,6 +895,20 @@ fset_buffer_input_cb (const void *pointer, void *data,
return WEECHAT_RC_OK;
}
+ /* mark options matching filter */
+ if (strncmp (input_data, "m:", 2) == 0)
+ {
+ fset_option_mark_options_matching_filter (input_data + 2, 1);
+ return WEECHAT_RC_OK;
+ }
+
+ /* unmark options matching filter */
+ if (strncmp (input_data, "u:", 2) == 0)
+ {
+ fset_option_mark_options_matching_filter (input_data + 2, 0);
+ return WEECHAT_RC_OK;
+ }
+
/* change sort of options */
if (strncmp (input_data, "s:", 2) == 0)
{