From 65c5a4805ce373f80f3cfb048c497e2ecd65235e Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Wed, 29 Oct 2025 13:14:00 -0500 Subject: fix(dirvish): move deadgrep from D to G, preserve dired-do-delete on D MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The previous commit incorrectly moved deadgrep to 'D', which conflicts with the important dired-do-delete command (immediate delete of marked files). This commit moves deadgrep to 'G' instead. ## Changes **prog-general.el:** - Move cj/deadgrep-here from 'D' to 'G' (was dired-do-chgrp, rarely used) **dirvish-config.el:** - Updated Commentary to document both 'D' and 'G' keybindings - 'D' remains dired-do-delete (standard dired immediate delete) - 'G' is now deadgrep search ## Final Keybinding Map | Key | Binding | Purpose | |-----|-------------------------------|--------------------------------| | d | cj/dirvish-duplicate-file | Duplicate with "-copy" suffix | | D | dired-do-delete | Delete marked files (standard) | | g | dirvish-quick-access | Quick directory menu | | G | cj/deadgrep-here | Search with deadgrep | Capital G is mnemonic for "Grep" and doesn't conflict with important dired commands. dired-do-chgrp is rarely used and not a loss. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- modules/dirvish-config.el | 2 ++ modules/prog-general.el | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/dirvish-config.el b/modules/dirvish-config.el index 6c92db09..0534823a 100644 --- a/modules/dirvish-config.el +++ b/modules/dirvish-config.el @@ -9,7 +9,9 @@ ;; ;; Key Bindings: ;; - d: Duplicate file at point (adds "-copy" before extension) +;; - D: Delete marked files immediately (dired-do-delete) ;; - g: Quick access menu (jump to predefined directories) +;; - G: Search with deadgrep in current directory ;; - f: Open system file manager in current directory ;; - o/O: Open file with xdg-open/custom command ;; - l: Copy file path (project-relative or home-relative) diff --git a/modules/prog-general.el b/modules/prog-general.el index 9929228d..3ece928a 100644 --- a/modules/prog-general.el +++ b/modules/prog-general.el @@ -251,7 +251,7 @@ If no such file exists there, display a message." (deadgrep term dir)))) (with-eval-after-load 'dired - (keymap-set dired-mode-map "D" #'cj/deadgrep-here)) + (keymap-set dired-mode-map "G" #'cj/deadgrep-here)) ;; ---------------------------------- Snippets --------------------------------- -- cgit v1.2.3