• Login
Community
  • Login

Auto-delete closing brackets after deleting opening brackets.

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
4 Posts 4 Posters 1.6k 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.
  • R
    Ronaldo Dimaano
    last edited by Jun 26, 2022, 5:00 PM

    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?

    A 1 Reply Last reply Jun 26, 2022, 8:43 PM Reply Quote 0
    • A
      Alan Kilborn @Ronaldo Dimaano
      last edited by Jun 26, 2022, 8:43 PM

      @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.

      T 1 Reply Last reply Jun 26, 2022, 11:28 PM Reply Quote 2
      • T
        Terry R @Alan Kilborn
        last edited by Jun 26, 2022, 11:28 PM

        @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

        L 1 Reply Last reply Jun 27, 2022, 5:53 AM Reply Quote 5
        • L
          Lycan Thrope @Terry R
          last edited by Jun 27, 2022, 5:53 AM

          @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
          1 out of 4
          • First post
            1/4
            Last post
          The Community of users of the Notepad++ text editor.
          Powered by NodeBB | Contributors