(dired-do-isearch, dired-do-isearch-regexp): New functions.
authorJuri Linkov <juri@jurta.org>
Mon, 28 Jul 2008 14:28:59 +0000 (14:28 +0000)
committerJuri Linkov <juri@jurta.org>
Mon, 28 Jul 2008 14:28:59 +0000 (14:28 +0000)
lisp/dired-aux.el

index 3950b78..523f29e 100644 (file)
@@ -2281,6 +2281,20 @@ Use \\[dired-hide-subdir] to (un)hide a particular subdirectory."
 \f
 ;; Functions for searching in tags style among marked files.
 
+;;;###autoload
+(defun dired-do-isearch ()
+  "Search for a string through all marked files using Isearch."
+  (interactive)
+  (multi-isearch-files
+   (dired-get-marked-files nil nil 'dired-nondirectory-p)))
+
+;;;###autoload
+(defun dired-do-isearch-regexp ()
+  "Search for a regexp through all marked files using Isearch."
+  (interactive)
+  (multi-isearch-files-regexp
+   (dired-get-marked-files nil nil 'dired-nondirectory-p)))
+
 ;;;###autoload
 (defun dired-do-search (regexp)
   "Search through all marked files for a match for REGEXP.