Community
    • Login

    Dashes not supported in link names

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 183 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.
    • tho-gruT
      tho-gru
      last edited by

      Hi everyone,

      Today I worked on user defined links in Notepad++. I recognized the dashes (‘-’ characters) are not supported:
      20210703-223728-Preferences.png

      As you can see in my example editWithNpp: gets the underline and edit-WithNpp: does not get the underline. Therefor the second “link” will not work.

      Is there a reason for this?

      I ask this question because protocols with dashes are handled well by Windows 10.

      Debug Information

      Notepad++ v8.1   (64-bit)
      Build time : Jun 17 2021 - 01:56:07
      Path : C:\Program Files\Notepad++\notepad++.exe
      Command Line : "D:\Daten\Memory.txt"
      Admin mode : OFF
      Local Conf mode : OFF
      Cloud Config : OFF
      OS Name : Windows 10 Pro (64-bit) 
      OS Version : 2009
      OS Build : 19043.1052
      Current ANSI codepage : 1252
      Plugins : ComparePlugin.dll DSpellCheck.dll JSMinNPP.dll mimeTools.dll NppConverter.dll NppExec.dll NppExport.dll PythonScript.dll XMLTools.dll 
      

      Kind Regards
      Thomas

      PeterJonesP 1 Reply Last reply Reply Quote 0
      • PeterJonesP
        PeterJones @tho-gru
        last edited by

        @tho-gru ,

        It’s probably to do with the regular expression used for matching internally, which might not allow for hyphens in the scheme. I was hoping that setting Preferences > Delimiter > add your character… would allow the - in the scheme, but it doesn’t.

        Looks like someone has already requested hyphens (and pluses and dots, to bring into compliance with RFC3986) be allowed in issue#9923.

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

          I said above:

          in issue#9923.

          I have added my 2¢ into that issue, pointing out the svn+ssh:// protocol which I use at work (and mentioned that @tho-gru was interested in hyphens-in-scheme-names as well). Maybe one of the developers will figure out how to implement the fix.

          tho-gruT 1 Reply Last reply Reply Quote 1
          • tho-gruT
            tho-gru @PeterJones
            last edited by

            @PeterJones thanks for finding the related issue.

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