Questions tagged [find-dired]

19 questions
8
votes
2 answers

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?
nephewtom
  • 2,219
  • 17
  • 29
3
votes
2 answers

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 like case-insensitive searches. Additionally, I…
UTF-8
  • 885
  • 6
  • 22
2
votes
4 answers

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?
u38078
  • 21
  • 2
2
votes
1 answer

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:/home/andreaz/files/: find . \( -name "*blah*" \)…
KrullBorg
  • 51
  • 4
2
votes
4 answers

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 platform...
sidharth arya
  • 235
  • 1
  • 7
1
vote
1 answer

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-root (buffer-file-name)) gives following error…
alper
  • 1,238
  • 11
  • 30
1
vote
1 answer

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 were marked). Then I use Q to use query-replace on…
alper
  • 1,238
  • 11
  • 30
1
vote
1 answer

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 35 ./sources/tech/20200311 What you need to know…
AbstProcDo
  • 1,231
  • 5
  • 15
1
vote
1 answer

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 me with that: I seek an answer to the general…
TomRoche
  • 592
  • 3
  • 20
1
vote
1 answer

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
Vaibhav
  • 573
  • 3
  • 15
1
vote
1 answer

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 able to run M-xshell (it would give a similar…
wvxvw
  • 11,222
  • 2
  • 30
  • 55
0
votes
0 answers

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 sure if the search ends prematurly. Google search…
zeynel
  • 129
  • 8
0
votes
3 answers

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 order to replace all Python files. (defun my-find-files () …
alper
  • 1,238
  • 11
  • 30
0
votes
0 answers

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/home/test/: c:/cygwin/bin/find.exe . \( -iname…
Aravind
  • 31
  • 3
0
votes
1 answer

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 matching files to be marked, but rather filtered…
Adelita
  • 155
  • 7
1
2