Added dictionary plugin and switched from a Mutex
to an RwLock
in the anyrun_plugin
crate
This change means that `get_matches` no longer has access to a mutable version of the state of the plugin. A redesign is needed to allow for this if needed.
This commit is contained in:
@@ -12,7 +12,7 @@ fn handler(_match: Match, _lines: &mut Vec<String>) -> HandleResult {
|
||||
HandleResult::Stdout(_match.title.into_bytes())
|
||||
}
|
||||
|
||||
fn get_matches(input: RString, lines: &mut Vec<String>) -> RVec<Match> {
|
||||
fn get_matches(input: RString, lines: &Vec<String>) -> RVec<Match> {
|
||||
let matcher = fuzzy_matcher::skim::SkimMatcherV2::default().smart_case();
|
||||
|
||||
let mut lines = lines
|
||||
|
Reference in New Issue
Block a user