summaryrefslogtreecommitdiffstats
path: root/src/queue.rs
diff options
context:
space:
mode:
authorStephan Dilly <dilly.stephan@gmail.com>2021-09-04 10:50:03 +0200
committerGitHub <noreply@github.com>2021-09-04 10:50:03 +0200
commitfb2b990072625eaecc23beb76bcd197c6536e80a (patch)
tree7ce2c42dccc7a4def7d983b51fd28a54719e330b /src/queue.rs
parent3b5d43ecb28d4846e4f5d16b3fa68ab63fd776c9 (diff)
find files via fuzzy finder (#890)
Diffstat (limited to 'src/queue.rs')
-rw-r--r--src/queue.rs12
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