summaryrefslogtreecommitdiff
path: root/helix-view/src/commands.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-12-02 00:44:51 +0000
committerGitHub2020-12-02 00:44:51 +0000
commit2e12fc9a7cd221bb7b5f4b5c1ece599089770ccb (patch)
treeb419e4ac033207d20ec6ca176b20da072944f996 /helix-view/src/commands.rs
parentbc2c652fe885c7e7953224268688a6d7b6dea80e (diff)
parent1a3c647adf1f252478bf38537bde87f7e5f14ab0 (diff)
Merge pull request #4 from helix-editor/completion-suggestion
Completion suggestion
Diffstat (limited to 'helix-view/src/commands.rs')
-rw-r--r--helix-view/src/commands.rs17
1 files changed, 3 insertions, 14 deletions
diff --git a/helix-view/src/commands.rs b/helix-view/src/commands.rs
index 33fc06e4..1d7737f0 100644
--- a/helix-view/src/commands.rs
+++ b/helix-view/src/commands.rs
@@ -307,23 +307,12 @@ pub fn append_mode(view: &mut View, _count: usize) {
})
}
-pub fn command_mode(_view: &mut View, _count: usize) {
- use crate::Editor;
-
- let prompt = Prompt::new(
- ":".to_owned(),
- |_input: &str| None, // completion
- |editor: &mut Editor, input: &str| match input {
- "q" => editor.should_close = true,
- _ => (),
- },
- );
+// TODO: I, A, o and O can share a lot of the primitives.
- // set_prompt(prompt)
+pub fn command_mode(_view: &mut View, _count: usize) {
+ unimplemented!()
}
-// TODO: I, A, o and O can share a lot of the primitives.
-
// calculate line numbers for each selection range
fn selection_lines(state: &State) -> Vec<usize> {
let mut lines = state