buggyj / tiddlyclip-plugin

tw plugin for tiddlyclip
MIT License
13 stars 1 forks source link

Feature request : support for streams plug in #35

Open arunnbabu81 opened 3 years ago

arunnbabu81 commented 3 years ago

I would like to request for support for outliner plug in of TW5 called streams.

Title of the webpage or pdf being clipped should become the parent streams tiddler. Whatever is being clipped at a first instance should be added as the first child of parent streams tiddler. Next clipped items should be the second child and so on.

Another request is to open a window of same TW with the corresponding streams tiddler in the webpage being clipped so that we can see and edit the notes being clipped on real time.

A similar implementation can be seen in the web clipper of a note taking app called remnote. https://chrome.google.com/webstore/detail/remnote-clipper/ohidiiabdhnlgcaidgndbdbjlhngeboj?hl=en https://www.youtube.com/watch?v=_5jS75Gl5ak

buggyj commented 3 years ago

Answer to first request:

The tiddlyclip browser extension sends clips and metadata(eg url, title) to the tiddlyclip plugin installed in a tiddlywiki. The plugin creates/modifies tiddlers with this data (clips and metadata). The plugin has a scripting language to allow for creation/modification of multiple tiddlers, and in addition javascript macros can be added. Thus I think it possible to clip to stream tiddlers by creating a configuration for tiddlyclip and that the tiddlyclip plugin does not need to be modified.

Creating such a configuaration would be very low on my list of projects. However if someone with at least a little programming experience wants to do this I would answer questions about how to write the config etc. I guess it would take a couple of days to do.

Answer to second request: It is not possible to do this with tiddlywiki + tiddlyclip. - with remnote you upload the pdf to their server which allows them to create the edit sidebar next to the pdf on their webpage.

arunnbabu81 commented 3 years ago

Thanks for the reply. Since I have no knowledge in programming, I think I will wait untill someone versed in programming who has this particular demand to come up and take up such a project.

Regarding remnote, their clipper doesn’t need pdf to be uploaded to remnote server. It can open an edit sidebar even while clipping from a webpage. Only thing needed is we should log into our remnote account.

buggyj commented 3 years ago

I have create an issue for opening a tiddlywiki in the browser sidebar here: https://github.com/buggyj/tiddlyclip/issues/66#issue-786765738

With tiddlywiki there is no server (tiddlywiki is a single webpage client application) and tiddlyclip sends clips to a tiddlywiki using the browser addon tabs api - I can find no way with the present api to sent messages to a sidebar - If this becomes available in the furture I will add this feature. As remnote uses a server, its clipper can sent clips to it using the internet protocols, and does not have this limitation.

arunnbabu81 commented 2 years ago

I tried to make a new config for using with streams

image

This is how streams work

image

image

arunnbabu81 commented 2 years ago

I think its much more complicated than i anticipated. I dont think i can solve this.

The parent node needs to have a field called stream-list also. That part is beyond my skill level at present

buggyj commented 2 years ago

add these two lines to your tiddlyclipconf and import the zipped tiddlers

|stream|||[[streamsnap]]|| |streaminc|||[[streamsnapinc]]||

tiddlers.json.zip

arunnbabu81 commented 2 years ago

That was just awesome. Thank you for all your works for tiddlywiki

arunnbabu81 commented 2 years ago

How to modify the snap and pin rules for streams

This is what i tried for snap....it does not seem to work

image

image

buggyj commented 2 years ago

add this to your tiddlyclipconfig

|streamimginc|||[[streamsnapimg]]|snap|

and add this tiddler streamsnapimg.json.zip

arunnbabu81 commented 2 years ago

How to do the pin rule

This is what i tried which is not working.

image

image

How to modify it?

arunnbabu81 commented 2 years ago

This is actually working. The website i tried initially didn't allow to pin the images i selected.

buggyj commented 2 years ago

good stuff!