From 941f3c816519ed50b32e447872bb3537dadfbef5 Mon Sep 17 00:00:00 2001 From: Rutherther Date: Sun, 1 Feb 2026 15:33:42 +0100 Subject: [PATCH] feat: simplify keybindings --- init.el | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/init.el b/init.el index fef720ce4c6aea9c7dc3156812a5d4dba40223bc..fee10c1b87cb19ab9515f2d4b97ea57555cb0429 100644 --- a/init.el +++ b/init.el @@ -801,6 +801,7 @@ (project-dired "Dired" "d") (my/magit-current-window "Magit" "m"))) :general (my-leader + "P" '(project-switch-project :wk "Switch project") "p" '(:keymap project-prefix-map :wk "Project")) :init (defun my/magit-current-window () @@ -1317,15 +1318,22 @@ "C-" 'comint-send-input "N" 'evil-search-previous "C-n" 'evil-search-next) + (my-local-leader agent-shell-viewport-edit-mode-map + "o" 'agent-shell-other-buffer) + (my-local-leader agent-shell-viewport-view-mode-map + "o" 'agent-shell-other-buffer) + (my-local-leader agent-shell-mode-map + "o" 'agent-shell-other-buffer) (my-leader - "A A" '(agent-shell :wk "Agent shell") - "A a" '(agent-shell :wk "Agent shell") - "A o" '(agent-shell-other-buffer :wk "Toggle shell") - "A d" '(agent-shell-send-dwim :wk "Send DWIM") - "A r" '(agent-shell-send-region :wk "Send region") - "A s" '(agent-shell-send-screenshot :wk "Send screenshot") - "A f" '(agent-shell-send-current-file :wk "Send current file") - "A F" '(agent-shell-send-other-file :wk "Send other file")) + "A" '(agent-shell :wk "Agent shell") + ;; "A a" '(agent-shell :wk "Agent shell") + ;; "A o" '(agent-shell-other-buffer :wk "Toggle shell") + ;; "A d" '(agent-shell-send-dwim :wk "Send DWIM") + ;; "A r" '(agent-shell-send-region :wk "Send region") + ;; "A s" '(agent-shell-send-screenshot :wk "Send screenshot") + ;; "A f" '(agent-shell-send-current-file :wk "Send current file") + ;; "A F" '(agent-shell-send-other-file :wk "Send other file") + ) :custom ;; Usage (agent-shell-prefer-viewport-interaction t)