summaryrefslogtreecommitdiff
path: root/modules/prog-general.el
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2025-10-29 13:14:00 -0500
committerCraig Jennings <c@cjennings.net>2025-10-29 13:14:00 -0500
commit65c5a4805ce373f80f3cfb048c497e2ecd65235e (patch)
treed76208448d4f9fc3af93257e94e2386d981ffdff /modules/prog-general.el
parenta9773df25b6ee0e721b6b5e0e9f9872ffa86d796 (diff)
fix(dirvish): move deadgrep from D to G, preserve dired-do-delete on D
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 <noreply@anthropic.com>
Diffstat (limited to 'modules/prog-general.el')
-rw-r--r--modules/prog-general.el2
1 files changed, 1 insertions, 1 deletions
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 ---------------------------------