Skip to content

feat(ts)!: add link and timestamp tree-sitter captures #912

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

Merged
merged 10 commits into from
Mar 2, 2025

Conversation

kristijanhusak
Copy link
Member

Summary

Update tree-sitter grammar to version 2, which adds support for few new nodes:

  1. Links (link for links without description, link_desc for links with description)
  2. non-plan timestamps (timestamp)
  3. inline blocks (inline_code_block). Added @org.inline_block hl group to highlight inline blocks (not linked to anything)
  4. priorities (priority)

Related Issues

Related #653

Closes #653

Changes

  • Added new nodes metioned above
  • Removed the custom markup parsing for dates and links since it's handled by tree-sitter grammar now.
  • Updated code to work with new nodes
  • Added support for markup highlighting in property values to align with Emacs orgmode
  • Deprecated old link class

Checklist

I confirm that I have:

  • Followed the
    Conventional Commits
    specification
    (e.g., feat: add new feature, fix: correct bug,
    docs: update documentation).
  • My PR title also follows the conventional commits specification.
  • Updated relevant documentation, if necessary.
  • Thoroughly tested my changes.
  • Added tests (if applicable) and verified existing tests pass with
    make test.
  • Checked for breaking changes and documented them, if any.

@kristijanhusak kristijanhusak changed the title feat(ts): add link and timestamp tree-sitter captures feat(ts)!: add link and timestamp tree-sitter captures Mar 1, 2025
@kristijanhusak
Copy link
Member Author

@chipsenkbeil just to bring your attention to this PR. I believe nothing should break in org-roam with this, but I did deprecate the old hyperlink class that you are still using in favor of the other one that is more up to date.

@kristijanhusak kristijanhusak merged commit aaa327a into master Mar 2, 2025
7 checks passed
@kristijanhusak kristijanhusak deleted the feat/links-and-dates branch March 2, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for inline source code block src_<language>{<body>}
1 participant