Skip to content

Instantly share code, notes, and snippets.

@akashpal-21
Last active June 26, 2024 16:19
Show Gist options
  • Save akashpal-21/988588f42b78b505865dff53fe2e6730 to your computer and use it in GitHub Desktop.
Save akashpal-21/988588f42b78b505865dff53fe2e6730 to your computer and use it in GitHub Desktop.
org-roam-link-utils.el
@akashpal-21
Copy link
Author

I will fix them, I will take a week to test everything and let you know, I need to do this patiently, so many moving parts

@akashpal-21
Copy link
Author

Refactored the functions,
I think the bugs are fixed now 🤞 - hopefully each functions being smaller & independent have also made it easier to read,

The function responsible for rename does not convert roam links to id links now - it just does a simple rename so that links point to the correct place.

The "repair" function is now called "convert-all"

untitled.mp4

Best,

@akashpal-21
Copy link
Author

akashpal-21 commented Jun 6, 2024

TODO

  1. Process Roam links that use alias instead of title DONE

@lyndhurst
Copy link

While adding some key bindings, I just realized there is a similar org-roam-link-replace-all function that converts all roam links in the buffer with id links. I renamed your convert-all function org-roam-link-replace-all-backlinks in my config for a more uniform naming convention.
I personally prefer convert, but I think this name the other one was there first. It would be even more intuitive imho if the other one was named org-roam-link-replace-all-in-buffer. I thought it was worth mentioning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment