NPP only fold YAML list if indented
-
hello: - hi - hola
Unfortunately, NPP cannot fold the list under ‘hello’ unless the list elements are indented.
This is not right, as the YAML syntax for a list under a map, even without indentation is correct, and NPP should be able to fold it. -
It’s not Notepad++ problem, you can rise this on Scintilla (for YAML parser).
https://sourceforge.net/p/scintilla/bugs/
I check some other tools and neither support fold/unfold without indentation.But I warn you that in Scintilla the way of folding / unfolding is not treated as a bug, but depends on who does it in the lexer (sometimes you can switch it with options, but I don’t see this posibility in YAML lexer).
https://sourceforge.net/p/scintilla/code/ci/default/tree/lexers/LexYAML.cxx
Onlyfold.comment.yaml
exist. -
https://github.com/notepad-plus-plus/notepad-plus-plus/issues/8244
https://sourceforge.net/p/scintilla/bugs/2174/
Bug exist, you don’t need open new.