Emacs 26.1, Window 10

If I want to find in dired mode some file/folder I :

  1. C-s
  2. Input file/folder name

Here result:

enter image description here

OK. It's work. But it slow. Is it possible to search file/folder only by input file/folder names. Without C-s operation.

Is it possible?

  • The question is not too clear. Are you asking for behavior like C-s, to go to a file name in Dired by typing text that matches only against the file name, but in a way that is faster than C-s? Or would something like find-name-dired help you? Consider showing a recipe of what actions you want to make and what result you want to achieve. It's also possible that the way you're using C-s causes poor performance. Also, you can filter the files shown in Dired, in case your listing is very long. – Drew Nov 21 '18 at 14:55
  • @Drew I need go to a file name in Dired by typing text that matches only against the file name. – Alexei Nov 21 '18 at 16:28
  • Then C-s (or C-M-s is all I'm aware of. But again, you might be able to speed things up by filtering your Dired buffer - fewer file names to match means quicker, in general. – Drew Nov 21 '18 at 17:05
  • @Drew And how I can use filter in dired mode? Is I need install external package. Or it's out of box? – Alexei Nov 21 '18 at 17:57
  • 1
    C-x d foo*.el bar* etc. is one way. dired-omit-mode is another way. M-: (dired "foo" LIST-OF-FILE-NAMES) is another - the files can be in any directories. If you use Dired+ then the last is simplified interactively as diredp-dired-for-files, bound to C-x D F. Start with C-x M-o (dired-omit-mode). – Drew Nov 21 '18 at 18:52

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.