How can one have dired-do-search use the more visible isearch-face, or at least highlight the entire token found?
A blinking cursor would be an alternative, if it weren't so distracting while editing.
Restatement
If I run isearch-forward
on the string "hello", that string is highlighted during the search, as you see in the image below.
If I am instead in dired(-x) mode, mark the file, as shown in the next figure,
then run dired-do-search on the string "hello", the string is found, but it is not highlighted, as you see below.
How can I make dired-do-search use the same face as isearch-forward? In this example it is easy to spot the cursor, but on a larger display with heavy use of font-lock, and after opting for a milder, non-obtrusive face for the cursor, it is rather difficult to spot the location of the search string.
Update
Is the answer below the briefest way to solve this problem?
Perhaps you're looking for
dired-do-isearch
ordired-do-isearch-regexp
If you want the same feel of
dired-do-search
, it looks like you could also make a defun that invokestags-loop-continue
with customtags-loop-operate
andtags-loop-scan
operations.Here's what I came up with: