Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-18 Thread Mariano Draghi
Hi, I think we're almost there; I added support for "styles" per profile too, and aded the field "Profile" to the properties dialog, so we now have a (basic) UI for configuring the profiles. Maybe it should be a "combo box" showing the profiles instead of a text field... but I'll leave that for s

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-10 Thread Mariano Draghi
On Fri, Mar 9, 2012 at 10:49 AM, Jaap Karssenberg wrote: > I would suggest a separate file in ~/.config/zim. E.g. > ~/config/zim/profiles/myprofile.conf . That way a profile can be > shared by multiple notebooks. This was my original intention for > profiles. > Hi, I just pushed my branch to Lau

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-09 Thread Mariano Draghi
On Fri, Mar 9, 2012 at 10:49 AM, Jaap Karssenberg wrote: > On Fri, Mar 9, 2012 at 2:40 PM, Mariano Draghi wrote: >> BTW, I'm using the notebook.zim file as the "profile", so apart from >> the Notebook section, it might contain the General, GtkInterface and >> PageView (plus any *Plugin) sections.

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-09 Thread Jaap Karssenberg
On Fri, Mar 9, 2012 at 2:40 PM, Mariano Draghi wrote: > BTW, I'm using the notebook.zim file as the "profile", so apart from > the Notebook section, it might contain the General, GtkInterface and > PageView (plus any *Plugin) sections. Do you agree with this, or would > you prefer a separate file

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-09 Thread Mariano Draghi
On Fri, Mar 9, 2012 at 10:10 AM, Jaap Karssenberg wrote: > On Fri, Mar 9, 2012 at 1:38 PM, Mariano Draghi wrote: >> The first has to do with some unit tests. A few tests instantiate a >> NotebookInterface and/or a GtkInterface without opening a notebook, >> and then perform some asserts on the de

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-09 Thread Jaap Karssenberg
On Fri, Mar 9, 2012 at 1:38 PM, Mariano Draghi wrote: > The first has to do with some unit tests. A few tests instantiate a > NotebookInterface and/or a GtkInterface without opening a notebook, > and then perform some asserts on the default plugins. The problem is: > the plugins are no longer load

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-09 Thread Mariano Draghi
On Wed, Mar 7, 2012 at 11:31 AM, Jaap Karssenberg wrote: > Yes, sounds good to me for first implementation. For now I would not > try to merge, just replace and emit the "preferences-changed" signal. > This signal should trigger any updates in the GUI that follow from the > new preferences. > I'm

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-07 Thread Jaap Karssenberg
On Wed, Mar 7, 2012 at 2:34 PM, Mariano Draghi wrote: > On Tue, Mar 6, 2012 at 7:00 AM, Jaap Karssenberg > wrote: >> On Tue, Mar 6, 2012 at 5:25 AM, Adam Porter wrote: >>> Does Zim load the plugins when a notebook is opened, or when the >>> daemon is loaded? >> >> They are opened per instance, b

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-07 Thread Mariano Draghi
On Tue, Mar 6, 2012 at 7:00 AM, Jaap Karssenberg wrote: > On Tue, Mar 6, 2012 at 5:25 AM, Adam Porter wrote: >> Does Zim load the plugins when a notebook is opened, or when the >> daemon is loaded? > > They are opened per instance, but they open before the notebook is > opened. So may need a litt

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-07 Thread Mariano Draghi
On Wed, Mar 7, 2012 at 1:54 AM, wrote: > Note that within Windows at least, this should be available now if you use > the "Portable" implementation, just create a separate instance of the zim > app folder and run your alternative configuration from that. > Good to know! I suppose that might solv

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-06 Thread hansbkk
Note that within Windows at least, this should be available now if you use the "Portable" implementation, just create a separate instance of the zim app folder and run your alternative configuration from that. On Sun, Mar 4, 2012 at 10:56 AM, Mariano Draghi wrote: > I wonder if it is somewhere i

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-06 Thread Jaap Karssenberg
On Tue, Mar 6, 2012 at 5:25 AM, Adam Porter wrote: > On Sat, Mar 3, 2012 at 21:56, Mariano Draghi wrote: >> How difficult could it be to (optionally) support the "plugins" list >> and the [*Plugin] sections in the notebook.zim file? > > I really like this idea.  Even if it wasn't exposed in the U

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-05 Thread Adam Porter
On Sat, Mar 3, 2012 at 21:56, Mariano Draghi wrote: > How difficult could it be to (optionally) support the "plugins" list > and the [*Plugin] sections in the notebook.zim file? I really like this idea. Even if it wasn't exposed in the UI, it would be nice. Does Zim load the plugins when a note

Re: [Zim-wiki] Disabling/Enabling plugins per Notebook

2012-03-04 Thread Christoph Zwerschke
Am 04.03.2012 04:56, schrieb Mariano Draghi: > I wonder if it is somewhere in the road map the ability to turn > plugins on and off in a notebook by notebook basis. ... > > What do you think? Does any of this make sense to anyone else? Makes sense, and I can even imagine that for certain plugins,