BBazard / obsidian-orgmode-cm6

Orgmode plugin for Obsidian
MIT License
53 stars 2 forks source link

Autocompletion of org-roam links #11

Open maikol-solis opened 1 month ago

maikol-solis commented 1 month ago

Hi!

Would it be possible to have some autocompletion to find links in the Vault?

For example, If I have a file called machine-learning.org with this content,

:PROPERTIES:
:ID: 1
:END:
#+TITLE: Machine learning methods

I would like to insert a link to this file from another file by simply typing "Mach", and it will automatically suggest inserting the link: "[[id:1][Machine learning methods]]".

Thanks for the help.

BBazard commented 1 month ago

Hi!

Autocompletion is a nice feature indeed. There is a few missing elements that still need to be implemented before that:

Also, even though using the id makes sense, not all files have an id. There is also the question of what to do when there is no title. I would rather conform to Obsidian existing behavior, which would be [[machine-learning]] to follow your example.

All in all, it might be some time before I tackle autocompletion.

maikol-solis commented 1 month ago

Thank you for the reply. Don't worry. Take your time, the plugin is already great.