Skip to content

Commit

Permalink
history bang (#4735)
Browse files Browse the repository at this point in the history
* history bang

* change of char
  • Loading branch information
elferherrera committed Mar 5, 2022
1 parent bc119a5 commit 488f81d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/sample_config/default_config.nu
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ let $config = {
}
history_config: {
page_size: 10
selector: ":"
selector: "!"
text_style: green
selected_text_style: green_reverse
marker: "? "
Expand Down
4 changes: 2 additions & 2 deletions src/reedline_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};
Expand Down

0 comments on commit 488f81d

Please sign in to comment.