Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support lsp_references for tags in frontmatter #335

Open
GordianDziwis opened this issue Oct 4, 2024 · 1 comment
Open

Support lsp_references for tags in frontmatter #335

GordianDziwis opened this issue Oct 4, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@GordianDziwis
Copy link

The LSP_references functionality is not working as expected for tags defined in the YAML frontmatter of a document. While it correctly identifies and processes tags written inline as #tag, it fails to recognize tags listed in the frontmatter section.

Steps to Reproduce:

  1. Create a new document with the following YAML frontmatter:
    ---
    aliases: Title
    tags:
      - tag
      - another_tag
    ---
  2. Attempt to use LSP_references on the tags defined in the frontmatter.
  3. Observe that LSP_references does not recognize or process these tags.

Expected Behavior:
LSP_references should identify and process tags defined in the YAML frontmatter, treating them the same way as inline tags (#tag).

Actual Behavior:
LSP_references ignores tags defined in the YAML frontmatter and only works with inline tags.

@artempyanykh artempyanykh added the enhancement New feature or request label Dec 4, 2024
@artempyanykh
Copy link
Owner

Thanks for reporting this @GordianDziwis! YAML frontmatter support in marksman is very limited. It's a good feature to have though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants