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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user