Add togglefuzzy function
This commit is contained in:
parent
79967d9ad4
commit
ed6b1ff309
|
@ -1021,6 +1021,8 @@ bind:
|
|||
- Toggle mode
|
||||
- `toggleregex`
|
||||
- Toggle regex mode
|
||||
- `togglefuzzy`
|
||||
- Toggle fuzzy matching
|
||||
- `toggleimg`
|
||||
- Toggle images
|
||||
- `flipimg`
|
||||
|
|
|
@ -520,6 +520,13 @@ void toggleregex(Arg *arg) {
|
|||
#endif
|
||||
}
|
||||
|
||||
void togglefuzzy(Arg *arg) {
|
||||
fuzzy = !fuzzy;
|
||||
|
||||
match();
|
||||
drawmenu();
|
||||
}
|
||||
|
||||
void toggleimg(Arg *arg) {
|
||||
#if USEIMAGE
|
||||
|
||||
|
|
|
@ -72,6 +72,7 @@ static void togglematchcount(Arg *arg);
|
|||
static void togglemode(Arg *arg);
|
||||
static void togglehighlight(Arg *arg);
|
||||
static void toggleregex(Arg *arg);
|
||||
static void togglefuzzy(Arg *arg);
|
||||
static void toggleimg(Arg *arg);
|
||||
|
||||
/* hover */
|
||||
|
|
|
@ -390,6 +390,7 @@ static FuncList fl[] = {
|
|||
{ "togglematchcount", togglematchcount },
|
||||
{ "togglemode", togglemode },
|
||||
{ "toggleregex", toggleregex },
|
||||
{ "togglefuzzy", togglefuzzy },
|
||||
{ "toggleimg", toggleimg },
|
||||
{ "setprofile", setprofile },
|
||||
{ "setlineheight", setlineheight },
|
||||
|
|
Loading…
Reference in a new issue