summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2022-01-21 16:27:47 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2022-01-21 16:27:47 +0800
commite2686952b4daf4c35303689c36bebc3dfe3faf29 (patch)
treeeee0f76cbb01bb240a9ef7e8a97333e5e1d8b4f2
parent6dbaa570014f27b20ca719f5a092e768e4c8289d (diff)
feat: interactive mode learns 'toggle [a]ll' and 'remove [a]ll'.
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.
-rw-r--r--src/interactive/widgets/entries.rs2
-rw-r--r--src/interactive/widgets/mark.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/interactive/widgets/entries.rs b/src/interactive/widgets/entries.rs
index 5552d08..3f39a73 100644
--- a/src/interactive/widgets/entries.rs
+++ b/src/interactive/widgets/entries.rs
@@ -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(
diff --git a/src/interactive/widgets/mark.rs b/src/interactive/widgets/mark.rs
index 19f2173..291c149 100644
--- a/src/interactive/widgets/mark.rs
+++ b/src/interactive/widgets/mark.rs
@@ -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(