Community
    • Login

    NPP only fold YAML list if indented

    Scheduled Pinned Locked Moved General Discussion
    yamlindentationfolding
    3 Posts 2 Posters 304 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • karolyjozsaK
      karolyjozsa
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • ArkadiuszMichalskiA
        ArkadiuszMichalski
        last edited by

        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
        Only fold.comment.yaml exist.

        1 Reply Last reply Reply Quote 3
        • ArkadiuszMichalskiA
          ArkadiuszMichalski
          last edited by

          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.

          1 Reply Last reply Reply Quote 3
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors