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
Open target file on Drag and Drop a shortcut #8483
Comments
Verified on 7.8.7 32-bit. |
👍 |
If the code shown HERE is integrated into Notepad++'s doOpen() function (at the top), it seems to open the target file of a .lnk file rather than the .lnk file itself. No special check needs to be done to see if an incoming argument has a .lnk extension, as the call to Not sure if there are any negative aspects to this; any comments are appreciated. |
Yes, it looks like this is the recommended way of doing it. |
I saw that code; the code I cited used it in a "real world" way, so I chose that to link to instead. |
Managed to add a 'Open Linked File' option in the TabBar Context Menu. This can open an entire folder too... |
Why would you want to open the |
You mean why would I view the original text? I can modify the |
OK. Thanks. |
STR:
Create a Windows Shortcut (.lnk) to a text file.
Drag and drop the Shortcut into Notepad++.
Result:
The .lnk file is opened.
Expected Result:
The target text file should be opened.
Notepad++ v7.8.3 (32-bit)
Build time : Jan 17 2020 - 18:20:02
Path : C:---\notepad++.exe
Admin mode : ON
Local Conf mode : ON
OS Name : Windows 7 Enterprise (32-bit)
OS Build : 7601.23964
Plugins : ComparePlus.dll HTMLTag_unicode.dll MenuIcons.dll PythonScript.dll _CustomizeToolbar.dll
The text was updated successfully, but these errors were encountered: