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
keep-sorted is language agnostic and doesn't really try to understand the syntax of file it's operating in. There's some support for general syntax with block=yes, but even that option wouldn't have changed how this got sorted.
is there a workaround to make it consider ASCII characters only?
Nit: "is an ASCII character ;)
Depending on whether by_regex works for you, this could be an interesting FR: Perhaps we should have an option that tells keep-sorted exactly which characters to consider while sorting.
Perhaps with by_regex?
Have you tried any by_regexs? Assuming these YAML strings are relatively simple (they all match the form - \w+ or - "\w+[\w ]*") I imagine something like by_regex=['\w+[\w ]*'] would work
Given
main.yaml
:What should happen? I would have expected "d" to come last:
This is what happens instead (
v0.6.0
):It's technically correct from a lexical sorting perspective, but is it intended?
Assuming it is intended, is there a workaround to make it consider ASCII characters only? Perhaps with
by_regex
?The text was updated successfully, but these errors were encountered: