Community
    • Login

    Confusing/Frustrating folding behavior

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 2 Posters 66 Views 2 Watching
    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.
    • Thorin SchmidtT Offline
      Thorin Schmidt
      last edited by

      Hello,
      Using version 8.9.6.4 s4-bit
      Windows 11
      Language: Python

      I’ve noticed this for awhile, even in previous versions.
      I normally like to keep my functions folded so I can navigate easily, unfolding them as needed, when editing, then folding them back up.

      My issue is that often, not always, but often, once I fold the function back up, the FUNCTION BELOW IT has somehow opened, so I close THAT one and…

      The NEXT one is now unfolded, so I fold that…

      This continues all the way down my file. I will have to manually fold every. single. function. And no, I am not forgetting to fold them up and only noticing it later. I at first thought that was what was happening, but no, they are unfolding on their own. Sure, I can fold them up again, but it is annoying. Also, it doesn’t always happen. Only sometimes.

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP Online
        PeterJones @Thorin Schmidt
        last edited by

        @Thorin-Schmidt ,

        That sounds similar to Issue #18093, where the seemingly-random unfolding was happening for a UDL instead of for Python. In that issue, it’s because of the presence of a

        I don’t know if it’s related or not. Can you share a small piece of code (maybe 3 blocks long) that shows the problem if that’s all you have in the file? For example, I cannot replicate your problem with

        def first():
            more()
            return
        
        def more():
            # commented
            pass
        
        def most():
            first()
            more()
            return
        

        I will have to manually fold every. single. function

        Well, that’s the easy part. Alt+0 folds everything with one keystroke (the default keystroke for View > Fold All).

        1 Reply Last reply Reply Quote 0

        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