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

feat: add prefix handling for shortcuts #4

Merged
merged 2 commits into from
Jul 4, 2024

Conversation

TheFedaikin
Copy link
Contributor

@TheFedaikin TheFedaikin commented Jul 2, 2024

Hello!

Thanks for this awesome plugin, I was using it for some time, and stumbled across issue with shortcuts using prefix. This feature was badly needed so I experimented a little before doing a fork.

Description

This adds capturing of : into the regex that will allow for doing a shortcut in a prefixed-style like so: *tapped:text-blue into hover:text-blue active:text-blue.

Let me know if I should improve the tests, or add more/split them up.

Apologies for not creating issue first, but since I already had a solution at hand I created a PR asap.

@zyyv zyyv merged commit 009699f into unocss-community:main Jul 4, 2024
7 checks passed
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.

2 participants