Open gour opened 1 year ago
It looks it is the problem with SublimeText's LSP-marksman package since the same test performs well with Helix editor.
Thanks for reporting this @gour! As a quick sanity-check: do you have .marksman.toml
or a git repo at the root folder with your notes? (I'm referring to the "Workspace folders, project roots, and single-file mode" section of the README)
Thanks for reporting this @gour! As a quick sanity-check: do you have
.marksman.toml
or a git repo at the root folder with your notes? (I'm referring to the "Workspace folders, project roots, and single-file mode" section of the README)
No, I haven't, but added it now.
What is supposed to be the content of .marksman.toml
?
@gour .marksman.toml
marks the project root when your project is not under version control. It can also have project-specific configuration. You can leave it empty.
Do you get wiki links completion now that you've added the file? (server restart is required)
If you still don't get the completion you may want to try doing 'git init'. The idea is that since things work in helix but doesn't work in ST it can be a difference in workspace folders/projects setup.
@gour
.marksman.toml
marks the project root when your project is not under version control. It can also have project-specific configuration. You can leave it empty.
OK.
Do you get wiki links completion now that you've added the file? (server restart is required)
I can say that even without I get it, but both Helix & ST4 have problem if the note does not contain 1st-level #
header. Is it expected to be so?
Yes, it's expected. Currently, the title is taken from 1st level heading.
I checked your documents: you define title inside frontmatter. I'd like to support this use-case too as it's very common in static site generators.
Let's repurpose this ticket as a feature request for taking a title from a frontmatter.
@gour
.marksman.toml
marks the project root when your project is not under version control.
For personal projects I use Fossil, so wonder if it also qualifies as "version control" or it is Git-only?
Yes, it's expected. Currently, the title is taken from 1st level heading.
OK, thanks.
I checked your documents: you define title inside frontmatter. I'd like to support this use-case too as it's very common in static site generators.
I'd also like to be able to use Zettlr and currently have problem interoperating with the links created by LSP-marksman...
Let's repurpose this ticket as a feature request for taking a title from a frontmatter.
Great. Thanks a lot for your work on Marksman! It greatly changes the Markdown's ecosystem. :smiley:
Thanks for the kind words @gour! ❤️ I've retitled the issue as a feature request now.
I also would like to be able to link to titles in front matter.
Perhaps it’s a bit of a big ask, but could we also interpret Tag(s):
and Keyword(s):
tags in the YAML front matter as Zettlekasten tags?
@silverhook could you elaborate on the use-case? Currently, if you insert #blah
in the document it'll be treated as a tag and will participate in tag completion; you don't need to define tags beforehand. Do you want to specifically put tags in the frontmatter? Or do you want to be able to drop the leading #
before the tag name? Or something else?
I think it would be nice to put tags in the yaml front matter. In either a
tags
or categories
key (the latter is used by the quarto site generator
for R for blog posts). This would allow tags to be defined with spaces and
without quotes using either yaml inline, or multi-line arrays:
title: Eureka
tags:
- blog idea
- uncategorized
Or
title: Eureka
tags: [blog idea, uncategorized]
On Sun, Jul 23, 2023, 3:27 PM Artem Pianykh @.***> wrote:
@silverhook https://github.com/silverhook could you elaborate on the use-case? Currently, if you insert #blah in the document it'll be treated as a tag and will participate in tag completion; you don't need to define tags beforehand. Do you want to specifically put tags in the frontmatter? Or do you want to be able to drop the leading # before the tag name? Or something else?
— Reply to this email directly, view it on GitHub https://github.com/artempyanykh/marksman/issues/112#issuecomment-1646975284, or unsubscribe https://github.com/notifications/unsubscribe-auth/APBWHQMV4LERZNYYEPDG7LDXRWQLFANCNFSM6AAAAAASELAT6E . You are receiving this because you commented.Message ID: @.***>
@artempyanykh , I think @fisher-j described it well.
The thing is that several note/doc/blog systems using MarkDown – Pandoc and Pelican to name just two – already use tags:
and keywords:
in the YAML front matter. In Pandoc’s example, if you generate a PDF (through e.g. LaTeX), it will store the keywords into PDF metadata.
So, if we’re already re-using YAML front matter, re-using the tags may make sense too.
For inspiration perhaps see how Pandoc handles the YAML metadata block.
Hello,
I've problem running Marksman under SublimeText, iow. auto-completion for
[[Wikilink]]
does not work and here is the output in the ST's log panel:Below are my two test files...
first.md second.md
Any hint?