mdzk-rs / mdzk

General-purpose interface to connected notes

Home Page:https://mdzk.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add impl to Note that finds outgoing links

kmaasrud opened this issue · comments

This is already done during serialization:

links: note
    .adjacencies
    .iter()
    .filter(|(_, edge)| matches!(edge, Edge::Connected(_)))
    .map(|(id, _)| hex(id))
    .collect::<Vec<String>>()

This should simply be added as a utility function on Note.