gavioto / stexbar

Automatically exported from code.google.com/p/stexbar
0 stars 1 forks source link

Request: Copy Paths in UNIX format #186

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm looking for a way to copy the path of a file in a way that allows me to 
paste it into a TCL shell or other shell with UNIX-like quoting mechanisms.

Example:
c:\folder\file.txt

This needs to be in in either of the two following forms:

- doubled backslashes
c:\\folder\\file.txt

- forward slashes
c:/folder/file.txt

I don't use this on paths with spaces in them, but I guess that spaces would 
need to be escaped or quoted as well, e.g.

C:\\Program\ Files\\StExBar\\StExBar.dll
or
C:/Program\ Files/StExBar/StExBar.dll
or
"C:\\Program Files\\StExBar\\StExBar.dll"
or
"C:/Program\ Files/StExBar/StExBar.dll"

That said, I still need the existing "Copy Paths" in its existing form.

The request is:

- Leave existing "Copy Paths" menu item as it is.
- Add "Copy Paths (UNIX format)" to menu.
- Add options to option menu to select one of the four different quoting types.

Thanks,
Allan

Original issue reported on code.google.com by allan.he...@gmail.com on 27 Mar 2012 at 11:13

GoogleCodeExporter commented 9 years ago
"C:/Program\ Files/StExBar/StExBar.dll"

should have been

"C:/Program Files/StExBar/StExBar.dll"

Original comment by allan.he...@gmail.com on 27 Mar 2012 at 11:16