bump reedline (#788)

This commit is contained in:
JT 2022-01-20 18:58:48 -05:00 committed by GitHub
parent b4e61a056c
commit 69b2ed5566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 3 deletions

2
Cargo.lock generated
View File

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

View File

@ -204,12 +204,15 @@ fn parse_event(value: Value, config: &Config) -> Result<ReedlineEvent, ShellErro
"down" => ReedlineEvent::Down, "down" => ReedlineEvent::Down,
"right" => ReedlineEvent::Right, "right" => ReedlineEvent::Right,
"left" => ReedlineEvent::Left, "left" => ReedlineEvent::Left,
"nextelement" => ReedlineEvent::NextElement,
"nexthistory" => ReedlineEvent::NextHistory, "nexthistory" => ReedlineEvent::NextHistory,
"previouselement" => ReedlineEvent::PreviousElement,
"previoushistory" => ReedlineEvent::PreviousHistory, "previoushistory" => ReedlineEvent::PreviousHistory,
"searchhistory" => ReedlineEvent::SearchHistory, "searchhistory" => ReedlineEvent::SearchHistory,
"repaint" => ReedlineEvent::Repaint, "repaint" => ReedlineEvent::Repaint,
"menudown" => ReedlineEvent::MenuDown,
"menuup" => ReedlineEvent::MenuUp,
"menuleft" => ReedlineEvent::MenuLeft,
"menuright" => ReedlineEvent::MenuRight,
// TODO: add ReedlineEvent::Mouse // TODO: add ReedlineEvent::Mouse
// TODO: add ReedlineEvent::Resize // TODO: add ReedlineEvent::Resize
// TODO: add ReedlineEvent::Paste // TODO: add ReedlineEvent::Paste