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
Thanks for the great package, really useful for organizing larger files. I had an issue when sorting functions and const declarations, where any line with more than a single character gets sorted with the rest of its siblings.
Not sure what the most elegant way to handle something like this is. Happy to submit a PR if you are open to it or look into adding a keybinding that allows for this sort of thing.
The text was updated successfully, but these errors were encountered:
Thanks for the great package, really useful for organizing larger files. I had an issue when sorting functions and const declarations, where any line with more than a single character gets sorted with the rest of its siblings.
Example:
will be reformatted to:
My somewhat messy solution was to change line 95 in the
getTextBlocks
function to:if (line.trim().length === 1 || line[0] === '}' || line[0] === ')') {
Not sure what the most elegant way to handle something like this is. Happy to submit a PR if you are open to it or look into adding a keybinding that allows for this sort of thing.
The text was updated successfully, but these errors were encountered: