Skip to content

Multiple fixes and improvements #151

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

Draft
wants to merge 30 commits into
base: master
Choose a base branch
from
Draft

Multiple fixes and improvements #151

wants to merge 30 commits into from

Conversation

dcampos
Copy link
Owner

@dcampos dcampos commented Jun 18, 2025

This should be Snippy 2.0.

dcampos added 26 commits June 9, 2025 21:41
The previous way of adding snippets using metatables didn't work quite
well and didn't allow setting custom options like priority for the
snippets.
Previously, autocmds were cleared and reset every time a jump was
performed, in order not to trigger any position change during the jump.
A state flag was introduced this time to make the jumping mechanism more
robust and hopefully improve performance.
Previously, mirrors were only synchronized when jumped into, which
exited the snippet before jumping into them.
Allows transformations to be applied to the evaluated values of snippet
variables (e.g., `${TM_FILENAME_BASE/./\\u&/}`). Previously,
transformations were only applied to tabstops.

Adds a new test case for variable transformations.
This should improve robustness and performance, besides it making easier
to control the execution environment.
@dcampos dcampos changed the title Integrate fixes and improvements Multiple fixes and improvements Jun 30, 2025
dcampos added 3 commits June 29, 2025 21:52
Introduces a health check to warn about Visual/Select mode mappings that
can interfere with snippet expansion in Select mode.
Previously, the folds remained closed, which prevented the user from
viewing or modifying the tabstops.
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.

1 participant