summaryrefslogtreecommitdiff
path: root/modules/external-open.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/external-open.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/external-open.el')
-rw-r--r--modules/external-open.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/external-open.el b/modules/external-open.el
index 41d842fb..8c4db810 100644
--- a/modules/external-open.el
+++ b/modules/external-open.el
@@ -111,6 +111,11 @@
(keymap-global-set "C-c x o" #'cj/open-this-file-with)
+(with-eval-after-load 'which-key
+ (which-key-add-key-based-replacements
+ "C-c x" "external open menu"
+ "C-c x o" "open file with"))
+
;; -------------------- Open Files With Default File Handler -------------------
(defun cj/find-file-auto (orig-fun &rest args)