Castiai,
@Castiai@social.tchncs.de avatar

Does anyone know a simple solution for backlinks into an Org file from a file system folder?

My workflow is such that I manage my projects in a large Org file and store links to directories with project data in the Org file.

Now it would be perfect if I could jump back into the Org file from a directory.

Any ideas?

publicvoit,
@publicvoit@graz.social avatar

@Castiai Bookmarks?

Castiai,
@Castiai@social.tchncs.de avatar

Well, meanwhile I solved it myself with a simple macro:

  1. Get the path of the current directory with: (kill-new default-directory)
  2. Switch to org-Buffer
  3. C-c a s (search org-buffer)
  4. C-y (yank path)

Done.

is just incredible! 🤓

Castiai,
@Castiai@social.tchncs.de avatar

I found some time in the evening to code this ridiculous small and easy function instead of my first solution with a macro:

(defun dired-to-org ()
"Find references to current directory in org-file."
(interactive)
(let ((dir default-directory))
(switch-to-buffer "myfile.org")
(org-search-view nil dir nil)))

rulez! too!

ctietze,
@ctietze@mastodon.social avatar

@Castiai Ah so you want to get there form the file system, but via dired and friends, not whatever OS/desktop environment you're using, or the shell, or whatever. That's cool! I was thinking about a function that would work as a shell alias using emacsclient, which may also work with OS native file browser UI's 🤔

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