mirror of
https://github.com/nushell/nushell.git
synced 2025-06-30 22:50:14 +02:00
Set to reedline main branch for development cycle (#5249)
Changes to reedline since `v0.4.0`: - vi normal mode `I` for inserting at line beginning - `InsertNewline` edit command that can be bound to `Alt-Enter` if desired to have line breaks without relying on the `Validator` - `ClearScreen` will directly clear the visible screen. `Signal::CtrlL` has been removed. - `ClearScrollback` will clear the screen and scrollback. Can be used to mimic macOS `Cmd-K` screen clearing. Helps with #5089
This commit is contained in:
committed by
GitHub
parent
7e97be1dd4
commit
995d8db1fe
@ -18,11 +18,10 @@ nu-protocol = { path = "../nu-protocol", version = "0.61.1" }
|
||||
nu-utils = { path = "../nu-utils", version = "0.61.1" }
|
||||
nu-ansi-term = "0.45.1"
|
||||
nu-color-config = { path = "../nu-color-config", version = "0.61.1" }
|
||||
|
||||
reedline = { git = "https://github.com/nushell/reedline", branch = "main", features = ["bashisms"]}
|
||||
crossterm = "0.23.0"
|
||||
miette = { version = "4.5.0", features = ["fancy"] }
|
||||
thiserror = "1.0.29"
|
||||
reedline = { version = "0.4.0", features = ["bashisms"]}
|
||||
|
||||
log = "0.4"
|
||||
is_executable = "1.0.1"
|
||||
|
@ -814,6 +814,7 @@ fn event_from_record(
|
||||
"none" => ReedlineEvent::None,
|
||||
"actionhandler" => ReedlineEvent::ActionHandler,
|
||||
"clearscreen" => ReedlineEvent::ClearScreen,
|
||||
"clearscrollback" => ReedlineEvent::ClearScrollback,
|
||||
"historyhintcomplete" => ReedlineEvent::HistoryHintComplete,
|
||||
"historyhintwordcomplete" => ReedlineEvent::HistoryHintWordComplete,
|
||||
"ctrld" => ReedlineEvent::CtrlD,
|
||||
@ -881,6 +882,7 @@ fn edit_from_record(
|
||||
let value = extract_value("value", cols, vals, span)?;
|
||||
EditCommand::InsertString(value.into_string("", config))
|
||||
}
|
||||
"insertnewline" => EditCommand::InsertNewline,
|
||||
"backspace" => EditCommand::Backspace,
|
||||
"delete" => EditCommand::Delete,
|
||||
"backspaceword" => EditCommand::BackspaceWord,
|
||||
|
@ -314,9 +314,6 @@ pub fn evaluate_repl(
|
||||
println!();
|
||||
break;
|
||||
}
|
||||
Ok(Signal::CtrlL) => {
|
||||
line_editor.clear_screen().into_diagnostic()?;
|
||||
}
|
||||
Err(err) => {
|
||||
let message = err.to_string();
|
||||
if !message.contains("duration") {
|
||||
|
@ -79,7 +79,7 @@ unicode-segmentation = "1.8.0"
|
||||
url = "2.2.1"
|
||||
uuid = { version = "0.8.2", features = ["v4"] }
|
||||
which = { version = "4.2.2", optional = true }
|
||||
reedline = { version = "0.4.0", features = ["bashisms"]}
|
||||
reedline = { git = "https://github.com/nushell/reedline", branch = "main", features = ["bashisms"]}
|
||||
wax = { version = "0.4.0", features = ["diagnostics"] }
|
||||
zip = { version="0.5.9", optional = true }
|
||||
|
||||
|
Reference in New Issue
Block a user