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
Let's say I wanted to sort from Line 46 - type: angular to Line 150 template: " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} ". This is a subset of a list. I select my text, summon vscode-yaml-sort, and...
YAML selection is invalid. Please check the ending of your selection.
YAML is invalid: bad indentation of a mapping entry (2:14)
1 | - type: angular
2 | style: powerline
------------------^
3 | powerline_symbol:
4 | background: lightRed
I have to shift-tab them back over to the left so they're valid YAML before running vscode-yaml-sort, then tab them back home again. It would be nice if the extension could identify left-aligned blocks of whitespace shared by all lines in a text selection, then ignore them before it validates the YAML.
Ultimately I'd like to be able to sort the list elements by a specific key shared by all (Type, or the first key in this case), but I recognize that is a whole other layer of complexity.
The text was updated successfully, but these errors were encountered:
YAML to be sorted
Let's say I wanted to sort from Line 46
- type: angular
to Line 150template: " {{ if .Error }}{{ .Error }}{{ else }}{{ .Full }}{{ end }} "
. This is a subset of a list. I select my text, summon vscode-yaml-sort, and...I have to shift-tab them back over to the left so they're valid YAML before running vscode-yaml-sort, then tab them back home again. It would be nice if the extension could identify left-aligned blocks of whitespace shared by all lines in a text selection, then ignore them before it validates the YAML.
Ultimately I'd like to be able to sort the list elements by a specific key shared by all (
Type
, or the first key in this case), but I recognize that is a whole other layer of complexity.The text was updated successfully, but these errors were encountered: