Folks, I am not sure If I am missing something but is there a way to have a link to a file at a URL within tiddlywiki that triggers an import to that tiddlywiki?
You may know already; if not it may be helpful.
- if you have a url link to a file you can open it in a new tab or window, r-click in a browser and download it with your browser;
- If you use the
<$browse/>
widget you can select files from your computer to import them to tiddlywiki and this includes text, tids and JSON files even tiddlywiki html files from which you can select tiddlers. SInce this is your local system you must use a file open dialogue. - Also perhaps less well known, is with the browser widget if you paste a html link to a file on the internet, rather than select from your local files tiddlywiki will import that file into tiddlywiki.
- Also we can make bookmarklets that contain tiddlers which when clicked are imported to the wiki without a dialogue or the $:/Import process.
- For example drop this in your Wiki Reimagin Tags.json (20.6 KB)
My Question;
- Is there a way we could have a link in tiddlywiki to an internet location that on click would attempt to import that file into tiddlywiki?, in this case triggering/presenting the $:/Import tiddler. A link or button would be fine.
Why?
- This could allow onclick installs of a plugin, file or data such as a JSON file into a wiki allowing us to simplify complex installation instructions.
- For safety its fine to insist on needing to click Import in the $/Import tiddler.
Research;
- All import widgets (but not bookmarklets) seem to demand browsing and or pasting an address.
- Perhaps a Bookmarklet could be constructed to pull the file from a URL?
- Links to files to a Browser add on will Import the add on to the Browser, I would like to do this for tiddler content.
- Tidddloid allows you to import a whole wiki into the app from a URL.
- Perhaps we need a custom widget or Javascript plugin to facilitate this?