diff options
author | UG <55311933+UUGTech@users.noreply.github.com> | 2023-06-20 19:57:36 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-20 12:57:36 +0200 |
commit | e90e8dc53677f81c7b8d884c020f97847aaca4af (patch) | |
tree | 70b3dbe2bb8730d05d0dc29cdff55b4d381606d8 /src/queue.rs | |
parent | be801a336f7fa1297c5184ffb26e7defb2fad7c3 (diff) |
FuzzyFindPopup for general use (#1672)
* replace BranchFindPopup with FuzzyFindPopup
* replace FileFindPopup with FuzzyFindPopup
Diffstat (limited to 'src/queue.rs')
-rw-r--r-- | src/queue.rs | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/queue.rs b/src/queue.rs index 961a53a7..c815ce65 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -1,12 +1,12 @@ use crate::{ components::{ AppOption, BlameFileOpen, FileRevOpen, FileTreeOpen, - InspectCommitOpen, + FuzzyFinderTarget, InspectCommitOpen, }, tabs::StashingOptions, }; use asyncgit::{ - sync::{diff::DiffLinePosition, CommitId, TreeFile}, + sync::{diff::DiffLinePosition, CommitId}, PushType, }; use bitflags::bitflags; @@ -111,13 +111,9 @@ pub enum InternalEvent { /// OptionSwitched(AppOption), /// - OpenFileFinder(Vec<TreeFile>), + OpenFuzzyFinder(Vec<String>, FuzzyFinderTarget), /// - OpenBranchFinder(Vec<String>), - /// - FileFinderChanged(Option<PathBuf>), - /// - BranchFinderChanged(Option<usize>), + FuzzyFinderChanged(usize, String, FuzzyFinderTarget), /// FetchRemotes, /// |