Community
    • Login

    Auto-insert doesn't work with adjacent characters

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    3 Posts 2 Posters 270 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.
    • PegartP
      Pegart
      last edited by

      What’s the point of auto-insert functionality if it doesn’t work when trying to auto-insert a character when the cursor is adjacent to a character. Typing a quote or a double quote after an equals sign (or any other character) doesn’t work.

      I want this:

      <tag attr=""
      

      I get this:

      <tag attr="
      

      If there is a space after the equals sign the auto-insert works:

      <tag attr= ""
      

      Auto-insert only works when the cursor is not next to any character. It doesn’t work with quotes and double quotes but works with all types of brackets. Is this a bug?

      PeterJonesP 1 Reply Last reply Reply Quote 1
      • PeterJonesP
        PeterJones @Pegart
        last edited by

        @Pegart said in Auto-insert doesn't work with adjacent characters:

        (or any other character) doesn’t work
        …
        Auto-insert only works when the cursor is not next to any character.

        Not quite. You are correct that " doesn’t auto-complete when next to an =, or alphanumeric, or many punctuation characters. But it does autocomplete when inside parenthesis or brackets: if I start typing function(", the text I get is function("") – similarly for [ and {.

        What’s the point

        The point is that it works in many other situations without difficulty. Not every programming language out there puts quotes directly next to equal signs or other characters.

        Is this a bug?

        Bug, oversight, or difference of opinion as to how it should be implemented.

        Since others agree that it does have that issue, I suggest you follow FAQ Desk: Feature Request or Bug Report to make an official request for improving the quote-character auto-complete. However, I highly recommend you stay away from charged phrases like “what’s the point”, which immediately put the reader on the defensive, and make them much less likely to prioritize your request.

        PegartP 1 Reply Last reply Reply Quote 2
        • PegartP
          Pegart @PeterJones
          last edited by

          @PeterJones, yes true about my phraseology. It wasn’t intentional. I noticed it might have come out as aggressive but forgot to change it after rereading the whole post.

          Thanks for the information. I’ll check FAQ Desk: Feature Request or Bug Report.

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