Skip to content

Commit

Permalink
Merge pull request #9 from ynqa/v0.1.4/dev
Browse files Browse the repository at this point in the history
v0.1.4
  • Loading branch information
ynqa authored Nov 30, 2024
2 parents 8069bc4 + d0e07ef commit 380950b
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 31 deletions.
88 changes: 64 additions & 24 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,6 +1,6 @@
[package]
name = "sigrs"
version = "0.1.3"
version = "0.1.4"
authors = ["ynqa <[email protected]>"]
edition = "2021"
description = "Interactive grep (for streaming)"
Expand All @@ -18,7 +18,7 @@ clap = { version = "4.5.4", features = ["derive"] }
futures = "0.3.30"
futures-timer = "3.0.3"
grep = "0.3.1"
promkit = "0.4.3"
promkit = "0.5.1"
rayon = "1.5.0"
regex = "1.10.4"
strip-ansi-escapes = "0.2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/archived.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct Archived {
impl promkit::Finalizer for Archived {
type Return = ();

fn finalize(&self) -> anyhow::Result<Self::Return> {
fn finalize(&mut self) -> anyhow::Result<Self::Return> {
Ok(())
}
}
Expand Down Expand Up @@ -80,7 +80,7 @@ impl promkit::Renderer for Archived {
})
.collect();

self.lines.after_mut().listbox = listbox::Listbox::from_iter(list);
self.lines.after_mut().listbox = listbox::Listbox::from_styled_graphemes(list);
}
signal
}
Expand Down
5 changes: 2 additions & 3 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ pub enum Signal {

/// Interactive grep (for streaming)
#[derive(Parser)]
#[command(name = "sig", version)]
#[command(
name = "sig",
version,
Expand Down Expand Up @@ -192,7 +191,7 @@ async fn main() -> anyhow::Result<()> {
lines: Default::default(),
},
listbox::State {
listbox: listbox::Listbox::from_iter(queue),
listbox: listbox::Listbox::from_displayable(queue),
cursor: String::from("❯ "),
active_item_style: None,
inactive_item_style: None,
Expand Down Expand Up @@ -249,7 +248,7 @@ async fn main() -> anyhow::Result<()> {
lines: Default::default(),
},
listbox::State {
listbox: listbox::Listbox::from_iter(queue),
listbox: listbox::Listbox::from_displayable(queue),
cursor: String::from("❯ "),
active_item_style: None,
inactive_item_style: None,
Expand Down

0 comments on commit 380950b

Please sign in to comment.