dendronhq / dendron

The personal knowledge management (PKM) tool that grows as you do!
https://wiki.dendron.so
Apache License 2.0
6.75k stars 257 forks source link

Suggest wiki links #915

Open fdaguin opened 3 years ago

fdaguin commented 3 years ago

Please Select if your Request is Either something new or an Enhancement

Please select the area your request applys to. (Multiple selections are Possible)

Is your feature request related to a problem? Please describe

When taking notes, when a word or a group of words is referencing another note, I want a wiki link to be created. Doing this manually works, however:

Describe the solution you'd like

I want Dendron to scan my notes and to suggest wiki links that can be created to reference other notes when detecting a word or group of words that either matches:

Let's consider a vault with 3 notes:

ide.vscode.md:

---
title: Visual Studio Code
---
...

language.markdown.md:

---
title: Markdown
---
...

pkm.tool.dendron.md:

---
title: Dendron
---

Dendron is a local-first, markdown based, hierarchical note-taking application built on top of Visual Studio Code and friends.

This feature will allow to detect and suggest the following wiki links in pkm.tool.dendron.md..

---
title: Dendron
---

-Dendron is a local-first, markdown based, hierarchical note-taking application built on top of Visual Studio Code and friends.
+Dendron is a local-first, [[language.markdown]] based, hierarchical note-taking application built on top of [[ide.vscode]] and friends.

by resolving:

At least, I want those suggestions on the currently opened notes. At best, I want Dendron to scan all the notes in my vault(s) and to comes up with suggestions for each notes.

Describe alternatives you've considered

Keep creating the wiki links manually.

Additional context

This feature is conceptually similar to a linter. While it can be implemented as a CLI, a strong VSCode integration is preferable. Therefore, I suggest:

kpathakota commented 3 years ago

@fdaguin - good point on helping get more out of note-linking.

One thing though is that we currently have Dendron: Insert Note Link to help you link notes together. Hope that will make it faster to link notes (without relying on intellisense)

However, your point on new notes requiring you to manually go through the knowledge base and re-link things still stands.

fdaguin commented 3 years ago

One thing though is that we currently have Dendron: Insert Note Link to help you link notes together. Hope that will make it faster to link notes (without relying on intellisense)

I didn't know about this command, thanks!

maninalift commented 3 years ago

This is like the "unlinked mentions" feature in Obsidian and "unlinked references" in Roam. These applications automatically display text matching the title of the current document in other notes, right after the back-links (or "linked mentions"), allowing you you spot connections and quickly add connections.

fdaguin commented 3 years ago

@maninalift Actually, those Roam Research and Obsidian features were ported in Dendron through #909 as "backlinks candidates". This current issue is requesting a scan feature across all available vaults, instead of the currently opened note.

maninalift commented 3 years ago

@fdaguin oh wow, that's great, thanks for clearing that up for me!

ScriptAutomate commented 2 years ago

I've opened a related GitHub discussion: