Zim

add files to version control

Asked by Chaffra Affouda

I noticed that when I paste an image it does not get automatically added to version control. I have to remember to do it manually. How can I fix this. I found the line where the paste_image*.png is created. I just need to add some code telling zim to add it to version control....

Question information

Language:
English Edit question
Status:
Answered
For:
Zim Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jaap Karssenberg (jaap.karssenberg) said :
#1

Your right - it goes wrong because we use the "pixbuf.save()" to write the
image, rather than zim's own File class. The result is that there is not
signal emitted to the version control plugin that a new file is written.

Probably if you import the "FS" object from zim.fs and call
"FS.emit('path-created', file)" after "pixbuf.save" it will trigger the
version control plugni to pick it up.

Please report as bug report, than I will patch it as well in the code trunk.

Regards,

Jaap

On Sat, Jul 6, 2013 at 5:26 AM, Chaffra Affouda <
<email address hidden>> wrote:

> New question #231964 on Zim:
> https://answers.launchpad.net/zim/+question/231964
>
> I noticed that we i paste an image if does not get automatically added to
> version control. I have to remember to do it manually. How can I fix this.
> I found the line where the paste_image*.png is created. I just need to add
> some code telling zim to add it to version control....
>
> --
> You received this question notification because you are an answer
> contact for Zim.
>

Can you help with this problem?

Provide an answer of your own, or ask Chaffra Affouda for more information if necessary.

To post a message you must log in.