Community
    • Login

    Auto-delete closing brackets after deleting opening brackets.

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 4 Posters 1.1k 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.
    • Ronaldo DimaanoR
      Ronaldo Dimaano
      last edited by

      Here’s what I mean.
      Suppose I have this: ‘()’
      If I delete ‘(’, ‘)’ should also be deleted.

      I’ve searched for this for Notepad++ and found nothing. Perhaps, I’m not just seeing it?

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Ronaldo Dimaano
        last edited by

        @ronaldo-dimaano

        You mean as consecutive characters you have ( and then you have ) and when you delete the ( you want the ) deleted. Hmmm. I would just hit delete twice and move on with life.

        Terry RT 1 Reply Last reply Reply Quote 2
        • Terry RT
          Terry R @Alan Kilborn
          last edited by

          @alan-kilborn said in Auto-delete closing brackets after deleting opening brackets.:

          I would just hit delete twice and move on with life.

          Whilst I would agree with that I wonder as the OPs question does have some merit. In Notepad++ when you move around a file/tab with (, {, or even [and of course the corresponding closing brace the pairs are highlighted. You can even use the shortcut Ctrl-B to jump to the matching brace of a pair.

          It doesn’t seem to be too large a jump to think that perhaps deleting as a pair does make some sense. If the other brace of the pair is some distance (in number of characters) it might be possible to delete 1, then forget exactly where it’s pair was and maybe even delete the wrong one. Currently we can select all between matching braces (Ctrl+Alt+B) and I think it wouldn’t be too much of a leap to think that maybe an option to delete pairs of braces together would be possible.

          Obviously a feature request would be needed and @Ronaldo-Dimaano is welcome to sumbit one using the details in the FAQ section here if they wished to consider that. If it was implemented I would suggest the Ctrl+Alt+B become a toggle to select first all between braces, then all including braces on the second hit of the shortcut keys and then only the braces on a third hit of the shortcut keys, just a thought.

          Terry

          Lycan ThropeL 1 Reply Last reply Reply Quote 5
          • Lycan ThropeL
            Lycan Thrope @Terry R
            last edited by

            @terry-r ,
            I agree with your analogy, but as the OP has “shown” what he starts and wants to end with, Alan’s answer is germane to the question at hand, whilst your’s evokes a new creature feature. :-)

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