Page 1 of 1

Understand file: and %20

Posted: 23 May 2011, 15:24
by mdruiter
It would be great if Salamander was more robust in understanding file names.

For instance, I find myself pasting paths like this regularly:
file:///D:\Some%20path%20containing%20spaces\File%20name.ext
Currently, I have to remove the file:/// prefix and replace %20 by spaces. Which is cumbersome and error prone.

Some suggestions:
- trim any surrounding spaces (this already works!)
- replace any slashes by backslashes (this already works!)
- remove any surrounding double quotes (see http://forum.altap.cz/viewtopic.php?f=3&t=3977)
- ignore any file:/// prefix (no it's NOT a plugin file system!)
- if the target (of Ctrl+V) doesn't exist, retry after replacing every %20 with a space (or maybe even interpret all URL encoding)

Re: Understand file: and %20

Posted: 24 May 2011, 10:51
by Ether
I may be wrong, but this seems like a good idea for a simple plugin. Registers file: URI scheme, decodes it and redirects to the correct path on the filesystem. The only downside (of these "URLs", not of the plugin) is that they look ugly with the drive letters in them.

Re: Understand file: and %20

Posted: 04 Nov 2016, 13:42
by Petr Solin
Conversion from URL (prefix file://) to windows path is implemented in prepared version 3.08.