From 9564501efe2488b9136dc19a7a8d385b8b074b46 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 6 Jun 2026 15:37:22 -0500 Subject: feat(keys): bind sort and grouping under the views prefix The interactive view-shaping commands shipped M-x-only. I bound them in the views sub-map so they're reachable from the keyboard: C-; L v s sorts, C-; L v g groups, C-; L v r reverses the sort order, with matching which-key labels. They sit in the views group because there's no dedicated view-shaping group. Opening one means reopening the whole keymap-prefix question that's already parked. So they reshape the active buffer from under a "views" prefix that otherwise manages saved views, a slight category stretch called out in the map's docstring. The transient menu still omits both, pending the same keymap-shape pass. --- pearl.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pearl.el') diff --git a/pearl.el b/pearl.el index ed183dd..236c95d 100644 --- a/pearl.el +++ b/pearl.el @@ -8092,13 +8092,17 @@ point. View-movement commands (run / publish / save-locally) live in (define-key map "U" (cons "publish current view" #'pearl-publish-current-view)) (define-key map "d" (cons "save Linear view locally" #'pearl-save-linear-view-locally)) (define-key map "D" (cons "set default view" #'pearl-set-default-view)) + (define-key map "s" (cons "sort view" #'pearl-set-sort)) + (define-key map "g" (cons "group view" #'pearl-set-grouping)) + (define-key map "r" (cons "reverse order" #'pearl-toggle-sort-order)) map) "Pearl view commands; a sub-keymap of `pearl-prefix-map'. Lowercase `l' / capital `L' run a local / Linear view; `c' / `e' / `k' create / edit / delete a local view. `u' / `U' publish a named / the current local view up to Linear; `d' saves a Linear view down into a new local view. Capital `D' sets the default view `pearl-open-default-view' -opens.") +opens. `s' / `g' shape the active buffer (sort / group); `r' reverses the +sort order.") (defvar pearl-edit-map (let ((map (make-sparse-keymap))) -- cgit v1.2.3