diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2021-09-04 10:50:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-04 10:50:03 +0200 |
commit | fb2b990072625eaecc23beb76bcd197c6536e80a (patch) | |
tree | 7ce2c42dccc7a4def7d983b51fd28a54719e330b /src/queue.rs | |
parent | 3b5d43ecb28d4846e4f5d16b3fa68ab63fd776c9 (diff) |
find files via fuzzy finder (#890)
Diffstat (limited to 'src/queue.rs')
-rw-r--r-- | src/queue.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/queue.rs b/src/queue.rs index d9bd740c..94cc43ab 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -1,7 +1,11 @@ use crate::{components::AppOption, tabs::StashingOptions}; -use asyncgit::sync::{diff::DiffLinePosition, CommitId, CommitTags}; +use asyncgit::sync::{ + diff::DiffLinePosition, CommitId, CommitTags, TreeFile, +}; use bitflags::bitflags; -use std::{cell::RefCell, collections::VecDeque, rc::Rc}; +use std::{ + cell::RefCell, collections::VecDeque, path::PathBuf, rc::Rc, +}; bitflags! { /// flags defining what part of the app need to update @@ -87,6 +91,10 @@ pub enum InternalEvent { OpenFileTree(CommitId), /// OptionSwitched(AppOption), + /// + OpenFileFinder(Vec<TreeFile>), + /// + FileFinderChanged(Option<PathBuf>), } /// single threaded simple queue for components to communicate with each other |