Dashes not supported in link names



  • 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



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



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



  • @PeterJones thanks for finding the related issue.


Log in to reply