hierarchically sort selction based on syntax tree #10481
Answered
by
pascalkuthe
ArvidHammarlund
asked this question in
Q&A
-
Is it possible to sort text hierarchically rather than by line? What would be the easiest way to split the selection based on syntax level so that i can call the sort command? Eg. I want to make the following nix code...
...become this..
|
Beta Was this translation helpful? Give feedback.
Answered by
pascalkuthe
Apr 16, 2024
Replies: 1 comment
-
That is not supported and probably won't be in core. You would need to do multiple sorts for each scope. On latest master you can use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ArvidHammarlund
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
That is not supported and probably won't be in core. You would need to do multiple sorts for each scope. On latest master you can use
A-I
to select each assignment in the scope that contains the cursor and then cursor those