Re: [Zim-wiki] Error links in contribute page

2014-10-08 Thread Jaap Karssenberg
Yep, I know - open item on my action list.

-- Jaap

On Wed, Oct 8, 2014 at 3:33 PM, Didier BRETIN  wrote:

> Jaap,
>
> In the contribute page (http://zim-wiki.org/contribute.html) the links to
> the «open bounties» are not the good ones apparently. There is this sort of
> link:
> - http://www.zim-wiki.org/wiki/doku.php?id=resolving_syncing_conflicts
>
> Regards
> --
> Didier Bretin
>
> ___
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


[Zim-wiki] Error links in contribute page

2014-10-08 Thread Didier BRETIN
Jaap,

In the contribute page (http://zim-wiki.org/contribute.html) the links to
the «open bounties» are not the good ones apparently. There is this sort of
link:
- http://www.zim-wiki.org/wiki/doku.php?id=resolving_syncing_conflicts

Regards
--
Didier Bretin
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] How to specify the width of the editor panel

2014-10-08 Thread Didier BRETIN
Oh I just see that you are discuss about this problem in another thread.
It's fine, I find the solution to have access to the plugins, thanks. I
will play with all this solutions.

On 8 October 2014 15:08, Didier BRETIN  wrote:

> Thanks I will try the two options.
>
> But when I try to launch the Preferences dialog I have this error:
>
> This is zim 0.62
> Platform: nt
> Locale: fr_FR cp1252
> FS encoding: mbcs
> Python: (2, 7, 8, 'final', 0)
> Gtk: (2, 24, 10)
> Pygtk: (2, 24, 0)
> Zim revision is:
>   branch: zim
>   revision: 738 jaap.karssenb...@gmail.com-20140930191715-hpl66psh7yudcskr
>   date: 2014-09-30 21:17:15 +0200
>
> === Traceback ===
>   File "zim\gui\__init__.pyo", line 911, in _action_handler
>   File "zim\gui\__init__.pyo", line 1793, in show_preferences
>   File "zim\gui\preferencesdialog.pyo", line 76, in __init__
>   File "zim\gui\preferencesdialog.pyo", line 217, in __init__
>   File "zim\gui\preferencesdialog.pyo", line 227, in do_row_activated
> IndexError: could not find tree path
>
> On 8 October 2014 14:47, Jaap Karssenberg 
> wrote:
>
>> So the question is how to set the divider between the index and the
>> current page ?
>>
>> This should also be remembered. There is a "state.conf" file in the
>> notebook cache folder which contains these kind of settings. There should
>> be a key in that file "left_pane" which defines the width of the index in
>> pixels.
>>
>> However, have you tried the "distraction free editing" plugin ?  That
>> plugin specifically allows you to set the page width for full screen
>> editing.
>>
>> Regards,
>>
>> Jaap
>>
>>
>> On Wed, Oct 8, 2014 at 2:41 PM, Didier BRETIN  wrote:
>>
>>> Sorry. I mean the editor panel, the panel where you wrote your text at
>>> the right of the tree of the pages :).
>>>
>>> On 8 October 2014 14:19, Jaap Karssenberg 
>>> wrote:
>>>
 On Wed, Oct 8, 2014 at 12:58 PM, Didier BRETIN 
 wrote:

> I like to write text in Zim and I like to have no distraction when I
> write. So I setup Zim in full screen mode. And then generaly I setup the
> size of the editor window to approximatively 100 characters.
>
>
 Sorry, but I'm not clear what you define as the "editor window". In my
 terminology a window is a thing you move around on the desktop. So the
 window can be full screen. But it can not be full screen and 100 char width
 at the same time unless your screen in 100 char width.

 Might help if you take a screenshot and put in some arrow what it is
 you want to change.

 Regards,

 Jaap


>>>
>>>
>>> --
>>> Didier Bretin
>>>
>>> ___
>>> Mailing list: https://launchpad.net/~zim-wiki
>>> Post to : zim-wiki@lists.launchpad.net
>>> Unsubscribe : https://launchpad.net/~zim-wiki
>>> More help   : https://help.launchpad.net/ListHelp
>>>
>>>
>>
>
>
> --
> Didier Bretin
>



-- 
Didier Bretin
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] How to specify the width of the editor panel

2014-10-08 Thread Didier BRETIN
Thanks I will try the two options.

But when I try to launch the Preferences dialog I have this error:

This is zim 0.62
Platform: nt
Locale: fr_FR cp1252
FS encoding: mbcs
Python: (2, 7, 8, 'final', 0)
Gtk: (2, 24, 10)
Pygtk: (2, 24, 0)
Zim revision is:
  branch: zim
  revision: 738 jaap.karssenb...@gmail.com-20140930191715-hpl66psh7yudcskr
  date: 2014-09-30 21:17:15 +0200

=== Traceback ===
  File "zim\gui\__init__.pyo", line 911, in _action_handler
  File "zim\gui\__init__.pyo", line 1793, in show_preferences
  File "zim\gui\preferencesdialog.pyo", line 76, in __init__
  File "zim\gui\preferencesdialog.pyo", line 217, in __init__
  File "zim\gui\preferencesdialog.pyo", line 227, in do_row_activated
IndexError: could not find tree path

On 8 October 2014 14:47, Jaap Karssenberg 
wrote:

> So the question is how to set the divider between the index and the
> current page ?
>
> This should also be remembered. There is a "state.conf" file in the
> notebook cache folder which contains these kind of settings. There should
> be a key in that file "left_pane" which defines the width of the index in
> pixels.
>
> However, have you tried the "distraction free editing" plugin ?  That
> plugin specifically allows you to set the page width for full screen
> editing.
>
> Regards,
>
> Jaap
>
>
> On Wed, Oct 8, 2014 at 2:41 PM, Didier BRETIN  wrote:
>
>> Sorry. I mean the editor panel, the panel where you wrote your text at
>> the right of the tree of the pages :).
>>
>> On 8 October 2014 14:19, Jaap Karssenberg 
>> wrote:
>>
>>> On Wed, Oct 8, 2014 at 12:58 PM, Didier BRETIN 
>>> wrote:
>>>
 I like to write text in Zim and I like to have no distraction when I
 write. So I setup Zim in full screen mode. And then generaly I setup the
 size of the editor window to approximatively 100 characters.


>>> Sorry, but I'm not clear what you define as the "editor window". In my
>>> terminology a window is a thing you move around on the desktop. So the
>>> window can be full screen. But it can not be full screen and 100 char width
>>> at the same time unless your screen in 100 char width.
>>>
>>> Might help if you take a screenshot and put in some arrow what it is you
>>> want to change.
>>>
>>> Regards,
>>>
>>> Jaap
>>>
>>>
>>
>>
>> --
>> Didier Bretin
>>
>> ___
>> Mailing list: https://launchpad.net/~zim-wiki
>> Post to : zim-wiki@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~zim-wiki
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>


-- 
Didier Bretin
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] How to specify the width of the editor panel

2014-10-08 Thread Jaap Karssenberg
So the question is how to set the divider between the index and the current
page ?

This should also be remembered. There is a "state.conf" file in the
notebook cache folder which contains these kind of settings. There should
be a key in that file "left_pane" which defines the width of the index in
pixels.

However, have you tried the "distraction free editing" plugin ?  That
plugin specifically allows you to set the page width for full screen
editing.

Regards,

Jaap


On Wed, Oct 8, 2014 at 2:41 PM, Didier BRETIN  wrote:

> Sorry. I mean the editor panel, the panel where you wrote your text at the
> right of the tree of the pages :).
>
> On 8 October 2014 14:19, Jaap Karssenberg 
> wrote:
>
>> On Wed, Oct 8, 2014 at 12:58 PM, Didier BRETIN  wrote:
>>
>>> I like to write text in Zim and I like to have no distraction when I
>>> write. So I setup Zim in full screen mode. And then generaly I setup the
>>> size of the editor window to approximatively 100 characters.
>>>
>>>
>> Sorry, but I'm not clear what you define as the "editor window". In my
>> terminology a window is a thing you move around on the desktop. So the
>> window can be full screen. But it can not be full screen and 100 char width
>> at the same time unless your screen in 100 char width.
>>
>> Might help if you take a screenshot and put in some arrow what it is you
>> want to change.
>>
>> Regards,
>>
>> Jaap
>>
>>
>
>
> --
> Didier Bretin
>
> ___
> Mailing list: https://launchpad.net/~zim-wiki
> Post to : zim-wiki@lists.launchpad.net
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] How to specify the width of the editor panel

2014-10-08 Thread Didier BRETIN
Sorry. I mean the editor panel, the panel where you wrote your text at the
right of the tree of the pages :).

On 8 October 2014 14:19, Jaap Karssenberg 
wrote:

> On Wed, Oct 8, 2014 at 12:58 PM, Didier BRETIN  wrote:
>
>> I like to write text in Zim and I like to have no distraction when I
>> write. So I setup Zim in full screen mode. And then generaly I setup the
>> size of the editor window to approximatively 100 characters.
>>
>>
> Sorry, but I'm not clear what you define as the "editor window". In my
> terminology a window is a thing you move around on the desktop. So the
> window can be full screen. But it can not be full screen and 100 char width
> at the same time unless your screen in 100 char width.
>
> Might help if you take a screenshot and put in some arrow what it is you
> want to change.
>
> Regards,
>
> Jaap
>
>


