add empty match method
if this option is set no filtering will be done
This commit is contained in:
parent
b5c8207209
commit
32c1b3562c
5 changed files with 6 additions and 2 deletions
|
@ -134,7 +134,6 @@ The possibilities are endless! Here are some powerful examples of what you can b
|
|||
|
||||
- Advanced window selector
|
||||
- Written in Rust using Worf API
|
||||
- Featuring AmberNight theme with centered content
|
||||
|
||||
### 🔐 worf-warden
|
||||
*Beautiful Bitwarden frontend*
|
||||
|
@ -143,7 +142,7 @@ The possibilities are endless! Here are some powerful examples of what you can b
|
|||
|
||||
- Bitwarden integration via [rbw](https://github.com/doy/rbw)
|
||||
- Additional dependencies required ([see readme](examples/worf-warden/Readme.md))
|
||||
- Showcasing GlacierPrism theme with blurred background
|
||||
- Showcasing GlacierPrism theme
|
||||
|
||||
### worf-rtw
|
||||
*Time tracking made simple*
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 289 KiB After Width: | Height: | Size: 219 KiB |
|
@ -6,3 +6,4 @@ key_detection_type="Code"
|
|||
blurred_background=false
|
||||
location=["Top"]
|
||||
lines=3
|
||||
matching="None"
|
||||
|
|
|
@ -19,6 +19,7 @@ pub enum MatchMethod {
|
|||
Fuzzy,
|
||||
Contains,
|
||||
MultiContains,
|
||||
None,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Debug, Serialize, Deserialize)]
|
||||
|
|
|
@ -1650,6 +1650,9 @@ fn set_menu_visibility_for_search<T: Clone>(
|
|||
let contains = query.split(' ').all(|x| menu_item_search.contains(x));
|
||||
(if contains { 1.0 } else { 0.0 }, contains)
|
||||
}
|
||||
MatchMethod::None => {
|
||||
(1.0, true) // items are always shown
|
||||
}
|
||||
};
|
||||
|
||||
menu_item.search_sort_score = search_sort_score + menu_item.initial_sort_score;
|
||||
|
|
Loading…
Add table
Reference in a new issue