Questions tagged [find-dired]
The find-dired tag has no usage guidance.
20
questions
1
vote
1
answer
19
views
How to ignore some directories with find-grep-dired?
When I search with find-grep-dired it also searches /Library/ directory and finds hundreds of cached links. Is there a way to ignore /Library/ directory?
I found this :
M-x customize-option
<return&...
0
votes
0
answers
145
views
error in process sentinel: Wrong type argument: integer-or-marker-p, nil
I get this error when I search dired with M-x find-name-dired:
error in process sentinel: Wrong type argument: integer-or-marker-p, nil
The search finds the files then ends with this error. I'm not ...
2
votes
4
answers
212
views
find-name-dired : save selection of files for reuse?
I try to use find-name-dired, everything works out as expected. Is there a way to save the selection of files for reuse?
1
vote
1
answer
86
views
How can I prevent ` running timer: (void-function vc-git-root)` error
vc-git-root walks up the tree until it finds the directory that contains the .git subdir and declares that to be the root of the repo.
But if there is not .git folder in the root directory, (vc-git-...
0
votes
3
answers
352
views
How can I recursively find and replace in the current git repository
I am working inside a git-repo. Here I want to apply my search operation based on the root directory of the git repo that current buffer is open.
Here I do: find-dired "~/my_project" ... in ...
0
votes
0
answers
86
views
syntax error near unexpected token `(' when running find-name-dired
find-name-dired is raising the following error. Is the format incorrect?
M-x find-name-dired RET; Find-name (directory): ~/test RET; Find-name (filename wildcard): test.txt RET
Result:
/path/to/...
0
votes
1
answer
189
views
Searching in Dired for content in files while filtering files
From Dired, I'd like to be able to search for content pretty much like I do on my MAC Finder, while showing the files that match the criteria/regular expression (and no other files). I don't want the ...
0
votes
0
answers
21
views
After query-replace using my-find-files, how to automatically delete-other-windows?
I am following answer for Using Emacs to recursively find and replace in text files not already open
My setup:
(defun my-find-files ()
(interactive)
(find-dired "~/folder" "-name \\*...
0
votes
1
answer
67
views
How to ignore files starting with `flycheck_` on `find-name-dired`?
During my search I keep having an error as follows:
Search failed with status 1: find: ‘/home/user/folder/flycheck_Driver.py’: No such file or directory
[Q] Is there any way to ignore files as ...
2
votes
1
answer
160
views
Tramp `find-dired`: wrong type argument error
If i use find-dired in a remote directory (from Tramp) then I get a wrong type argument: processp, nil error.
It works on a local dir.
All I pass to find is '-iname "blah"'.
/sftp:[email protected]:...
1
vote
1
answer
277
views
How to replace strings including `.` (dot) as first character using dired-do-find-regexp-and-replace
(defun my-find-orgfiles ()
(interactive)
(find-name-dired "." "*py"))
(global-set-key (kbd "M-n") 'my-find-orgfiles)
Than, t to toggle marked/unmarked files (thus marking them all, since none ...
1
vote
1
answer
521
views
find files containing "Emacs"
I employed find within the current directory to find files containing "emacs"
$ find . -type f -iname "*emacs*" | nl | tail -3
34 ./sources/tech/20190916 The Emacs Series Exploring ts.el.md
...
0
votes
0
answers
52
views
Recursively find and replace default setup
I am following approach for the recursively find and replace in text files not already open.
M-x find-name-dired: you will be prompted for a root directory and a filename pattern.
Find-name (...
0
votes
2
answers
717
views
How can I do a regex search recursively from a directory?
Basically I want a command that can do the following:
find /path/dir -type f -print0 | xargs -0 grep -l "foo"
Is there an emacs command to do this? If not, then is there a convenient keybinding that ...
1
vote
1
answer
325
views
how to do command substitution in eshell generally (NOT just for loop)
How to do command substitution à la Bash in Eshell, and not just for loops? (Unfortunately, while this question asks my question, its answer only provides Eshell for-loop syntax. So please don't dupe ...
2
votes
4
answers
315
views
How to find a directory with given depth from current directory?
Is it possible from within Emacs to find directories with a given depth from the current directory from within Emacs and receive their respective location in form of a list?
I want it to work cross ...
1
vote
1
answer
110
views
Printing a list of folders which has been modified today
Is there any way to export a list of folder names which has been modified today using a dired mode or any other package on emacs
8
votes
2
answers
849
views
Find files with find-dired sorting by date and by size
I often use find-dired and find-named-dired.
But I wanted to get the results sorted by date and by size.
How can I do that?
3
votes
2
answers
261
views
Find files like in Nautilus' search
I occasionally find myself using Nautilus instead of dired to search for files and would like to change that. When looking for a file, I often don't know the capitalization of its name which is why I ...
1
vote
1
answer
268
views
Cannot use find-dired: setq: Searching for program: is a directory,
The error is raised by shell-command--shell-command-with-editor-mode. But further stack trace is obfuscated by bytecompiled output. Recently I had to set
(setq explicit-shell-file-name "bash")
to be ...