diff options
author | Canop <cano.petrole@gmail.com> | 2021-05-09 17:54:47 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2021-05-09 17:54:47 +0200 |
commit | 1ec2340d8b5fff9381b5481b1b2b3accbb7bdc12 (patch) | |
tree | 31185001898e25228e979f2027dbb359566b96c9 /src | |
parent | 88410cdf95881aaa1df67c4bddd171a9b61c0be7 (diff) |
fix "tokens" search being displayed as '???' in help
Diffstat (limited to 'src')
-rw-r--r-- | src/help/help_search_modes.rs | 3 | ||||
-rw-r--r-- | src/pattern/search_mode.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/help/help_search_modes.rs b/src/help/help_search_modes.rs index c311e82..f9a37f9 100644 --- a/src/help/help_search_modes.rs +++ b/src/help/help_search_modes.rs @@ -27,7 +27,8 @@ pub fn search_mode_rows(con: &AppContext) -> Vec<MatchingSearchModeRow> { SearchKind::Exact => "exact string", SearchKind::Fuzzy => "fuzzy", SearchKind::Regex => "regex", - _ => "???", // should not happen + SearchKind::Tokens => "tokens", + SearchKind::Unspecified => "???", }, match mode.object() { SearchObject::Name => "file name", diff --git a/src/pattern/search_mode.rs b/src/pattern/search_mode.rs index 21879e4..70cc899 100644 --- a/src/pattern/search_mode.rs +++ b/src/pattern/search_mode.rs @@ -195,7 +195,7 @@ impl Default for SearchModeMap { smm.setm(&["ce", "ec", "c"], SearchMode::ContentExact); smm.setm(&["rx", "cr"], SearchMode::ContentRegex); smm.setm(&["pt", "tp", "t"], SearchMode::PathTokens); - smm.setm(&["pn", "np"], SearchMode::NameTokens); + smm.setm(&["tn", "nt"], SearchMode::NameTokens); smm.set(SearchModeMapEntry { key: None, mode: SearchMode::NameFuzzy }); smm } |