-
Verify
How can we help you?Hi! Recently I renamed some of my notes. It broke links to them in other notes. Is there way to list notes that have broken links in them? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Maybe there's a way by parsing the output of |
Beta Was this translation helpful? Give feedback.
-
I played around a little with jq + regular expressions(to match $ zk graph --format json 2>/dev/null | jq '{ allLinks: .notes|map([.body|scan("\\[\\[(.*?)(\\|.*?)?]]")|.[0]])|add|unique, allTitles: .notes|map(.title) }| .allLinks - .allTitles' |
Beta Was this translation helpful? Give feedback.
Thank you! I've changed
allTitles: .notes|map(.title)
toallTitles: .notes|map(.filenameStem)
so it would work in cases when title and filename don't matchSolution to print missing notes:
and zk alias: