From 69b2ed556652ae80c3303753c64761414ed3139e Mon Sep 17 00:00:00 2001 From: JT <547158+jntrnr@users.noreply.github.com> Date: Thu, 20 Jan 2022 18:58:48 -0500 Subject: [PATCH] bump reedline (#788) --- Cargo.lock | 2 +- src/reedline_config.rs | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3d19765a92..87f0156db2 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#52675664d2dd106ac82483fd5134588d7e7a0c11" +source = "git+https://github.com/nushell/reedline?branch=main#cd3516c0d5d0825d6942eff926652003f9c8138d" dependencies = [ "chrono", "crossterm", diff --git a/src/reedline_config.rs b/src/reedline_config.rs index b1de03611a..1c655c075b 100644 --- a/src/reedline_config.rs +++ b/src/reedline_config.rs @@ -204,12 +204,15 @@ fn parse_event(value: Value, config: &Config) -> Result ReedlineEvent::Down, "right" => ReedlineEvent::Right, "left" => ReedlineEvent::Left, - "nextelement" => ReedlineEvent::NextElement, "nexthistory" => ReedlineEvent::NextHistory, - "previouselement" => ReedlineEvent::PreviousElement, "previoushistory" => ReedlineEvent::PreviousHistory, "searchhistory" => ReedlineEvent::SearchHistory, "repaint" => ReedlineEvent::Repaint, + "menudown" => ReedlineEvent::MenuDown, + "menuup" => ReedlineEvent::MenuUp, + "menuleft" => ReedlineEvent::MenuLeft, + "menuright" => ReedlineEvent::MenuRight, + // TODO: add ReedlineEvent::Mouse // TODO: add ReedlineEvent::Resize // TODO: add ReedlineEvent::Paste