1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 22:06:38 +02:00

fset: add marking/unmarking of options matching filter with input "m:" and "u:"

This commit is contained in:
Sébastien Helleu
2017-06-17 14:09:47 +02:00
parent 121faf7b12
commit 01ce879433
4 changed files with 81 additions and 28 deletions
+16
View File
@@ -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)
{