View Issue Details
|0004023: Incorrect special symbols replacement with network shares
|Using latest FAR 126.96.36.19925 on Windows 11 x64 23H2
I have the following user menu command:
When the object under the cursor is a file or directory, the user menu correctly replaces the pattern with the path to that object, both on local drives ("C:\somedir\file.ext") and network shares ("\\SERVER\SHARE\somedir\file.ext").
However, if the object under the cursor is a network share in the network browser (for example, "\\SERVER\SHARE"), the command executed by the user menu will be:
The name of the network share is concatenated two times.
|Steps To Reproduce
|No tags attached.
if the object under the cursor is a network share in the network browserThis is sort of expected / a known issue.
See, a list of shares isn't a real directory on \\SERVER and SHARE isn't a real subdirectory.
From filesystem's point of view \\SERVER\SHARE\ is a single entity, a path root, logically equivalent to C:\
So in this particular case the plugin reports to Far that it's current directory is \\SERVER\SHARE\ (because \\SERVER is not a thing, see above) and the file is also \\SERVER\SHARE\ (because SHARE is not a thing, see above), and by concatenating them we get what we get.
This is, of course, suboptimal and I don't mind fixing it, but so far I don't really see how.