Feel-ix-343 / markdown-oxide

PKM for the LSP
https://oxide.md
Apache License 2.0
1.03k stars 17 forks source link

feature request: autocomplete links by title #169

Closed ibrokemypie closed 2 months ago

ibrokemypie commented 2 months ago

I would like to be able to autocomplete links by title, not just by filename and header.

My notes system uses unique and meaningless filenames, leaving it up to the first H1 in the note to define the note's title. When I am writing a link in another note, I would like the autocomplete to search by this title, and exclude the filename entirely (from the search). When actually inserting the link, the title should be the link text, and the filename should be the link destination, eg. (My Note File)[12345678.md] for markdown links or [[12345678.md|My Note File]] for wikilinks.

As an additional extension, I expect other people with different setups would like to define their note titles differently, including from the filename or from frontmatter. This obviously is less important to me personally!

Feel-ix-343 commented 2 months ago

Hey!

This is planned for v1!