added open editor event in config parsing (#5426)

This commit is contained in:
Fernando Herrera 2022-05-03 20:52:53 +01:00 committed by GitHub
parent ac48f5a318
commit 6a972312d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

2
Cargo.lock generated
View File

@ -3716,7 +3716,7 @@ dependencies = [
[[package]] [[package]]
name = "reedline" name = "reedline"
version = "0.4.0" 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 = [ dependencies = [
"chrono", "chrono",
"crossterm", "crossterm",

View File

@ -837,6 +837,7 @@ fn event_from_record(
"menuprevious" => ReedlineEvent::MenuPrevious, "menuprevious" => ReedlineEvent::MenuPrevious,
"menupagenext" => ReedlineEvent::MenuPageNext, "menupagenext" => ReedlineEvent::MenuPageNext,
"menupageprevious" => ReedlineEvent::MenuPagePrevious, "menupageprevious" => ReedlineEvent::MenuPagePrevious,
"openeditor" => ReedlineEvent::OpenEditor,
"menu" => { "menu" => {
let menu = extract_value("name", cols, vals, span)?; let menu = extract_value("name", cols, vals, span)?;
ReedlineEvent::Menu(menu.into_string("", config)) ReedlineEvent::Menu(menu.into_string("", config))