Understand file: and %20

We welcome any suggestions for new features or improvements in Altap Salamander. Please post one suggestion per report.
User avatar
mdruiter
Posts: 258
Joined: 22 Feb 2006, 15:33
Location: Amsterdam, The Netherlands
Contact:

Understand file: and %20

Post by mdruiter » 23 May 2011, 15:24

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)

User avatar
Ether
Posts: 1459
Joined: 10 May 2007, 16:08
Location: Czech Republic
Contact:

Re: Understand file: and %20

Post by Ether » 24 May 2011, 10:51

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.
Ελληνικά rulez.

Petr Solin
ALTAP Staff
ALTAP Staff
Posts: 1109
Joined: 08 Dec 2005, 09:13
Location: Novy Bor, Czech Republic
Contact:

Re: Understand file: and %20

Post by Petr Solin » 04 Nov 2016, 13:42

Conversion from URL (prefix file://) to windows path is implemented in prepared version 3.08.

Post Reply