aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock39
-rw-r--r--Cargo.toml1
-rw-r--r--src/frontend/tui.rs9
-rw-r--r--src/frontend/ui.rs2
4 files changed, 4 insertions, 47 deletions
diff --git a/Cargo.lock b/Cargo.lock
index c077438..826eb33 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -36,15 +36,6 @@ dependencies = [
]
[[package]]
-name = "aho-corasick"
-version = "1.1.3"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
-dependencies = [
- "memchr",
-]
-
-[[package]]
name = "allocator-api2"
version = "0.2.16"
source = "registry+https://github.com/rust-lang/crates.io-index"
@@ -103,7 +94,6 @@ dependencies = [
"itertools",
"nucleo-matcher",
"ratatui",
- "regex",
"sarge",
"signal-hook",
"tokio",
@@ -1062,35 +1052,6 @@ dependencies = [
]
[[package]]
-name = "regex"
-version = "1.10.6"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "4219d74c6b67a3654a9fbebc4b419e22126d13d2f3c4a07ee0cb61ff79a79619"
-dependencies = [
- "aho-corasick",
- "memchr",
- "regex-automata",
- "regex-syntax",
-]
-
-[[package]]
-name = "regex-automata"
-version = "0.4.7"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38caf58cc5ef2fed281f89292ef23f6365465ed9a41b7a7754eb4e26496c92df"
-dependencies = [
- "aho-corasick",
- "memchr",
- "regex-syntax",
-]
-
-[[package]]
-name = "regex-syntax"
-version = "0.8.4"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7a66a03ae7c801facd77a29370b4faec201768915ac14a721ba36f20bc9c209b"
-
-[[package]]
name = "rustc-demangle"
version = "0.1.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
diff --git a/Cargo.toml b/Cargo.toml
index 52a2c84..de1cb5c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,6 @@ futures = "0.3.30"
itertools = "0.13.0"
nucleo-matcher = "0.3.1"
ratatui = { version = "0.28.1", features = ["unstable-rendered-line-info"]}
-regex = "1.10.6"
sarge = "7.2.5"
signal-hook = "0.3.17"
tokio = { version = "1.39.3", features = ["full"] }
diff --git a/src/frontend/tui.rs b/src/frontend/tui.rs
index 17787e9..8aa8070 100644
--- a/src/frontend/tui.rs
+++ b/src/frontend/tui.rs
@@ -19,15 +19,14 @@ use crate::frontend::app::App;
use crossterm::{
cursor,
event::{
- DisableBracketedPaste, DisableMouseCapture, EnableBracketedPaste, EnableMouseCapture,
- Event as CrosstermEvent, EventStream, KeyEvent, KeyEventKind, MouseEvent,
+ DisableMouseCapture, EnableMouseCapture,
+ Event as CrosstermEvent, KeyEvent, MouseEvent,
},
terminal::{EnterAlternateScreen, LeaveAlternateScreen},
};
// use ratatui::backend::{Backend, CrosstermBackend};
use ratatui::backend::CrosstermBackend as Backend;
-use ratatui::Terminal;
-use std::io::{self, stdout, Stdout};
+use std::io::{stdout, Stdout};
use std::panic;
use std::{
ops::{Deref, DerefMut},
@@ -35,7 +34,7 @@ use std::{
};
use color_eyre::eyre::{OptionExt, Result};
-use futures::{channel::mpsc::UnboundedSender, FutureExt, StreamExt};
+use futures::{FutureExt, StreamExt};
use tokio::sync::mpsc;
use tokio_util::sync::CancellationToken;
diff --git a/src/frontend/ui.rs b/src/frontend/ui.rs
index ce77284..2383247 100644
--- a/src/frontend/ui.rs
+++ b/src/frontend/ui.rs
@@ -15,7 +15,6 @@
// along with this program. If not, see <https://www.gnu.org/licenses/>.
/////
-use color_eyre::owo_colors::OwoColorize;
use ratatui::{
buffer::Buffer,
layout::{Constraint, Layout, Rect},
@@ -37,7 +36,6 @@ use super::app::{CurrentArea, FormerArea};
const MAIN_BLUE_COLOR: Color = Color::Indexed(39);
// const MAIN_PURPLE_COLOR: Color = Color::Indexed(129);
-const BOX_BORDER_STYLE_MAIN: Style = Style::new().fg(Color::White); //.bg(Color::Black);
const BOX_SELECTED_BOX_STYLE: Style = Style::new().fg(Color::White);
const BOX_UNSELECTED_BORDER_STYLE: Style = Style::new().fg(Color::DarkGray);
const NORMAL_ROW_BG: Color = Color::Black;