Mehrad,
@Mehrad@fosstodon.org avatar

I missed 's filtering ability in . The dired-goto-file works when you aim at one single file, but it is not enough when you have tens of files and you want to "narrow" your view to files that match certain pattern (regex, glob, or fixed string).

Turns out there is a nice package called dired-narrow that does exactly that with very handy defaults.

Give it a shot!

https://melpa.org/#/dired-narrow

apublicimage,
@apublicimage@berlin.social avatar

@Mehrad
Or use consult-lines, part of consult. Offers narrowing for all buffers, not just dired.

Mehrad,
@Mehrad@fosstodon.org avatar

@apublicimage I haven't installed consult. Does it also allow you to interact with the dired buffer while typing the filtering pattern? dired-narrow allows to interact with directories and open then while the point is still at the minibuffer, which is quite handy, plus if you treat dired buffer as a text buffer (as occur does), you will lose context if you have inserted subdirectories (using i).

  • All
  • Subscribed
  • Moderated
  • Favorites
  • KDE
  • tacticalgear
  • DreamBathrooms
  • khanakhh
  • mdbf
  • InstantRegret
  • magazineikmin
  • everett
  • cubers
  • rosin
  • Youngstown
  • slotface
  • ngwrru68w68
  • kavyap
  • thenastyranch
  • JUstTest
  • modclub
  • Durango
  • GTA5RPClips
  • cisconetworking
  • osvaldo12
  • ethstaker
  • Leos
  • tester
  • anitta
  • normalnudes
  • provamag3
  • megavids
  • lostlight
  • All magazines