Zim

[Feature request] Zeitgeist support

Bug #610515 reported by DavidM
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Zim
Fix Released
Wishlist
Marcel Stimberg

Bug Description

Zeitgeist is an event aggregator that can provide a timeline of the things you have done with your computer (which files you opened with which program in each moment, plus websites, etc.) and find relations among them.
I would like to see, in Zeitgeist-powered frontends, the Zim pages (in the end, text files) that I have been working on during each period. It would help to keep track of work and remember related items.
I guess this would require a plugin in Zim to feed that data into Zeitgeist in the background. No user interface at all.
Maybe this is a bit early to even suggest this, since Zeitgeist is still a very new technology. Just wanted to start talking about the idea.
Thanks for the brilliant work.

Related branches

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 610515] [NEW] [Feature request] Zeitgeist support

Can you reference some design document of how the data interface for
zeitgeist is supposed to work?

Revision history for this message
DavidM (milarupa) wrote :

I am just a user, not a developer at all. :-) Is this what you need?

http://zeitgeist-project.com/documentation

Thanks for the interest.

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote : Re: [Bug 610515] Re: [Feature request] Zeitgeist support

On Tue, Jul 27, 2010 at 9:59 PM, DavidM <email address hidden> wrote:
> I am just a user, not a developer at all. :-) Is this what you need?
>
> http://zeitgeist-project.com/documentation
>
> Thanks for the interest.

Yes. This details how we can push events to zeitgeist over D-Bus. Also
seems to refer to python bindings. So all a plugin would need to do is
load those python bindings and generate an event for every page
modification.

Btw. demo I've seen of zeitgeist just monitored the modification time
of files on the file system. Does it work on zim notebooks as well
when you just consider them as folders ?

Regards,

Jaap

Changed in zim:
status: New → Confirmed
importance: Undecided → Wishlist
tags: added: integration plugin
removed: zeitgeist
Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Hi all,

I started working on a plugin pushing events to the zeitgeist daemon, but could need advice on which signals to connect to. The only signal that works so far is open-page (translates into an "access event" in zeitgeist). I also found close-page, delete-page, store-page, new-window, … but they all seem to somewhat depend on the particular way (via menu, etc.) a note is created, deleted, etc. Are there any "low-level" signals that get emitted whenever a note is created, modified, etc., regardless of how this is done?

Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

On Sun, Feb 20, 2011 at 7:00 PM, Marcel Stimberg
<email address hidden> wrote:
> I started working on a plugin pushing events to the zeitgeist daemon,
> but could need advice on which signals to connect to. The only signal
> that works so far is open-page (translates into an "access event" in
> zeitgeist). I also found close-page, delete-page, store-page, new-
> window, … but they all seem to somewhat depend on the particular way
> (via menu, etc.) a note is created, deleted, etc. Are there any "low-
> level" signals that get emitted whenever a note is created, modified,
> etc., regardless of how this is done?

Sounds like you are connecting to the signals of the "gui" object.
These are indeed dependent on user interface actions. Have a look
instead at the signals of the "gui.notebook" object, the Notebook
class is defined in "zim/notebook.py" and has signals like
"stored-page", "moved-page" and "deleted-page".

-- Jaap

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Thanks Jaap, the very basic integration seems to work. I have to take a closer look at Zeitgeist how more complex events like renaming, linking, etc. are handled. If no one minds, I’ll assign the bug to myself and link my branch, but do not expect a "merge-ready" solution soon.

Changed in zim:
assignee: nobody → Marcel Stimberg (marcelstimberg)
tags: added: zeitgeist
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

On Sun, Feb 20, 2011 at 11:01 PM, Marcel Stimberg
<email address hidden> wrote:
> If no one minds, I’ll assign the bug to myself and
> link my branch, but do not expect a "merge-ready" solution soon.

Sure go ahead. Just send a merge request when the code is more or less
finished. Initial plugin code looks nice and clean, so no problem
merging it as is.

-- Jaap

Revision history for this message
Marcel Stimberg (marcelstimberg) wrote :

Well, I did let the code rot for a while, but I think it works good enough for a start. When the plugin is activated, pages edited in zim should appear in places using the zeitgeist daemon, e.g. in the "recently used documents" in the Unity Dash. Unfortunately, clicking them opens the note in a texteditor (bug #981419)...

Changed in zim:
status: Confirmed → In Progress
Changed in zim:
status: In Progress → Fix Committed
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) wrote :

Fixed in zim 0.57

Changed in zim:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.