From e1e314006d98811abaeee989e70fd13db953f09e Mon Sep 17 00:00:00 2001 From: Gerry Agbobada Date: Mon, 30 Dec 2024 10:51:55 +0100 Subject: [PATCH] =?UTF-8?q?fix(layout):=20Rotate=20b=C3=A9po=20keybindings?= =?UTF-8?q?=20in=20dirvish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Close: #8129 --- modules/input/layout/+bepo.el | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/modules/input/layout/+bepo.el b/modules/input/layout/+bepo.el index 549e553fcf3..e93a3139d24 100644 --- a/modules/input/layout/+bepo.el +++ b/modules/input/layout/+bepo.el @@ -211,6 +211,23 @@ In all cases, 'h' functions go to 'c' and 'l' ones go to 'r' so the navigation k "s" nil "t" nil)) + (after! dirvish + ;; Without this, "s" stays mapped to 'symlinks' prefix of dirvish (in the + ;; 'dirvish' map, configured in (:emacs dired) module + (map! :map dirvish-mode-map "s" nil) + ;; Manual rotation of the gh/gl bindings + (map! :map dirvish-mode-map + :n "gh" nil + :n "gl" nil + :n "gc" '#dirvish-subtree-up + :n "gr" '#dirvish-subtree-toggle) + (if (eq +layout-bepo-cr-rotation-style 'ergodis) + (map! :map dirvish-mode-map + :n "gh" '#revert-buffer) + (map! :map dirvish-mode-map + :n "gl" '#revert-buffer)) + (+layout-bepo-rotate-keymaps '(dirvish-mode-map))) + ;; Start of the Magit zone ;;