-- 
Didier Bretin
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] How to specify the width of the editor panel

2014-10-08 Thread Jaap Karssenberg
On Wed, Oct 8, 2014 at 12:58 PM, Didier BRETIN  wrote:

> I like to write text in Zim and I like to have no distraction when I
> write. So I setup Zim in full screen mode. And then generaly I setup the
> size of the editor window to approximatively 100 characters.
>
>
Sorry, but I'm not clear what you define as the "editor window". In my
terminology a window is a thing you move around on the desktop. So the
window can be full screen. But it can not be full screen and 100 char width
at the same time unless your screen in 100 char width.

Might help if you take a screenshot and put in some arrow what it is you
want to change.

Regards,

Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] How to specify the width of the editor panel

2014-10-08 Thread Didier BRETIN
Not exactely. I would like to specify the width of the editor window only.
I ty to explain.

I like to write text in Zim and I like to have no distraction when I write.
So I setup Zim in full screen mode. And then generaly I setup the size of
the editor window to approximatively 100 characters.

I would like to have the possibility to specify this width about 100
characters.

On 7 October 2014 16:29, Jaap Karssenberg 
wrote:

> There is a "--geometry" commandline argument - is that what you are
> looking for?
>
> Also zim actually remembers the state including window size, so should be
> the same as you had it last time you closed the aplication.
>
> -- Jaap
>
>
> On Tue, Oct 7, 2014 at 12:51 PM, Didier BRETIN  wrote:
>
>> Hello,
>>
>> Is there a way to specify the width of the editor panel so when I start
>> Zim I have the size I want by default ?
>>
>> Regards.
>> --
>> Didier Bretin
>>
>> ___
>> Mailing list: https://launchpad.net/~zim-wiki
>> Post to : zim-wiki@lists.launchpad.net
>> Unsubscribe : https://launchpad.net/~zim-wiki
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>


-- 
Didier Bretin
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Zim 0.62 for Windows released

2014-10-08 Thread Brendan Kidwell
It's going to take me some time to wrap my head around all
those names and strings and figure out where these paths are
supposed to be, and whether #2 is possible. I've got no more
time to think about this until at least the weekend, if not
next week.



All my code is up-to-date in the main repository (no changes in
the past week; no pending pull requests). If someone wants to
jump in and produce the simplest fix before I can, they're
welcome to do so.



Brendan



On Wed, Oct 8, 2014, at 04:11, Jaap Karssenberg wrote:

Brendan,

One step back; of course the default shipped plugins are in the
python library path. They are installed as part of the program,
and the user will not easily remove them. The XDG_DATA folders
are used for extra user installed plugins that do not ship with
the default install.

XDG_DATA contains the user data folder but also the system data
folders. Yes it is reasonable for the user to mess around with
the user data folder, but we should be able to use the system
data folder for files included in the installer. This is the
same "data" folder is used by the installer for the manual,
templates & images. So I think there is no harm in using it for
plugins as well.

Problem is that for the executable the default plugins are
compiled into the executable, so we can no longer scan the
files to get an index of them.

Previously the work around has been to ship a copy of the
plugins outside of the executable. This work around now broke.

Two ways to fix that:
1. Fix the work around by putting the files in the right folder
2. Fix the issue by somehow making sure we can list the plugin
files even when compiled into an executable

Fix in #1 is real easy, just move the files you install now to
"zim/plugins" to "data/zim/plugins".

Most simple version of #2 would be to patch the
"PluginManager.list_installed_plugins()" function with a hard
coded list when compiling to executable.

Would that work for you?

Regards,

Jaap
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Zim 0.62 for Windows released

2014-10-08 Thread Jaap Karssenberg
Brendan,

One step back; of course the default shipped plugins are in the python
library path. They are installed as part of the program, and the user will
not easily remove them. The XDG_DATA folders are used for extra user
installed plugins that do not ship with the default install.

XDG_DATA contains the user data folder but also the system data folders.
Yes it is reasonable for the user to mess around with the user data folder,
but we should be able to use the system data folder for files included in
the installer. This is the same "data" folder is used by the installer for
the manual, templates & images. So I think there is no harm in using it for
plugins as well.

Problem is that for the executable the default plugins are compiled into
the executable, so we can no longer scan the files to get an index of them.

Previously the work around has been to ship a copy of the plugins outside
of the executable. This work around now broke.

Two ways to fix that:
1. Fix the work around by putting the files in the right folder
2. Fix the issue by somehow making sure we can list the plugin files even
when compiled into an executable

