You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I have found a small issue - :TailwindSort seems to sort some strings that should not be sorted.
In the examples below:
in a Tailwind string, "hidden test" should become "test hidden" (test counts as a custom user class, so it gets sorted before hidden which is a Tailwind class).
in a regular string, "hidden test" is just words and should not be sorted.
Only the .ts example below works correctly for me - each other file type incorrectly sorts the regular string to "test hidden".
Could someone check this by running :TailwindSort on this markdown file in their environment: test.md?
.ts
// This works correctlyconsttestOne='hidden test'// Should not sortdocument.createElement('div').outerHTML=`<div class='hidden test'></div>`// Should sort
.tsx
// Issue: both of these sortconsttestOne='hidden test'// Should not sortconsttestTwo=<divclassName="hidden test"></div>// Should sort
.js
// Issue: both of these sortconsttestOne='hidden test'// Should not sortdocument.createElement('div').outerHTML=`<div class='hidden test'></div>`// Should sort
.jsx
// Issue: both of these sortconsttestOne='hidden test'// Should not sortconsttestTwo=<divclassName="hidden test"></div>// Should sort
The text was updated successfully, but these errors were encountered:
Thanks for the great plugin @laytan!
I think I have found a small issue -
:TailwindSort
seems to sort some strings that should not be sorted.In the examples below:
"hidden test"
should become"test hidden"
(test
counts as a custom user class, so it gets sorted beforehidden
which is a Tailwind class)."hidden test"
is just words and should not be sorted.Only the
.ts
example below works correctly for me - each other file type incorrectly sorts the regular string to"test hidden"
.Could someone check this by running
:TailwindSort
on this markdown file in their environment: test.md?.ts
.tsx
.js
.jsx
The text was updated successfully, but these errors were encountered: