From 58c5ea493755c9c640c3c0e96babebc6221e4461 Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Wed, 12 Jan 2022 10:57:37 +0000 Subject: [PATCH] menu with tab (#724) --- Cargo.lock | 2 +- src/main.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f623d5fa35..2adae17fdf 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2777,7 +2777,7 @@ dependencies = [ [[package]] name = "reedline" version = "0.2.0" -source = "git+https://github.com/nushell/reedline?branch=main#2cb2e40195b86145dd90779f4015dc834a62b720" +source = "git+https://github.com/nushell/reedline?branch=main#63aeeb62e4c4292dff42e922a28178e1ad76d6e9" dependencies = [ "chrono", "crossterm", diff --git a/src/main.rs b/src/main.rs index ab08a921b4..b6f195541f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -388,17 +388,17 @@ fn main() -> Result<()> { let line_editor = Reedline::create() .into_diagnostic()? - .with_completion_action_handler(Box::new(FuzzyCompletion { - completer: Box::new(NuCompleter::new(engine_state.clone())), - })) + // .with_completion_action_handler(Box::new(FuzzyCompletion { + // completer: Box::new(NuCompleter::new(engine_state.clone())), + // })) + // .with_completion_action_handler(Box::new( + // ListCompletionHandler::default().with_completer(Box::new(completer)), + // )) .with_highlighter(Box::new(NuHighlighter { engine_state: engine_state.clone(), config: config.clone(), })) .with_animation(config.animate_prompt) - // .with_completion_action_handler(Box::new( - // ListCompletionHandler::default().with_completer(Box::new(completer)), - // )) .with_validator(Box::new(NuValidator { engine_state: engine_state.clone(), }))