Skip to content

Commit

Permalink
Added key binding to drop unselected
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenldl committed Jan 6, 2025
1 parent 8c30c18 commit d8e99a4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/ui.ml
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ module Bottom_pane = struct
{ label = "m"; msg = "marked" };
];
[
{ label = ""; msg = "" };
{ label = "Shift+D"; msg = "unselected" };
{ label = "Shift+L"; msg = "unlisted" };
{ label = "Shift+M"; msg = "unmarked" };
];
Expand Down Expand Up @@ -965,6 +965,12 @@ let keyboard_handler
) search_result_group;
true
)
| (`ASCII 'D', []) -> (
Option.iter (fun (doc, _search_results) ->
drop ~document_count (`All_except (Document.path doc))
) search_result_group;
true
)
| (`ASCII 'l', []) -> (
drop ~document_count `Listed;
true
Expand Down

0 comments on commit d8e99a4

Please sign in to comment.