history bang (#4735)

* history bang

* change of char
This commit is contained in:
Fernando Herrera 2022-03-05 09:38:35 +00:00 committed by GitHub
parent bc119a5e98
commit 488f81d012
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View file

@ -3392,7 +3392,7 @@ dependencies = [
[[package]]
name = "reedline"
version = "0.2.0"
source = "git+https://github.com/nushell/reedline?branch=main#e75a3c340a6062c6843956a8ebca234b98f33f0d"
source = "git+https://github.com/nushell/reedline?branch=main#3209848ddb132e9ffbc8baf9d0f3bbdf3f729a90"
dependencies = [
"chrono",
"crossterm",

View file

@ -187,7 +187,7 @@ let $config = {
}
history_config: {
page_size: 10
selector: ":"
selector: "!"
text_style: green
selected_text_style: green_reverse
marker: "? "

View file

@ -87,8 +87,8 @@ pub(crate) fn add_history_menu(line_editor: Reedline, config: &Config) -> Reedli
.and_then(|value| value.as_string().ok())
{
Some(value) => {
let char = value.chars().next().unwrap_or(':');
history_menu.with_row_char(char)
let char = value.chars().next().unwrap_or('!');
history_menu.with_selection_char(char)
}
None => history_menu,
};