Questions tagged [find-dired]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
27 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-...
user avatar
  • 1,102
0 votes
3 answers
126 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 ...
user avatar
  • 1,102
0 votes
0 answers
35 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/...
user avatar
  • 31
0 votes
1 answer
53 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 ...
user avatar
  • 25
0 votes
0 answers
19 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 \\*...
user avatar
  • 1,102
0 votes
1 answer
43 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 ...
user avatar
  • 1,102
2 votes
1 answer
97 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:andreaz@10.0.0.99:...
user avatar
1 vote
1 answer
205 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 ...
user avatar
  • 1,102
1 vote
1 answer
393 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 ...
user avatar
  • 1,069
0 votes
0 answers
44 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 (...
user avatar
  • 1,102
0 votes
2 answers
359 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 ...
user avatar
1 vote
1 answer
239 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 ...
user avatar
  • 582
2 votes
4 answers
232 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 ...
user avatar
1 vote
1 answer
73 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
user avatar
  • 523
8 votes
2 answers
617 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?
user avatar
  • 1,989
3 votes
2 answers
237 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 ...
user avatar
  • 845
1 vote
1 answer
244 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 ...
user avatar
  • 10.8k