Skip to content

Commit

Permalink
update to 0.38.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Jengamon committed Sep 11, 2023
1 parent d8fb71e commit 3d6fda7
Show file tree
Hide file tree
Showing 4 changed files with 192 additions and 48 deletions.
154 changes: 145 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "monocle"
version = "0.37.2"
version = "0.38.0"
authors = ["Aram Drevekenin <aram@poor.dev>"]
edition = "2018"

[dependencies]
zellij-tile = "0.37.2"
zellij-tile = "0.38.1"
ignore = "0.4.20"
fuzzy-matcher = "0.3.7"
serde = { version = "1.0", features = ["derive"] }
Expand Down
24 changes: 12 additions & 12 deletions src/backend_workers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ impl Search {
match serde_json::from_str::<MessageToSearch>(&message) {
Ok(MessageToSearch::ScanFolder) => {
self.scan_hd();
post_message_to_plugin(
serde_json::to_string(&MessageToPlugin::DoneScanningFolder).unwrap(),
"".to_owned(),
);
post_message_to_plugin(PluginMessage::new_to_plugin(
&serde_json::to_string(&MessageToPlugin::DoneScanningFolder).unwrap(),
"",
));
}
Ok(MessageToSearch::Search) => {
if let Some(current_search_term) = self.read_search_term_from_hd_cache() {
Expand Down Expand Up @@ -105,16 +105,16 @@ impl Search {
}
}
if let Some(file_names_search_results) = file_names_search_results {
post_message_to_plugin(
serde_json::to_string(&MessageToPlugin::UpdateFileNameSearchResults).unwrap(),
serde_json::to_string(&file_names_search_results).unwrap(),
);
post_message_to_plugin(PluginMessage::new_to_plugin(
&serde_json::to_string(&MessageToPlugin::UpdateFileNameSearchResults).unwrap(),
&serde_json::to_string(&file_names_search_results).unwrap(),
));
}
if let Some(file_contents_search_results) = file_contents_search_results {
post_message_to_plugin(
serde_json::to_string(&MessageToPlugin::UpdateFileContentsSearchResults).unwrap(),
serde_json::to_string(&file_contents_search_results).unwrap(),
);
post_message_to_plugin(PluginMessage::new_to_plugin(
&serde_json::to_string(&MessageToPlugin::UpdateFileContentsSearchResults).unwrap(),
&serde_json::to_string(&file_contents_search_results).unwrap(),
));
}
}
pub fn rescan_files(&mut self, paths: String) {
Expand Down
Loading

0 comments on commit 3d6fda7

Please # to comment.