Thanks. Yes I remember this work. Do you think it could point to a file or contain a payload to drop on a wiki?
I will look more closely but I need to depend on the templates. Good start though
Thanks
Tony
Thanks. Yes I remember this work. Do you think it could point to a file or contain a payload to drop on a wiki?
I will look more closely but I need to depend on the templates. Good start though
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ee45dc80-e025-48f5-ac12-bbdc45ef5cb5%40googlegroups.com.
On both Chrome & Edge (Chromium Dev version) it failed.
> I did a little research such as here and is seems plausible that we could make a bookmarklet that would allow me to drop a specified json file onto a tiddlywiki from the bookmarks I would not even need to go looking for my json file to drag and drop it, just select from the bookmarks. If we can point to json files on our local disk or on a server such as provided by TiddlyServer it would be an easy way to distribute tools, tiddlers, data, plugins and macros to one or more wikis.
A JavaScript bookmarklet cannot in general read files from the local disk. I’ve knocked up a macro that does the next best thing: it can generate bookmarklets containing an arbitrary set of tiddlers identified by a filter.
This example generates a bookmarklet labelled “MyTiddlers” containing all the tiddlers with the tag “HelloThere”:
<<save-as-bookmarklet "MyTiddlers" "[tag[HelloThere]]">>
Drag the bookmarklet link to the browser address bar to install it, and then visit another TiddlyWiki. Clicking the bookmarklet will inject the payload tiddlers into the target wiki.The text of the macro:\define save-as-bookmarklet-href()(function() {$tw.wiki.addTiddlers($(json-tiddlers)$);})()\end\define save-as-bookmarklet(title,filter)<$wikify name="json-tiddlers" output="text" text="""<$text text=<<jsontiddlers filter:"$filter$">>/>"""><a href={{{ [<save-as-bookmarklet-href>encodeuricomponent[]addprefix[javascript:]] }}}><$text text=<<__title__>>/></a></$wikify>\endLet me know how you get on,Best wishesJeremy
On 11 Nov 2019, at 10:36, Ton Gerner <ton....@gmail.com> wrote:
Hi Tony,Thanks. Yes I remember this work. Do you think it could point to a file or contain a payload to drop on a wiki?
I will look more closely but I need to depend on the templates. Good start though
I really don't know. My knowledge of Javascript is almost nihil. I just used Stephan Hadrek's idea, see https://groups.google.com/forum/#!msg/tiddlywiki/cUUXichiwdU/8gTL3lsO0MUJCheers,Ton--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
A JavaScript bookmarklet cannot in general read files from the local disk.
I use my config bookmarklet daily now. I am working on a generic tool and a config management one that captures manually set configs and toggles.
In another area I am looking at bundles and plugins and realised the plugin build in the browser see tiddlywiki.com/dev uses the javaconsole and looks as if it could also be triggered by bookmarklet.
It seems to me automating the build of bookmarklets from tiddlywiki that can perform JavaScript functions on any wiki or further browser utilities is a whole new mechanisium even ecosystem tiddlywiki can also play in.
There are so many directions in which tiddlywiki can extend almost to infinity we have not yet explored yet.
Tony
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/baaf8dae-f964-4a48-bfa3-869489a73250%40googlegroups.com.
A link to a tiddler can be dragged into a different wiki, or dragged to the bookmarks bar then dragged into another wiki for import. Also the best way to load an external file would probably be to append a script tag with src to the body. Haven’t tested it but it should work.
On Thu, Jan 2, 2020 at 08:57 TiddlyTweeter <Tiddly...@assays.tv> wrote:
TonyM--Some comments.I have become very aware that you are keen on leverage of (a) browsers and (b) Windows to better support working with TW.These are things I am much in harmony with.I tried a few times to document some parts of this I know about. It is not as easy as it first looks to derive something that is comprehensible if you not been through it.Documentation is very time consuming & prone to error, so I tend to not publish it.The Bookmarklet by Jeremy is an elegant example of "just doing it" that is nicely contained.I continue to work on Polly, which is basically using shell functions to provide a management interface to save, backup, clone, fetch, launch, order etc wikis.BTW, Timimi (FF only) is interesting for single wiki in the way Bob is for file wike. It is quite easy in Timimi to launch scripts to do things.Closing the gap so you can do OS things via TW is real leverageNew year thoughts.Best, Josiah
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
> I did a little research such as here and is seems plausible that we could make a bookmarklet that would allow me to drop a specified json file onto a tiddlywiki from the bookmarks I would not even need to go looking for my json file to drag and drop it, just select from the bookmarks. If we can point to json files on our local disk or on a server such as provided by TiddlyServer it would be an easy way to distribute tools, tiddlers, data, plugins and macros to one or more wikis.
A JavaScript bookmarklet cannot in general read files from the local disk. I’ve knocked up a macro that does the next best thing: it can generate bookmarklets containing an arbitrary set of tiddlers identified by a filter.
This example generates a bookmarklet labelled “MyTiddlers” containing all the tiddlers with the tag “HelloThere”:
<<save-as-bookmarklet "MyTiddlers" "[tag[HelloThere]]">>
Drag the bookmarklet link to the browser address bar to install it, and then visit another TiddlyWiki. Clicking the bookmarklet will inject the payload tiddlers into the target wiki.The text of the macro:\define save-as-bookmarklet-href()(function() {$tw.wiki.addTiddlers($(json-tiddlers)$);})()\end\define save-as-bookmarklet(title,filter)<$wikify name="json-tiddlers" output="text" text="""<$text text=<<jsontiddlers filter:"$filter$">>/>"""><a href={{{ [<save-as-bookmarklet-href>encodeuricomponent[]addprefix[javascript:]] }}}><$text text=<<__title__>>/></a></$wikify>\endLet me know how you get on,Best wishesJeremy
On 11 Nov 2019, at 10:36, Ton Gerner <ton....@gmail.com> wrote:
Hi Tony,Thanks. Yes I remember this work. Do you think it could point to a file or contain a payload to drop on a wiki?
I will look more closely but I need to depend on the templates. Good start though
I really don't know. My knowledge of Javascript is almost nihil. I just used Stephan Hadrek's idea, see https://groups.google.com/forum/#!msg/tiddlywiki/cUUXichiwdU/8gTL3lsO0MUJCheers,Ton--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.
A link to a tiddler can be dragged into a different wiki, or dragged to the bookmarks bar then dragged into another wiki for import. Also the best way to load an external file would probably be to append a script tag with src to the body. Haven’t tested it but it should work.
On Thu, Jan 2, 2020 at 08:57 TiddlyTweeter <Tiddly...@assays.tv> wrote:
TonyM--Some comments.I have become very aware that you are keen on leverage of (a) browsers and (b) Windows to better support working with TW.These are things I am much in harmony with.I tried a few times to document some parts of this I know about. It is not as easy as it first looks to derive something that is comprehensible if you not been through it.Documentation is very time consuming & prone to error, so I tend to not publish it.The Bookmarklet by Jeremy is an elegant example of "just doing it" that is nicely contained.I continue to work on Polly, which is basically using shell functions to provide a management interface to save, backup, clone, fetch, launch, order etc wikis.BTW, Timimi (FF only) is interesting for single wiki in the way Bob is for file wike. It is quite easy in Timimi to launch scripts to do things.Closing the gap so you can do OS things via TW is real leverageNew year thoughts.Best, Josiah
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddl...@googlegroups.com.