• Login
Community
  • Login

Is possible to set deleting closing autocompleted stuff after first part was deleted ?

Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
9 Posts 3 Posters 4.7k 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.
  • J
    John Spark
    last edited by Dec 25, 2015, 7:47 PM

    Hi
    Please I would like to know, how is possible to set in NP++ auto deleting closing parenthesis and everything auto complete related, when I delete opening part of it.

    For example I’m doing to write:
    print("
    -then it autocomplete it to this:
    print(“cursor position”)
    -but I press Backspace to delete first double quote. It deletes it, but closing one is still there. But it’s not needed and doesn’t make sense to let it there. So I must manually delete it. I would like to see feature to delete also that closing part, when I delete opening part. I hope you understand me

    this is how it became:
    print(cursor position")

    this is how I need it to set:
    print(cursor position)

    Thanks for reply

    C 1 Reply Last reply Dec 25, 2015, 8:45 PM Reply Quote 1
    • C
      Claudia Frank @John Spark
      last edited by Dec 25, 2015, 8:45 PM

      Hello John-Spark,
      goto Settings->Preferences->Auto-Completion
      and uncheck " "

      Cheers
      Claudia

      1 Reply Last reply Reply Quote 0
      • J
        John Spark
        last edited by Dec 25, 2015, 8:47 PM

        But I want it to autocomplete !
        I need it do delete closing parenthesis, when I delete opening one. Got me ?

        1 Reply Last reply Reply Quote 0
        • C
          Claudia Frank
          last edited by Dec 25, 2015, 8:52 PM

          from cursors point of view
          if you delete left double quote and right from the cursor there is a double quote delete it
          but if right from the cursor there is anything else don’t do it, correct?

          Cheers
          Claudia

          1 Reply Last reply Reply Quote 0
          • J
            John Spark
            last edited by Dec 25, 2015, 9:07 PM

            Your sentence is confusing.
            When one allow autocompleting, that means if notepad sees the first occurence - means as opening/starting sign, then notepad will write closing/ending part of it. And cursor is in middle of it. So to the left is opening parenthesis and to the right is closing. But what ever part I delete (Backspace button or Delete button), the other part is there. Which is struggle to me to delete it too. If autocomplete works in creating way, it should work also in removing way.
            Mostly when I remove left part of sign twin symbol. In our case, use Backspace to delete opening parenthesis.
            Now I hope this must be 100% clear for everyone

            Thank you

            // please click me +2 reputation points to not wait 20 minutes to reply

            1 Reply Last reply Reply Quote 1
            • C
              Claudia Frank
              last edited by Dec 25, 2015, 9:25 PM

              Your sentence is confusing.

              Maybe because I’m not a native speaker. And yes, you confirmed what I tried to say.
              So, no, there is no builtin way to do this, but because you do python scripting
              you maybe installed python script plugin too, didn’t you?
              If so, you could try to enhance npp by writing a script which does
              register a char added callback and do the manipulation you want to achieve yourself.
              Sounds this as a reasonable solution?

              Cheers
              Claudia

              1 Reply Last reply Reply Quote 0
              • J
                John Spark
                last edited by Dec 25, 2015, 9:29 PM

                No sorry. I dont know how write script and how mess with it.
                This what I need is totally essential setting I strongly believe. For example that Atom.io has it set as default from beginning.
                It’s is basic needed behavior for every programming language writer. It makes sense because in almost all languages you must have opening and closing parenthesis. There is no thing like standing alone either left or right parenthesis.
                I’m very surprised nobody suggested this over years. I miss this very much !!!

                1 Reply Last reply Reply Quote 0
                • S
                  Scott Sumner
                  last edited by Dec 26, 2015, 2:10 AM

                  In my mind autodeletion is not merely the inverse of autoinsertion. I have been using many various text editors for twenty-five years and I have never seen one that will do the type of autodeletion described here. If atom.io is capable of doing it, and it is such a critical feature for you, why not use that?

                  1 Reply Last reply Reply Quote 0
                  • J
                    John Spark
                    last edited by Dec 26, 2015, 11:17 AM

                    Hmm you wrote it like I would come from different planet.
                    I’m not sure I described it well in my engrish :)

                    But I’m sure it’s worth to build in. As I said for me as beginner, is pain in somewhere to make Atom work. It’s difficult to set it and know all available packages for my needs. It’s like every new package for every issue you want inside. It’s a lot of work to set it and also I’m not sure how overwrite basic-core key bindings and how manage conflicts of newcome key bindings coming with newly installed packages. But no more about Atom. My hero is Notepad++, I really want to stuck with it, but if me - a beginner has problems with it, I’m surprised others don’t.
                    I just hope, this project won’t end like Sublime text ended or Lighttable too. Please developers listen to audience needs. Don’t let it die because of obsolete and not changing forward.

                    Thanks

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