Community
    • Login

    NPP only fold YAML list if indented

    Scheduled Pinned Locked Moved General Discussion
    yamlindentationfolding
    3 Posts 2 Posters 628 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 Offline
      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 Offline
        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 Offline
          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

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors