this post was submitted on 27 Nov 2023
1 points (100.0% liked)

Emacs

313 readers
2 users here now

A community for the timeless and infinitely powerful editor. Want to see what Emacs is capable of?!

Get Emacs

Rules

  1. Posts should be emacs related
  2. Be kind please
  3. Yes, we already know: Google results for "emacs" and "vi" link to each other. We good.

Emacs Resources

Emacs Tutorials

Useful Emacs configuration files and distributions

Quick pain-saver tip

founded 1 year ago
MODERATORS
 

I've been using org-mode for my personal notes/wiki and have quite a few files across a handful of folders. They keep on growing.

Scenario:

I'm sitting in dired and want to rename a file. How does one do that again...? I know I've made notes on this before, but I can't remember which file in which folder. I remember I tagged it with :dired:, though.

What would be the fastest way to search for this? Is there a way to do a search like rename tag=dired, or similar, in a folder w/subfolders, across all my org-mode notes?

I should also mention that I really don't want to install any extra packages for this.

top 1 comments
sorted by: hot top controversial new old
[–] paulmccombs@alien.top 1 points 1 year ago

If all your org files are in your org agenda files variable you can use the org agenda to search.

I hit C-a to run org-agenda, they hit m to match tags, among other things, and type in :dired: . It will return a list of headings with the :dired: tag from all your specified agenda files.