SkepticMystic / graph-analysis

Analyse the structure of your Obsidian graph using various analysis techniques
GNU General Public License v3.0
413 stars 19 forks source link

Suggested link doesn't disappear after linking #18

Closed phlind closed 3 years ago

phlind commented 3 years ago

The plugin predicted a link. After actually putting the link in the note and pressing "refresh" the list gets expanded by several other notes, but the suggestions still include the note already linked.

SkepticMystic commented 3 years ago

I guess this isn't a bug. The link prediction algorithms don't exclude a note if they are already linked. But that's a good feature request, I think. Perhaps there can be a setting for this. I like seeing which are actually linked and which aren't. If you inspect the element, you'll see I've added a class to each table row indicating whether or not that note is linked to the current note. This gives you the ability to style the row based on whether they're connected. For example, this snippet will make linked nodes more transparent:

tr.analysis-linked {
    opacity: 0.3;
}

image

SkepticMystic commented 3 years ago

You can even go so far as to display: none; the linked notes to hide them from the table:

tr.analysis-linked {
    display: none;
}