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]]
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",

View file

@ -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))