aboutsummaryrefslogtreecommitdiff
path: root/pearl.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-06 15:37:22 -0500
committerCraig Jennings <c@cjennings.net>2026-06-06 15:37:22 -0500
commit9564501efe2488b9136dc19a7a8d385b8b074b46 (patch)
tree86a6a0d5a3eb8a2156b891655562eec14e32dcc3 /pearl.el
parent36c364111ae7d1da72393669c68e29e1b27e91dc (diff)
downloadpearl-9564501efe2488b9136dc19a7a8d385b8b074b46.tar.gz
pearl-9564501efe2488b9136dc19a7a8d385b8b074b46.zip
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.
Diffstat (limited to 'pearl.el')
-rw-r--r--pearl.el6
1 files changed, 5 insertions, 1 deletions
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)))