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 for new link parsing + syntax #178

Merged
merged 198 commits into from
Dec 13, 2021
Merged

Support for new link parsing + syntax #178

merged 198 commits into from
Dec 13, 2021

Conversation

vhyrro
Copy link
Member

@vhyrro vhyrro commented Nov 2, 2021

This PR adds support for a few things:

  • Add support for new link parsing available in the attached-modifiers branch of the treesitter parser
  • Basic queries for highlighting attached modifiers
  • "Won't do" syntax for links - [-] Something I won't do
  • Completely rewrite enter link on <CR> functionality. Will allow for more efficient and less janky code in general.
    • Support new link syntax that disallows several file targets and only allows for one
    • Support @ location tag ([link](@non-norg-file.txt))
    • Support file-only locations ([link](:some-norg-file:)

mrossinek and others added 27 commits October 12, 2021 23:35
Using the workaround explained in [1] we can conceal basic markup
entirely based on the TS syntax tree. While this has some minor edge
cases (especially considering the display of a colorcolumn).

This commit also introduces a new conceal setting called `volatile`
which will make icons.. well.. volatile! That means, that the concealing
will be lifted when the cursor is above the extmarks start position
making editing possible in a much easier fashion.

[1]: neovim/neovim#15706 (comment)
Instead we now remove extmarks only around the cursor upon InsertEnter.
Some changes in the TS parser now made all this soooo much simpler!
- Add new `core.started` event that you can hook into via user callbacks
- Cleanup to allow now `core.norg.esupports.hop` implementation
- Update README.md with new stuff
@vhyrro
Copy link
Member Author

vhyrro commented Nov 2, 2021

new-highlights

This is just a showcase of the new highlights that will be available for links :D
Much richer than the basic regex highlights we had earlier.

@vhyrro vhyrro marked this pull request as ready for review December 13, 2021 17:56
@vhyrro vhyrro merged commit 3ee00bd into unstable Dec 13, 2021
@vhyrro vhyrro deleted the new-links branch December 13, 2021 17:57
esquires pushed a commit to esquires/neorg that referenced this pull request Apr 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Issues related to feature proposals. Please attach a module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Link Format Jump on the only link in line with CR
4 participants