Skip to content

Commit 26a9aaa

Browse files
author
Stephan Dilly
committed
rename
1 parent 24217a1 commit 26a9aaa

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/app.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use crate::{
66
BranchListComponent, CommandBlocking, CommandInfo,
77
CommitComponent, CompareCommitsComponent, Component,
88
ConfirmComponent, CreateBranchComponent, DrawableComponent,
9-
ExternalEditorComponent, FileFindComponent, HelpComponent,
9+
ExternalEditorComponent, FileFindPopup, HelpComponent,
1010
InspectCommitComponent, MsgComponent, OptionsPopupComponent,
1111
PullComponent, PushComponent, PushTagsComponent,
1212
RenameBranchComponent, RevisionFilesPopup, SharedOptions,
@@ -51,7 +51,7 @@ pub struct App {
5151
compare_commits_popup: CompareCommitsComponent,
5252
external_editor_popup: ExternalEditorComponent,
5353
revision_files_popup: RevisionFilesPopup,
54-
find_file_popup: FileFindComponent,
54+
find_file_popup: FileFindPopup,
5555
push_popup: PushComponent,
5656
push_tags_popup: PushTagsComponent,
5757
pull_popup: PullComponent,
@@ -190,7 +190,7 @@ impl App {
190190
key_config.clone(),
191191
options.clone(),
192192
),
193-
find_file_popup: FileFindComponent::new(
193+
find_file_popup: FileFindPopup::new(
194194
&queue,
195195
theme.clone(),
196196
key_config.clone(),

src/components/file_find.rs renamed to src/components/file_find_popup.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use tui::{
2222
Frame,
2323
};
2424

25-
pub struct FileFindComponent {
25+
pub struct FileFindPopup {
2626
queue: Queue,
2727
visible: bool,
2828
find_text: TextInputComponent,
@@ -34,7 +34,7 @@ pub struct FileFindComponent {
3434
key_config: SharedKeyConfig,
3535
}
3636

37-
impl FileFindComponent {
37+
impl FileFindPopup {
3838
///
3939
pub fn new(
4040
queue: &Queue,
@@ -131,7 +131,7 @@ impl FileFindComponent {
131131
}
132132
}
133133

134-
impl DrawableComponent for FileFindComponent {
134+
impl DrawableComponent for FileFindPopup {
135135
fn draw<B: Backend>(
136136
&self,
137137
f: &mut Frame<B>,
@@ -213,7 +213,7 @@ impl DrawableComponent for FileFindComponent {
213213
}
214214
}
215215

216-
impl Component for FileFindComponent {
216+
impl Component for FileFindPopup {
217217
fn commands(
218218
&self,
219219
out: &mut Vec<CommandInfo>,

src/components/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mod create_branch;
1010
mod cred;
1111
mod diff;
1212
mod externaleditor;
13-
mod file_find;
13+
mod file_find_popup;
1414
mod filetree;
1515
mod help;
1616
mod inspect_commit;
@@ -42,7 +42,7 @@ pub use compare_commits::CompareCommitsComponent;
4242
pub use create_branch::CreateBranchComponent;
4343
pub use diff::DiffComponent;
4444
pub use externaleditor::ExternalEditorComponent;
45-
pub use file_find::FileFindComponent;
45+
pub use file_find_popup::FileFindPopup;
4646
pub use help::HelpComponent;
4747
pub use inspect_commit::InspectCommitComponent;
4848
pub use msg::MsgComponent;

0 commit comments

Comments
 (0)