← Back to team overview

zim-wiki team mailing list archive

Re: Sending data to a running zim instance


On Wed, Mar 31, 2010 at 10:45 AM, Svenn Are Bjerkem
<svenn.bjerkem@xxxxxxxxxxxxxx> wrote:
> I need to get to the point where the firefox extension give me an
> error from zim that 'this feature has not been implemented yet'. That
> implies a bit of work on my side and I don't move very fast. Take your
> time. I pull from bzr and see if something has happened.

Please note that most of the lines in the tomfox example are just
compiling a shell script that does some manipulation of the tomboy
input. This seems like a complex hack that we should not even want to
copy. Problby just keep the part to get the text and the URL and feed
it to zim, let zim handle any complexity in storing the data.

> I'll try to describe the intended functionality from firefox side
> without considering if it is possible to implement or not. I need a
> vision to work towards and then problems will be solved as I try to
> get there:
> * The user select a piece of text in the browser.
> * Right click and select a menu item 'send to zim'
> * A widget will pop up showing the selected text as it will be sent to zim
> * A second, empty text area will be available to put user comments or
> tags easy to find with search.
> * A pulldown widget will make alternative zim notebooks available
> (remember last one used)
> * A second pulldown widget will make alternative namespaces avaliable
> (remember last one used)
> * By pressing the OK button stuff is sent off to zim.

This sounds a lot like the "dump" dialog in the bug report referred to
by Dotan: https://bugs.launchpad.net/zim/+bug/439878

I would not try to do this from firefox, but put all this dialog stuff
into zim itself. Keep the plugin a really thin layer that just feeds
the text to zim and let zim popup such a dialog if needed.



Follow ups