Page 1 of 1

Ctrl-Right click: Path as C-String (Escaped) and with Forward-slashes

Posted: 11 Jan 2017 19:54
by pulp
Hi,

i often need to copy pathes to C++. I would be useful if the Ctrl-Right click menu also offers the path C-String escaped and with forward-slashes instead of backslahes:

"E:\\Path1\\Path2\\file.txt" (\-escaped)
"E:/Path1/Path2/file.txt" (forward-slash


Thanks Jochen

Re: Ctrl-Right click: Path as C-String (Escaped) and with Forward-slashes

Posted: 11 Jan 2017 20:01
by highend
While you wait for it you could use a tiny script in the meantime (and just put it on a keyboard shortcut)...

Code: Select all

"\-escaped"
    copytext replace(<curitem>, "\", "\\");

"forward-slash"
    copytext replace(<curitem>, "\", "/");


Re: Ctrl-Right click: Path as C-String (Escaped) and with Forward-slashes

Posted: 11 Jan 2017 20:23
by pulp
highend wrote:While you wait for it you could use a tiny script in the meantime (and just put it on a keyboard shortcut)...

Code: Select all

"\-escaped"
    copytext replace(<curitem>, "\", "\\");

"forward-slash"
    copytext replace(<curitem>, "\", "/");

Thanks, i will run the scripts from the "open with" menu.