Is there a function in org-roam (or maybe somebody has written it) that will scan all files with a given alias or tag and replace and/or remove it?
or does anybody have a suggestion on how to do this (without having to write a function to do it)
Is there a function in org-roam (or maybe somebody has written it) that will scan all files with a given alias or tag and replace and/or remove it?
or does anybody have a suggestion on how to do this (without having to write a function to do it)
dmg via Org-roam notifications@orgroam.discoursemail.com writes:
Is there a function in org-roam (or maybe somebody has written it) that will scan all files with a given alias or tag and replace and/or remove it?
or does anybody have a suggestion on how to do this (without having to write a function to do it)
I would C-x C-f to the roam directory, M-x grep and enter something like ‘“”’ | grep ROAM_ALIASES:
And in the grep buffer use M-x wgrep-change-to-wgrep-mode, then M-x
query-replace and then C-x C-s
I don’t remember the default keys shortcuts to call those commands.
My best
Thanks. I was wondering if there was a command inside emacs to do it. But as you pointed out, I might have to do it from the command line.
@dmg, what @konubinix mentions above is done within Emacs. A great solution with using wgrep (I think you need to install in as an additional package).