Skip to content

Commit

Permalink
feat: interactive mode learns 'toggle [a]ll' and 'remove [a]ll'.
Browse files Browse the repository at this point in the history
In the mark pane, the 'a' key will now toggle all entries.
This is particularly interesting for selecting entries to
exclude by hande and then invert the selection by toggling [a]ll.

In the mark pane, toggling all with the 'a' key means removing
all entries and closing the pane.
  • Loading branch information
Byron committed Jan 21, 2022
1 parent 6dbaa57 commit e268695
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/interactive/widgets/entries.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ impl Entries {
);
}
let bound = line_bound(bound, bound.height.saturating_sub(1) as usize);
let help_text = " mark-move = d | mark-toggle = space ";
let help_text = " mark-move = d | mark-toggle = space | toggle-all = a";
let help_text_block_width = block_width(help_text);
if help_text_block_width <= bound.width {
draw_text_nowrap_fn(
Expand Down
2 changes: 1 addition & 1 deletion src/interactive/widgets/mark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ impl MarkPane {
);
}
let bound = line_bound(bound, bound.height.saturating_sub(1) as usize);
let help_text = " mark-toggle = space|d";
let help_text = " mark-toggle = space,d | remove-all = a";
let help_text_block_width = block_width(help_text);
if help_text_block_width <= bound.width {
draw_text_nowrap_fn(
Expand Down

0 comments on commit e268695

Please sign in to comment.