From 26a9aaacf5852e1b3eed2a518dea8a09d5fce1b1 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Sat, 4 Sep 2021 13:28:23 +0200 Subject: [PATCH] rename --- src/app.rs | 6 +++--- src/components/{file_find.rs => file_find_popup.rs} | 8 ++++---- src/components/mod.rs | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) rename src/components/{file_find.rs => file_find_popup.rs} (97%) diff --git a/src/app.rs b/src/app.rs index 2692314a..4de96aa5 100644 --- a/src/app.rs +++ b/src/app.rs @@ -6,7 +6,7 @@ use crate::{ BranchListComponent, CommandBlocking, CommandInfo, CommitComponent, CompareCommitsComponent, Component, ConfirmComponent, CreateBranchComponent, DrawableComponent, - ExternalEditorComponent, FileFindComponent, HelpComponent, + ExternalEditorComponent, FileFindPopup, HelpComponent, InspectCommitComponent, MsgComponent, OptionsPopupComponent, PullComponent, PushComponent, PushTagsComponent, RenameBranchComponent, RevisionFilesPopup, SharedOptions, @@ -51,7 +51,7 @@ pub struct App { compare_commits_popup: CompareCommitsComponent, external_editor_popup: ExternalEditorComponent, revision_files_popup: RevisionFilesPopup, - find_file_popup: FileFindComponent, + find_file_popup: FileFindPopup, push_popup: PushComponent, push_tags_popup: PushTagsComponent, pull_popup: PullComponent, @@ -190,7 +190,7 @@ impl App { key_config.clone(), options.clone(), ), - find_file_popup: FileFindComponent::new( + find_file_popup: FileFindPopup::new( &queue, theme.clone(), key_config.clone(), diff --git a/src/components/file_find.rs b/src/components/file_find_popup.rs similarity index 97% rename from src/components/file_find.rs rename to src/components/file_find_popup.rs index e302783b..36079aa9 100644 --- a/src/components/file_find.rs +++ b/src/components/file_find_popup.rs @@ -22,7 +22,7 @@ use tui::{ Frame, }; -pub struct FileFindComponent { +pub struct FileFindPopup { queue: Queue, visible: bool, find_text: TextInputComponent, @@ -34,7 +34,7 @@ pub struct FileFindComponent { key_config: SharedKeyConfig, } -impl FileFindComponent { +impl FileFindPopup { /// pub fn new( queue: &Queue, @@ -131,7 +131,7 @@ impl FileFindComponent { } } -impl DrawableComponent for FileFindComponent { +impl DrawableComponent for FileFindPopup { fn draw( &self, f: &mut Frame, @@ -213,7 +213,7 @@ impl DrawableComponent for FileFindComponent { } } -impl Component for FileFindComponent { +impl Component for FileFindPopup { fn commands( &self, out: &mut Vec, diff --git a/src/components/mod.rs b/src/components/mod.rs index 064f7edf..3dcf25c5 100644 --- a/src/components/mod.rs +++ b/src/components/mod.rs @@ -10,7 +10,7 @@ mod create_branch; mod cred; mod diff; mod externaleditor; -mod file_find; +mod file_find_popup; mod filetree; mod help; mod inspect_commit; @@ -42,7 +42,7 @@ pub use compare_commits::CompareCommitsComponent; pub use create_branch::CreateBranchComponent; pub use diff::DiffComponent; pub use externaleditor::ExternalEditorComponent; -pub use file_find::FileFindComponent; +pub use file_find_popup::FileFindPopup; pub use help::HelpComponent; pub use inspect_commit::InspectCommitComponent; pub use msg::MsgComponent;