New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
svn urls not links since 7.9.1 #9155
Comments
That's correct so far. The previous regex based parser accepted nearly everything as scheme name, the new version limits the allowed scheme names to the schemes which can be handled by the installed web browser and the installed email software.
How to get custom schemes supported? I can imagine a configurable list of custom schemes, which would then be handled like the |
@Uhf7 How about a checkbox for enabling the old behavior? |
Sounds reasonable.
Unfortunately no. It's impossible to bring back the old, inaccurate detection. |
Similar issue for me. Literally added a custom protocol yesterday using this: |
For the sake of another inaccurate detection? |
@andry81 @FreeAndNil |
What about to delegate all not known extensions to a browser or Windows Explorer? |
Notepad++ calls only the Windows shell, which decides, what software is to start. After using a computer some time and installing some software, there are surely hundreds of custom schemes registered. Notepad++ cannot check them all, we don't want await a registry scan at each start. There is a second problem: It may be the case, that software is installed, which is actually not much valued by the user of the computer. We all know, how eagerly some service providers install their preferred view of the world. If we would make all installed schemes clickable, then we may have links to something, which we do not want to run under any circumstances.
I don't think we need two different parsers to solve this. I just tested a suitable solution for the problem. It is a configuration string, containing a space-separated list of additional schemes the user wants to allow. In the code it looks like this:
As you notice, this configuration contains the slashes after the scheme, so that there is a chance to use it for custom schemes without This configuration would need a place somewhere. Two ways:
|
Why not run scan in parallel thread and update text links in the text? Why not to put the result of a scan into shared memory between multiple Notepad++ instances? Or even run a mini service to hold intermediate parse results?
If you go "out of NP" by open a link (ctrl+click or double-click), then you can do it like in the browsers: open popup/sub menu to select variants with descriptions what they does. |
Sounds great! But in this case, why don't we make some default schemes (like "svn://" & "mailto://") plus customizable schemes, which are added by users via MISC of preferences dialog?
below "Enable fullbox mode" it makes more sense to me. |
Because the likelihood of crashes increases with the complexity of the software. And, as I mentioned, I don't want to run most of the software, which installed schemes on my computer. Under no circumstances. So I would need a exclude list then.
This would make the URLs more than one double-click away for the user, so some users will complain about the extra layer in the operation. And, new point: We are not talking about only 100 schemes, it is more like about 500 to 2000 schemes. About 10 percent of them may work as clickable links, the rest of them was installed for internal use of the software which installed them. Too hot for me. |
Thank you. This makes it much easier to me. PR is coming soon. |
We can specify "svn:// pdf://" as default value for the setting, right? The user can then extent this. "mailto:" is already standard. Or do you want to make the standard schemes excludable too? |
👍 they will be served as example furthermore.
Sorry, I don't follow you ? |
Make the standard schemes excludable would mean we accept only the schemes which are specified in the configuration. To keep the behavior of 7.9.1, the configuration would have be: The drawback is, that nothing works, if this configuration is empty. And we could end up to have to gray out the "Enable clickable links" box in the Preferences menu, if this configuration is empty. So I would prefer just to extend the standard schemes by the configuration. |
That makes perfect sense. So let's do it in this way. |
Related: #9172 |
And add default supported url schemes. Related: 5168bdb and notepad-plus-plus#9155 Close notepad-plus-plus#9195
@donho It will not be possible #9155 (comment)? We can't turn off some of default |
No, we can't. |
I misread the above post and thought that you want add possibility to change all. Personally, I don't need it at the moment, but if someone asks about it, I will direct them to this topic. |
Description of the Issue
Since 7.9.1 svn urls are not links any more, so can't be open, for example, via TortoiseSVN.
Suppose related to #9090
Steps to Reproduce the Issue
Add any svn URL to editor, for example: svn://svn.notepad-plus-plus.org
Expected Behavior
Link.
Actual Behavior
Simple text.
Debug Information
Notepad++ v7.9.1 (32-bit)
Build time : Nov 2 2020 - 01:03:56
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : ON
Local Conf mode : OFF
OS Name : Windows 7 Home Premium (64-bit)
OS Build : 7601.0
Current ANSI codepage : 1251
Plugins : DSpellCheck.dll mimeTools.dll NppConverter.dll NppExport.dll NPPJSONViewer.dll
The text was updated successfully, but these errors were encountered: