From 6a972312d4febd2dcd6ac6f4cfb32c90aebfe546 Mon Sep 17 00:00:00 2001 From: Fernando Herrera Date: Tue, 3 May 2022 20:52:53 +0100 Subject: [PATCH] added open editor event in config parsing (#5426) --- Cargo.lock | 2 +- crates/nu-cli/src/reedline_config.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 7d25cd77b0..7109805500 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3716,7 +3716,7 @@ dependencies = [ [[package]] name = "reedline" version = "0.4.0" -source = "git+https://github.com/nushell/reedline?branch=main#29f30a8f7926ad5cded3be564b6c26679c10e1c5" +source = "git+https://github.com/nushell/reedline?branch=main#33a91e53a25e7edcbdf93224497c1a1b55e74fae" dependencies = [ "chrono", "crossterm", diff --git a/crates/nu-cli/src/reedline_config.rs b/crates/nu-cli/src/reedline_config.rs index 178a804f36..a1ada1efd5 100644 --- a/crates/nu-cli/src/reedline_config.rs +++ b/crates/nu-cli/src/reedline_config.rs @@ -837,6 +837,7 @@ fn event_from_record( "menuprevious" => ReedlineEvent::MenuPrevious, "menupagenext" => ReedlineEvent::MenuPageNext, "menupageprevious" => ReedlineEvent::MenuPagePrevious, + "openeditor" => ReedlineEvent::OpenEditor, "menu" => { let menu = extract_value("name", cols, vals, span)?; ReedlineEvent::Menu(menu.into_string("", config))