summaryrefslogtreecommitdiff
path: root/modules/custom-text-enclose.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-27 18:45:23 -0500
committerCraig Jennings <c@cjennings.net>2025-10-27 18:45:23 -0500
commit87034eab17625165b884128d8058c1158fc2f50f (patch)
tree24255d08fb90fe748c6a6c41900e138c26e3de04 /modules/custom-text-enclose.el
parent0fc12069864b3d964cf8175173b4f3183bc73c92 (diff)
feat:which-key: Add descriptive labels for custom keymaps
Enhance which-key integration by providing detailed descriptions for new key bindings across multiple modules. This improves the usability of custom keymaps by clarifying the purpose of each keybinding, making it easier for users to navigate and understand different menus and options available within the configuration. This update ensures that all custom keymaps now display a descriptive label in the which-key popup to explain their functionality, aiding users in identifying keymap purposes promptly.
Diffstat (limited to 'modules/custom-text-enclose.el')
-rw-r--r--modules/custom-text-enclose.el16
1 files changed, 14 insertions, 2 deletions
diff --git a/modules/custom-text-enclose.el b/modules/custom-text-enclose.el
index ccacdd2d..e93e6dea 100644
--- a/modules/custom-text-enclose.el
+++ b/modules/custom-text-enclose.el
@@ -264,11 +264,23 @@ Works on region if active, otherwise entire buffer."
"a" #'cj/append-to-lines-in-region-or-buffer
"p" #'cj/prepend-to-lines-in-region-or-buffer
"i" #'cj/indent-lines-in-region-or-buffer
- "d" #'cj/dedent-lines-in-region-or-buffer)
+ "d" #'cj/dedent-lines-in-region-or-buffer
+ "I" #'change-inner
+ "O" #'change-outer)
(keymap-set cj/custom-keymap "s" cj/enclose-map)
(with-eval-after-load 'which-key
- (which-key-add-key-based-replacements "C-; s" "text enclose menu"))
+ (which-key-add-key-based-replacements
+ "C-; s" "text enclose menu"
+ "C-; s s" "surround text"
+ "C-; s w" "wrap text"
+ "C-; s u" "unwrap text"
+ "C-; s a" "append to lines"
+ "C-; s p" "prepend to lines"
+ "C-; s i" "indent lines"
+ "C-; s d" "dedent lines"
+ "C-; s I" "change inner"
+ "C-; s O" "change outer"))
(provide 'custom-text-enclose)
;;; custom-text-enclose.el ends here.