Community
    • Login

    Dashes not supported in link names

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    4 Posts 2 Posters 512 Views 2 Watching
    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 Offline
      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 Online
        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 Online
          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 Offline
            tho-gru @PeterJones
            last edited by

            @PeterJones thanks for finding the related issue.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • First post
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors