AlexW00 / obsidian-note-linker

🔗 Automatically link your Obsidian notes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Constant Autolinking

asafshpigler opened this issue · comments

Is your feature request related to a problem? Please describe.
no problem, just greedy systems guy 🤩 this plugin is already amazing

Describe the solution you'd like
I would love to have an auto-link feature, which links keywords as I type along, same functionality, and different trigger, (without asking permission in popup)

Describe alternatives you've considered
🍪

Additional context
auto connecting automatically comes closest to an ACTUAL second brain. one that makes connections for you
I'm really excited about this idea

My idea on how to implement this

MVP

  1. Use the current "Scan Note" feature.

  2. Trigger:

  • Manually (using a shortcut)
  • Schedule: Automatically trigger the function every X seconds / minutes on the current note.

Done 🎉


MVP Issues:

If I have a word that I don't want to link, it will keep spanning it over and over.

To solve this:

  • Increase the schedule period. (does not solve, but minimizes the issue)
  • Maybe it should "remember" to not link that again. But that requires some persistent memory and would drastically change the architecture of the project.

Instant solution:

We can already implement this MVP using a CRON on Scan Note.

Another idea

To solve the MVP issues, we must scan only the latest changes on the current file.

  1. Adapt the function so it scans only a substring of the file.
    (For example, just one line.)

  2. Trigger:

  • At every new line break? (hitting enter)
  • At every new word?

Potential issues:

  • Complexity to adapt the scan functions
  • Will it work for copy-paste? / Imported files?