Closed webloginwu closed 2 years ago
Are you using the latest version of deadgrep?
I used M-x describe package to check deadgrep version I am using, I got the following message:
Package deadgrep is installed.
Status: Installed in ‘deadgrep-20220613.2051/’ (unsigned). Delete
Version: 20220613.2051
Commit: 3bfaccb72b5be38d4db897af81109ff51833ae46
Summary: fast, friendly searching with ripgrep
Requires: emacs-25.1, dash-2.12.0, s-1.11.0, spinner-1.7.3 Homepage: https://github.com/Wilfred/deadgrep Keywords: tools Maintainer: Wilfred Hughes me@wilfred.me.uk Author: Wilfred Hughes me@wilfred.me.uk Other versions: 0.10 (melpa-stable).
Perform text searches with the speed of ripgrep and the comfort of Emacs. This is a bespoke mode that does not rely on compilation-mode, but tries to be a perfect fit for ripgrep.
Install from MELPA, then `M-x deadgrep' will do a search!
What does C-h m
show in a deadgrep results buffer? Are you sure you haven't overridden those keys?
Using the latest version I tested again, the T, C keys don't work, I got the following error in the mini buffer T is undefined C is undefined It seems T, C key binding are not supported, but they are listed in the README.md
The rest of keys works including the most important command D, S I mentioned in the title of the issue I haven't set any personal key bindings except the bindings recomended by package author.
C-h m shows:
Enabled minor modes: Async-Bytecomp-Package Auto-Composition Auto-Compression Auto-Encryption Blink-Cursor Electric-Indent File-Name-Shadow Font-Lock Global-Eldoc Global-Font-Lock Global-Git-Commit Global-Undo-Tree Line-Number Magit-Auto-Revert Marginalia Menu-Bar Mouse-Wheel Org-Roam-Db-Autosync Override-Global Recentf Savehist Shell-Dirtrack Tooltip Transient-Mark Undo-Tree Vertico Which-Key
(Information about these minor modes follows the major mode info.)
Deadgrep mode defined in ‘deadgrep.el’: Major mode for deadgrep results buffers.
In addition to any hooks its parent mode ‘special-mode’ might have run, this mode runs the hook ‘deadgrep-mode-hook’, as the final or penultimate step during initialization.
key binding
--- -------
C-c Prefix Command
TAB deadgrep-toggle-file-results
RET deadgrep-visit-result
ESC Prefix Command
SPC scroll-up-command
- negative-argument
0 .. 9 digit-argument
< beginning-of-buffer
> end-of-buffer
? describe-mode
D deadgrep-directory
I deadgrep-incremental
N deadgrep-forward-match
P deadgrep-backward-match
S deadgrep-search-term
^ deadgrep-parent-directory
g deadgrep-restart
h describe-mode
n deadgrep-forward
o deadgrep-visit-result-other-window
p deadgrep-backward
q quit-window
DEL scroll-down-command
S-SPC scroll-down-command
<remap> Prefix Command
M-n deadgrep-forward-filename
M-p deadgrep-backward-filename
C-c C-k deadgrep-kill-process
I updated the issue title I tested version: deadgrep-20220704.1714 T, C key binding works now, so I close the issue I like T, C key binding I can not remember everything now and rely on search result a lot
Clicking link to change search term has no action. other link such as words,etc also doesn't work g,tab,c-c c-k works
About your environment: Platform: darwin Emacs version: 27.2 Command: rg --color=ansi --line-number --no-heading --no-column --with-filename --fixed-strings --smart-case -- abc . default-directory: "~/doc/code_example/"