Fix in #1 is real easy, just move the files you install now to
"zim/plugins" to "data/zim/plugins".

Most simple version of #2 would be to patch the
"PluginManager.list_installed_plugins()" function with a hard coded list
when compiling to executable.

Would that work for you?

Regards,

Jaap



On Tue, Oct 7, 2014 at 5:51 PM, Brendan Kidwell  wrote:

>  IMO this is a failure in the executable, not in the packaging.
>
> What if the user deletes $XDG_data/zim? This is a perfectly reasonable
> thing for a user to do if they want a reset. What happens right now if I do
> that on a Unix platform?
>
> It is incorrect to require user data folders under ~ be created during
> installation. The main executable or the main executable's launcher must
> create the folder. In the Windows build, the Portable Install has a
> launcher but not the Desktop Install.
>
> Therefore, we need to change the main executable to either tolerate the
> missing folder, or to create it before it reads it.
>
> Otherwise I will have to make a tiny launcher script for the Desktop
> Install using NSIS, which creates any required resources for $USER and then
> passes control to the main executable.
>
> Brendan
>
> On Tue, Oct 7, 2014, at 10:33, Jaap Karssenberg wrote:
>
> I believe this is due to the search path for plugins has changed. IIRC the
> windows build has to supply the .py files of the plugins in order to make
> zim find them. These should now be in XDG_DATA/zim/plugins rather than the
> python path.
>
> Let me know if this is a problem for packaging, could add a rule for
> finding them relative to the executable.
>
>  The explanation for the error is that when the dialog is shown, we load
> the description of the first plugin. Here the error occurs, saying that it
> can not find the first description. This means the entire plugin list is
> empty.
>
>  Regards,
>
> Jaap
>
>
>
> On Tue, Oct 7, 2014 at 1:34 AM, Brendan Kidwell  wrote:
>
> I've updated the release page to reflect the fact that it doesn't work.
>  It doesn't work for me on my build VM either; I didn't test everything
>  before I published it.
>
>  Jaap: have requirements changed?
>
>  It will be a few days before I can look into this.
>
>  On Mon, Oct 6, 2014, at 05:35, Marco Cevoli wrote:
>  > Same here on Win 8.1:
>  >
>  > This is zim 0.62
>  > Platform: nt
>  > Locale: it_IT cp1252
>  > FS encoding: mbcs
>  > Python: (2, 7, 8, 'final', 0)
>  > Gtk: (2, 24, 10)
>  > Pygtk: (2, 24, 0)
>  > Zim revision is:
>  >   branch: zim
>  >   revision: 738
>  >   jaap.karssenb...@gmail.com-20140930191715-hpl66psh7yudcskr
>  >   date: 2014-09-30 21:17:15 +0200
>  >
>  > === Traceback ===
>  >   File "zim\gui\__init__.pyo", line 911, in _action_handler
>  >   File "zim\gui\__init__.pyo", line 1793, in show_preferences
>  >   File "zim\gui\preferencesdialog.pyo", line 76, in __init__
>  >   File "zim\gui\preferencesdialog.pyo", line 217, in __init__
>  >   File "zim\gui\preferencesdialog.pyo", line 227, in do_row_activated
>  > IndexError: could not find tree path
>
>
>
>
>
___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] export

2014-10-08 Thread Paulo van Breugel
I can't help with the technical question, but would certainly be interested to 
test any solution :-)
 

 On Tuesday, October 7, 2014 4:46 PM, NorfCran  wrote:
   

 Hi Paulo,

it is quite handy feature, at some point I was looking for something
similar some. I have made a dirty python script to cover my demands.

I would like to share a use case also related to export of content
(recursively). Initially the script went through content from
currently opened page (top page), collected links (kept order of links
in text). In this way each link to a subpage was replaced with its
content (recursively for each page until it reached end page with no
more links to subpages). At the same time the script also generated
table of content with few other adjustments to content of each page.
It allowed me to structure each chapter like a subpage and when time
came I applied the mentioned script, got one long page in a clipboard,
created a new page of derived content from the hierarchical structure,
exported it to latex and my thesis got almost ready to be shipped :D

So in deed I am interested in this feature and possibly I can try to
create the plugin. The only technical question I have is about the
insex, whether it is possible to get order of links from a page
content and if not, than I am interested how difficult would it be to
make it possible? I often use links to subpages and would like to
reflect the order in index of the side panel, this is useful for
switching pages by Alt-PgUp and Alt-PgDn. Thank you for any feedback.

All the best,
NorfCran

___
Mailing list: https://launchpad.net/~zim-wiki
Post to    : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help  : https://help.launchpad.net/ListHelp


   ___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp