-
Notifications
You must be signed in to change notification settings - Fork 45
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
Recognize indentation #39
Comments
@iinfin I don't understand the example, can you provide more details? Even ignoring whitespace the "to" example is in a strange order. |
@Tyriar I didn't mean ignoring whitespace, lines starting with " Thought would be useful for cases like markdown lists. |
Oh I get it, I think that's a little out of the scope of this extension unfortunately. Supporting every single possible way of sorting is unfeasible imo and makes the extension hard to use, that's what I'm trying to solve with the #40 issue. Perhaps there's a way to make sorts defined in settings somehow aware of other items? #40 |
Hello! I understand this thread is closed, but I have a differing opinion from the boss (respect and greetings to you) @Tyriar . Indeed, the use case of sorting multilevel/indented lists is to be found across the board... Many people look for it in Google Docs, MS Word, Sublime, Atom (there are questions about that on each one's forums, and stackoverflow)... The fact that this feature is longed for also in non-coding environments shows that it is of use in many, language agnostic, cases. I will try to list a few:
For most of those use cases, sorting would be an important step, and then one can always decorate, comment out etc... later. But keeping the indentation, and sorting according to it, would be great. Conclusion: |
I am looking for this feature for sorting structured data like ini, json, yaml, etc files. |
Is it possible to recognize indentation and keep indented lines attached to parents?
like from
to
instead of throwing e and f to beginning because of "a". First sorting as blocks, then sorting sub-lines in each block.
The text was updated successfully, but these errors were encountered: