From 1ec37da2485f69319a2d9eef819c8204ebd0b884 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 30 May 2020 22:53:13 -0700 Subject: [PATCH] wezterm: move search overlay to overlay dir --- src/frontend/gui/mod.rs | 1 - src/frontend/gui/overlay/mod.rs | 2 ++ src/frontend/gui/{ => overlay}/search.rs | 0 src/frontend/gui/termwindow.rs | 3 +-- 4 files changed, 3 insertions(+), 3 deletions(-) rename src/frontend/gui/{ => overlay}/search.rs (100%) diff --git a/src/frontend/gui/mod.rs b/src/frontend/gui/mod.rs index 155e333f1..f2bc079a5 100644 --- a/src/frontend/gui/mod.rs +++ b/src/frontend/gui/mod.rs @@ -13,7 +13,6 @@ mod overlay; mod quad; mod renderstate; mod scrollbar; -mod search; mod selection; mod tabbar; mod termwindow; diff --git a/src/frontend/gui/overlay/mod.rs b/src/frontend/gui/overlay/mod.rs index b07b60ada..170d5919b 100644 --- a/src/frontend/gui/overlay/mod.rs +++ b/src/frontend/gui/overlay/mod.rs @@ -5,9 +5,11 @@ use std::pin::Pin; use std::rc::Rc; mod launcher; +mod search; mod tabnavigator; pub use launcher::launcher; +pub use search::SearchOverlay; pub use tabnavigator::tab_navigator; pub fn start_overlay( diff --git a/src/frontend/gui/search.rs b/src/frontend/gui/overlay/search.rs similarity index 100% rename from src/frontend/gui/search.rs rename to src/frontend/gui/overlay/search.rs diff --git a/src/frontend/gui/termwindow.rs b/src/frontend/gui/termwindow.rs index 98e0d893b..0abdd0919 100644 --- a/src/frontend/gui/termwindow.rs +++ b/src/frontend/gui/termwindow.rs @@ -8,9 +8,8 @@ use crate::font::units::*; use crate::font::FontConfiguration; use crate::frontend::activity::Activity; use crate::frontend::front_end; -use crate::frontend::gui::overlay::{launcher, start_overlay, tab_navigator}; +use crate::frontend::gui::overlay::{launcher, start_overlay, tab_navigator, SearchOverlay}; use crate::frontend::gui::scrollbar::*; -use crate::frontend::gui::search::*; use crate::frontend::gui::selection::*; use crate::frontend::gui::tabbar::{TabBarItem, TabBarState}; use crate::keyassignment::{