aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/prompt.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-view/src/prompt.rs')
-rw-r--r--helix-view/src/prompt.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/helix-view/src/prompt.rs b/helix-view/src/prompt.rs
index a3feaeec..729533c5 100644
--- a/helix-view/src/prompt.rs
+++ b/helix-view/src/prompt.rs
@@ -1,5 +1,4 @@
-use crate::commands;
-use crate::{Editor, View};
+use crate::Editor;
use crossterm::event::{KeyCode, KeyEvent, KeyModifiers};
use std::string::String;
@@ -91,6 +90,12 @@ impl Prompt {
code: KeyCode::Enter,
..
} => (self.callback_fn)(editor, &self.line),
+ KeyEvent {
+ code: KeyCode::Tab, ..
+ } => {
+ let _completion = (self.completion_fn)(&self.line);
+ }
+
_ => (),
}
}