mirror of
https://github.com/denisidoro/navi
synced 2025-02-16 12:38:28 +00:00
Add ctrl-r binding for toggle-all (#402)
This commit is contained in:
parent
4cbbe38712
commit
0e902d3230
1 changed files with 7 additions and 1 deletions
|
@ -119,6 +119,12 @@ impl Finder for FinderChoice {
|
|||
_ => 2,
|
||||
};
|
||||
|
||||
let bindings = if opts.suggestion_type == SuggestionType::MultipleSelections {
|
||||
",ctrl-r:toggle-all"
|
||||
} else {
|
||||
""
|
||||
};
|
||||
|
||||
command.args(&[
|
||||
"--preview-window",
|
||||
format!("up:{}", preview_height).as_str(),
|
||||
|
@ -128,7 +134,7 @@ impl Finder for FinderChoice {
|
|||
display::DELIMITER.to_string().as_str(),
|
||||
"--ansi",
|
||||
"--bind",
|
||||
"ctrl-j:down,ctrl-k:up",
|
||||
format!("ctrl-j:down,ctrl-k:up{}", bindings).as_str(),
|
||||
"--exact",
|
||||
]);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue