[TW5] Is there a way to change a backslash to a slash in a path string?

67 views
Skip to first unread message

Martin

unread,
Apr 23, 2015, 3:07:51 PM4/23/15
to tiddl...@googlegroups.com
Hello,
I would like to easily add a path and file name as an external link (mainly for PDF files) to a tiddler on a windows pc by copy/paste. In windows file explorer, shift-right-click on a file allows to copy the complete path and file name string into the clipboard. But since in Windows, the path is built with backslashes and TiddlyWiki wants slashes, I have to update the string manually.

Is there a way to automate this in TiddlyWiki, e.g. by a special "import path and file name plugin"? Or by using a macro? Or by any other means?

I tried to understand macros and variables, but as a non-programmer it is not so easy for me to understand.

Any help or hint is highly appreciated. Thank you in advance, Martin

PMario

unread,
Apr 24, 2015, 5:13:51 AM4/24/15
to tiddl...@googlegroups.com
Hi Martin,

I'm not sure why TW wants slashes. ... I did a short test with win8.1  [ext[.\readme.txt]] and it does exactly what it should. It opened the redme.txt file in the browser. ...

So can you be more exact, how your non working links look like?

-mario

Martin

unread,
Apr 24, 2015, 12:58:18 PM4/24/15
to tiddl...@googlegroups.com
Hi Mario,
you are right, this isn't a problem in the first place! Somehow (don't know why) I was thinking that only slashes are possible, but obviously backslashes work as well!

Thank you for this hint, makes my life much easier!
Martin
Reply all
Reply to author
Forward
0 new messages