From 0651e2b31f4073c510d624ff3232c3db26e4398b Mon Sep 17 00:00:00 2001 From: Stefan Holderbach Date: Fri, 21 Jan 2022 20:21:22 +0100 Subject: [PATCH] Upgrade reedline for partial hint completion (#802) --- Cargo.lock | 2 +- src/reedline_config.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 01a7c43d0..873b57929 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2863,7 +2863,7 @@ dependencies = [ [[package]] name = "reedline" version = "0.2.0" -source = "git+https://github.com/nushell/reedline?branch=main#180d3dd6c4c1982169f84083a29a1a2606b30d60" +source = "git+https://github.com/nushell/reedline?branch=main#7a07ab2bcca2e0287a1efcf8ccdf9845229428c5" dependencies = [ "chrono", "crossterm", diff --git a/src/reedline_config.rs b/src/reedline_config.rs index c24922c69..2497471d7 100644 --- a/src/reedline_config.rs +++ b/src/reedline_config.rs @@ -194,7 +194,8 @@ fn parse_event(value: Value, config: &Config) -> Result ReedlineEvent::None, "actionhandler" => ReedlineEvent::ActionHandler, "clearscreen" => ReedlineEvent::ClearScreen, - "complete" => ReedlineEvent::Complete, + "historyhintcomplete" => ReedlineEvent::HistoryHintComplete, + "historyhintwordcomplete" => ReedlineEvent::HistoryHintWordComplete, "ctrld" => ReedlineEvent::CtrlD, "ctrlc" => ReedlineEvent::CtrlC, "enter" => ReedlineEvent::Enter,