You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! First, thanks for this great LSP! It is the cornerstone of my Neovim/Obsidian workflow.
Status quo
For Marksman to play nicely with Obsidian, my .marksman.toml is:
[completion]
wiki.style = "file-stem"
Links are correctly referenced by their names. For example:
I am using [[XState]] for this project.
correctly points to XState.md and I can go do that file using "Go to reference".
Current behavior
When I then ask for completions for [[XS, I get nothing.
This is because XState.md does not have an h1 heading. In Obsidian, file names are used as document titles, so beginning a document with the same heading as the file name is redundant.
When I add the # XState heading at the top of XState.md, I do get XState.md as a suggestion:
Expected behavior
I would love it if marksman also included file names as completions. In this case, I would want XState.md to appear as a completion even if there is no # XState at the top of that file.
This would make the link resolution/autocomplete behave the same way. At the moment, the autocomplete does not show completions, but if I type the file name manually, the link is resolved correctly by marksman.
Hey! First, thanks for this great LSP! It is the cornerstone of my Neovim/Obsidian workflow.
Status quo
For Marksman to play nicely with Obsidian, my
.marksman.toml
is:Links are correctly referenced by their names. For example:
correctly points to
XState.md
and I can go do that file using "Go to reference".Current behavior
When I then ask for completions for
[[XS
, I get nothing.This is because
XState.md
does not have anh1
heading. In Obsidian, file names are used as document titles, so beginning a document with the same heading as the file name is redundant.When I add the
# XState
heading at the top ofXState.md
, I do getXState.md
as a suggestion:Expected behavior
I would love it if marksman also included file names as completions. In this case, I would want
XState.md
to appear as a completion even if there is no# XState
at the top of that file.This would make the link resolution/autocomplete behave the same way. At the moment, the autocomplete does not show completions, but if I type the file name manually, the link is resolved correctly by marksman.
Related issues
Possibly related to #122
The text was updated successfully, but these errors were encountered: