[Question] How to get list of notes with search.find_backlinks? #357
Anaritus
announced in
Announcements
Replies: 3 comments
-
local search = require "obsidian.search"
local Note = require "obsidian.note"
local test_note = Note.from_file "~/Vaults/Notes/test.md"
local matches = search.find_backlinks(test_note, {})
local notes = vim
.iter(matches)
:map(function(match)
return Note.from_file(match.path)
end)
:totable() or you can use the callback version, same idea. |
Beta Was this translation helpful? Give feedback.
0 replies
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
This comment has been hidden.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Originally, when using client:find_backlinks, I would get a list of notes, of which I could get alias and note id. How do I do it now? It kinda broke my flow((
Beta Was this translation helpful? Give feedback.
All reactions