add empty match method

if this option is set no filtering will be done
This commit is contained in:
Alexander Mohr 2025-06-08 19:30:38 +02:00
parent b5c8207209
commit 32c1b3562c
5 changed files with 6 additions and 2 deletions

View file

@ -134,7 +134,6 @@ The possibilities are endless! Here are some powerful examples of what you can b
- Advanced window selector - Advanced window selector
- Written in Rust using Worf API - Written in Rust using Worf API
- Featuring AmberNight theme with centered content
### 🔐 worf-warden ### 🔐 worf-warden
*Beautiful Bitwarden frontend* *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) - Bitwarden integration via [rbw](https://github.com/doy/rbw)
- Additional dependencies required ([see readme](examples/worf-warden/Readme.md)) - Additional dependencies required ([see readme](examples/worf-warden/Readme.md))
- Showcasing GlacierPrism theme with blurred background - Showcasing GlacierPrism theme
### worf-rtw ### worf-rtw
*Time tracking made simple* *Time tracking made simple*

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 219 KiB

View file

@ -6,3 +6,4 @@ key_detection_type="Code"
blurred_background=false blurred_background=false
location=["Top"] location=["Top"]
lines=3 lines=3
matching="None"

View file

@ -19,6 +19,7 @@ pub enum MatchMethod {
Fuzzy, Fuzzy,
Contains, Contains,
MultiContains, MultiContains,
None,
} }
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Debug, Serialize, Deserialize)] #[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Debug, Serialize, Deserialize)]

View file

@ -1650,6 +1650,9 @@ fn set_menu_visibility_for_search<T: Clone>(
let contains = query.split(' ').all(|x| menu_item_search.contains(x)); let contains = query.split(' ').all(|x| menu_item_search.contains(x));
(if contains { 1.0 } else { 0.0 }, contains) (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; menu_item.search_sort_score = search_sort_score + menu_item.initial_sort_score;