Re: [Zim-wiki] Tree not synching with open page

2016-09-10 Thread Mark Hughes (Zim mailing list)
Roman,

Thank you! You got it spot on and on Linux I see the files you mention
live in ~/.cache/zim/

This is what I was missing.

Ok, so I can have my script delete these files and I have a fix.

Questions remain unsolved:
- why just adding some seemingly ok .txt files to the tree cause a
problem with an existing tree state
- why just asking zim to re-index doesn't fix that problem

I guess when you add files to the tree in Zim something happens that
doesn't happen if you just have an external script create them.

Jaap - what might that be, and is there a way to fix that?

No worries if not, but it would be better if I don't have to delete the
cache.

Thanks again Roman,

Mark

On 10/09/16 20:43, Roman Korcek wrote:
> Hi Mark,
> I hope I am doing this mailing list thing right. Haven't used one in like 20 
> years.
> 
> I also have two Zim-related files under:
> 
> C:\Users\Username\AppData\Local\Microsoft\Windows\Temporary Internet 
> Files\zim\zim\notebook-\
> 
> There are two files:
> 
> state.conf
> index.db
> 
> I think state.conf stores the current view and index.db the notebook tree.
> 
> HTH
> Roman
> 
> On Sat, Sep 10, 2016 at 1:23 PM, Mark Hughes (Zim mailing list) 
> mailto:launch...@happybeing.com>> wrote:
> Ok, so Zim appears to store the tree of a notebook somewhere that I
> can't find. Because if I...
> 
> - delete the entire folder tree of a Notebook: Notes2
> - shutdown Zim
> - start Zim, create a new Notebook: Notes2 (where the old one was)
> - open Notes2
> - Zim shows the tree I deleted even though everything was deleted
> 
> I've looked in ~/.config/zim and a few places but don't know where this
> state is being picked up from. I think this is the problem and that if I
> can delete it so it gets rebuilt it would be ok.
> 
> I'm confused because I thought this lived in Notes2/.zim or
> Notes2/notebook.zim but those have definitely been deleted and don't
> exist when I open Notes2 for the first time.
> 
> Mark
> 
> On 10/09/16 12:06, Mark Hughes (Zim mailing list) wrote:
>> I'm waking this thread up because I have discovered how to fix this
>> behaviour, but not yet how to prevent it recurring. Having lived with
>> this irritation for several months I solved it by doing this:
>>
>> - make a new notebook
>> - copy everything manually from the original notebook to the new
>> notebook (except .zim and notebook.zim)
>>
>> However, as soon as I run my script which generates some new pages and
>> saves them in the Notebook directory tree, the problem resumes. The only
>> way I know to stop it is as above - simply deleting .zim and
>> notebook.zim don't fix it.
>>
>> So there appears to be something about a new notebook that's different
>> from just deleting them. What could that be?
>>
>> And why might creating some files in a script trigger this problem, and
>> it be fixable by just copying everything to a newly created Notebook?
>>
>> It suggests to me it is something to do with how Zim stores state (e.g.
>> currently selected folder, or folder tree state).
>>
>> Any ideas. I'd be happy if I could just have my script delete stored
>> state when it adds files to the tree if that was the issue.
>>
>> Thanks for a great program :-)
>>
>> Mark
>> On 27/02/16 17:41, Mark Hughes (Zim mailing list) wrote:
>>>
>>>
>>>
>>>
>>> I've been using Zim v0.62 on Debian for ages, and it has recently
>>> started some strange behaviour, for which I am probably responsible but
>>> am not sure how to fix.
>>>
>>>
>>> The behaviour is that when I click on a page in the treeview, the page
>>> displays correctly but the tree focus flips back to one of the early
>>> nodes (usually but not always the same one). If I click on the node I
>>> want again, it sticks, until I click on a different node and then the
>>> tree focus goes back to the one "it prefers"!
>>>
>>> Clicking on some nodes does work ok, but most need to be clicked twice now.
>>>
>>> I've tried "zim --index" (and zim --index -D -V) - all ok.
>>>
>>> I've looked at the output of "Zim -D -V" and it complains about some
>>> tree paths being invalide. I suspect that is unrelated, but there are a
>>> few empty pages that it won't allow me to delete when I track them down.
>>>
>>> So, how did I break it. Well, it might just be co-incidence, but I doubt
>>> it. What I did was write a web scraper which automatically generates
>

Re: [Zim-wiki] Tree not synching with open page

2016-09-10 Thread Mark Hughes (Zim mailing list)
Ok, so Zim appears to store the tree of a notebook somewhere that I
can't find. Because if I...

- delete the entire folder tree of a Notebook: Notes2
- shutdown Zim
- start Zim, create a new Notebook: Notes2 (where the old one was)
- open Notes2
- Zim shows the tree I deleted even though everything was deleted

I've looked in ~/.config/zim and a few places but don't know where this
state is being picked up from. I think this is the problem and that if I
can delete it so it gets rebuilt it would be ok.

I'm confused because I thought this lived in Notes2/.zim or
Notes2/notebook.zim but those have definitely been deleted and don't
exist when I open Notes2 for the first time.

Mark

On 10/09/16 12:06, Mark Hughes (Zim mailing list) wrote:
> I'm waking this thread up because I have discovered how to fix this
> behaviour, but not yet how to prevent it recurring. Having lived with
> this irritation for several months I solved it by doing this:
> 
> - make a new notebook
> - copy everything manually from the original notebook to the new
> notebook (except .zim and notebook.zim)
> 
> However, as soon as I run my script which generates some new pages and
> saves them in the Notebook directory tree, the problem resumes. The only
> way I know to stop it is as above - simply deleting .zim and
> notebook.zim don't fix it.
> 
> So there appears to be something about a new notebook that's different
> from just deleting them. What could that be?
> 
> And why might creating some files in a script trigger this problem, and
> it be fixable by just copying everything to a newly created Notebook?
> 
> It suggests to me it is something to do with how Zim stores state (e.g.
> currently selected folder, or folder tree state).
> 
> Any ideas. I'd be happy if I could just have my script delete stored
> state when it adds files to the tree if that was the issue.
> 
> Thanks for a great program :-)
> 
> Mark
> On 27/02/16 17:41, Mark Hughes (Zim mailing list) wrote:
>>
>>
>>
>>
>> I've been using Zim v0.62 on Debian for ages, and it has recently
>> started some strange behaviour, for which I am probably responsible but
>> am not sure how to fix.
>>
>>
>> The behaviour is that when I click on a page in the treeview, the page
>> displays correctly but the tree focus flips back to one of the early
>> nodes (usually but not always the same one). If I click on the node I
>> want again, it sticks, until I click on a different node and then the
>> tree focus goes back to the one "it prefers"!
>>
>> Clicking on some nodes does work ok, but most need to be clicked twice now.
>>
>> I've tried "zim --index" (and zim --index -D -V) - all ok.
>>
>> I've looked at the output of "Zim -D -V" and it complains about some
>> tree paths being invalide. I suspect that is unrelated, but there are a
>> few empty pages that it won't allow me to delete when I track them down.
>>
>> So, how did I break it. Well, it might just be co-incidence, but I doubt
>> it. What I did was write a web scraper which automatically generates
>> some .txt files that I began placing in my Zim notebook path. So I've
>> polluted the tree by manually inserting some files (which all appear in
>> the tree and display ok), but somehow may have confused Zim.
>>
>> If I remove those files (temporarily remove the folder, "Zim --index")
>> then the behaviour remains broken, so it isn't the files themselves, if
>> indeed the problem is anything to do with them.
>>
>> I also tried removing the ".zim" directory and the "notebook.zim" files
>> and it is still broken.
>>
>> If I access an older version of this notebook (a lot older but with much
>> the same structure) it works as expected so it appears to be not liking
>> the content. There are no suspicious messages when I click on the tree
>> (when using "zim -D -V").
>>
>> Finally, I can eliminate the behaviour if I open the notebook at one
>> level higher. I don't want to do this obviously, because it means the
>> whole tree of nodes lives under a single highest level nodes (equivalent
>> to the directory containing the whole notebook).
>>
>> Any ideas how I can fix this?
>>
>> Thanks - and thanks for Zim. A truly excellent workhorse for me.
>>
>> Mark
>>
> 
> ___
> 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] Tree not synching with open page

2016-09-10 Thread Mark Hughes (Zim mailing list)
I'm waking this thread up because I have discovered how to fix this
behaviour, but not yet how to prevent it recurring. Having lived with
this irritation for several months I solved it by doing this:

- make a new notebook
- copy everything manually from the original notebook to the new
notebook (except .zim and notebook.zim)

However, as soon as I run my script which generates some new pages and
saves them in the Notebook directory tree, the problem resumes. The only
way I know to stop it is as above - simply deleting .zim and
notebook.zim don't fix it.

So there appears to be something about a new notebook that's different
from just deleting them. What could that be?

And why might creating some files in a script trigger this problem, and
it be fixable by just copying everything to a newly created Notebook?

It suggests to me it is something to do with how Zim stores state (e.g.
currently selected folder, or folder tree state).

Any ideas. I'd be happy if I could just have my script delete stored
state when it adds files to the tree if that was the issue.

Thanks for a great program :-)

Mark
On 27/02/16 17:41, Mark Hughes (Zim mailing list) wrote:
> 
> 
> 
> 
> I've been using Zim v0.62 on Debian for ages, and it has recently
> started some strange behaviour, for which I am probably responsible but
> am not sure how to fix.
> 
> 
> The behaviour is that when I click on a page in the treeview, the page
> displays correctly but the tree focus flips back to one of the early
> nodes (usually but not always the same one). If I click on the node I
> want again, it sticks, until I click on a different node and then the
> tree focus goes back to the one "it prefers"!
> 
> Clicking on some nodes does work ok, but most need to be clicked twice now.
> 
> I've tried "zim --index" (and zim --index -D -V) - all ok.
> 
> I've looked at the output of "Zim -D -V" and it complains about some
> tree paths being invalide. I suspect that is unrelated, but there are a
> few empty pages that it won't allow me to delete when I track them down.
> 
> So, how did I break it. Well, it might just be co-incidence, but I doubt
> it. What I did was write a web scraper which automatically generates
> some .txt files that I began placing in my Zim notebook path. So I've
> polluted the tree by manually inserting some files (which all appear in
> the tree and display ok), but somehow may have confused Zim.
> 
> If I remove those files (temporarily remove the folder, "Zim --index")
> then the behaviour remains broken, so it isn't the files themselves, if
> indeed the problem is anything to do with them.
> 
> I also tried removing the ".zim" directory and the "notebook.zim" files
> and it is still broken.
> 
> If I access an older version of this notebook (a lot older but with much
> the same structure) it works as expected so it appears to be not liking
> the content. There are no suspicious messages when I click on the tree
> (when using "zim -D -V").
> 
> Finally, I can eliminate the behaviour if I open the notebook at one
> level higher. I don't want to do this obviously, because it means the
> whole tree of nodes lives under a single highest level nodes (equivalent
> to the directory containing the whole notebook).
> 
> Any ideas how I can fix this?
> 
> Thanks - and thanks for Zim. A truly excellent workhorse for me.
> 
> Mark
> 

___
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] Tree not synching with open page

2016-02-27 Thread Mark Hughes (Zim mailing list)




I've been using Zim v0.62 on Debian for ages, and it has recently
started some strange behaviour, for which I am probably responsible but
am not sure how to fix.


The behaviour is that when I click on a page in the treeview, the page
displays correctly but the tree focus flips back to one of the early
nodes (usually but not always the same one). If I click on the node I
want again, it sticks, until I click on a different node and then the
tree focus goes back to the one "it prefers"!

Clicking on some nodes does work ok, but most need to be clicked twice now.

I've tried "zim --index" (and zim --index -D -V) - all ok.

I've looked at the output of "Zim -D -V" and it complains about some
tree paths being invalide. I suspect that is unrelated, but there are a
few empty pages that it won't allow me to delete when I track them down.

So, how did I break it. Well, it might just be co-incidence, but I doubt
it. What I did was write a web scraper which automatically generates
some .txt files that I began placing in my Zim notebook path. So I've
polluted the tree by manually inserting some files (which all appear in
the tree and display ok), but somehow may have confused Zim.

If I remove those files (temporarily remove the folder, "Zim --index")
then the behaviour remains broken, so it isn't the files themselves, if
indeed the problem is anything to do with them.

I also tried removing the ".zim" directory and the "notebook.zim" files
and it is still broken.

If I access an older version of this notebook (a lot older but with much
the same structure) it works as expected so it appears to be not liking
the content. There are no suspicious messages when I click on the tree
(when using "zim -D -V").

Finally, I can eliminate the behaviour if I open the notebook at one
level higher. I don't want to do this obviously, because it means the
whole tree of nodes lives under a single highest level nodes (equivalent
to the directory containing the whole notebook).

Any ideas how I can fix this?

Thanks - and thanks for Zim. A truly excellent workhorse for me.

Mark
-- 
Secure Access For Everyone:
SAFE Network - launches soon!
Fully Decentralised Internet
http://safenetwork.org


___
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] Custom command won't run bash script

2016-01-16 Thread Mark Hughes (Zim mailing list)
I'm using zim 0.62 on debian and playing with custom commands. I can get
some very simple things working, like "bash -c ls" but at this point I
have a simple bash script which I can't get to run.

The custom command is currently "/usr/local/bin/bash ~/bin/zim.sh"
(which contains "echo blah"). I have "replaces selection" checked.

When I execute it the command deletes the selection (ie no output) and
as I'm using "zim -D" I see the following console output:

INFO: Running: ['/usr/local/bin/bash', '~mrh/bin/zim.sh'] (cwd: None)
WARNING: /usr/local/bin/bash: ~mrh/bin/zim.sh: No such file or directory

If I execute "/usr/local/bin/bash ~/bin/zim.sh" in the console I get the
expected output "blah".

Any ideas?

Thanks,

Mark
--

___
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 Options on Android

2015-06-02 Thread Mark Hughes (Zim mailing list)
One thing you guys might consider is support for remoteStorage. If this
were in all clients (Android, Desktop etc) all Zim Notebooks would be
sync'ed.

See: https://remotestorage.io/

And if it was made into a web app with offlineFirst support then it
would also work without a web connection and automatically sync when
connected! But doing both maybe not so straightforward :-)

Meanwhile I'm looking to provide similar for SAFE Network web apps. I'd
love Zim on SAFE, but for now I think it will be limited to storing on
SAFE storage using its virtual drive support.

One step at a time - I'd love an Android port!

Good luck,

Mark
--
Secure Access For Everyone:
SAFE Network - launches soon!
Fully Decentralised Internet
http://MaidSafe.net

On 02/06/15 21:36, Hans Elias B. Josephsen wrote:
> Right now the markup is just parsed from a hardcoded string in the main
> activity. I guess the next thing would be to make it load the markup
> from a file. I also don't think I implemented serializing the text back
> into markup.
> 
> 
> On Tue, Jun 2, 2015, at 10:19 PM, Hugh Manning wrote:
>> Awesome, thank you very much! I'll get started on it when I get home.
>> What were your next steps planned for it when you left off?
> 
> 
>> On 3 Jun 2015 00:42, "Hans Elias B. Josephsen"
>>  wrote:
>>> Okey, I uploaded the source to github:
>>> https://github.com/hansihe/ZimDroid
>>>
>>> The usual disclaimers apply, I never really intended it to get
>>> released to the public in this state, so alot of things are a
>>> bit ugly.
>>>
>>> I wrote a simple parser in java for the zim file format. I considered
>>> trying to use the original parser for zim, but because of
>>> dependencies that are a bit tricky on android, I chose to write a
>>> simple one myself.
>>>
>>> I tried to make sense of and use android's way of applying styles in
>>> a text editor as best I can. That involves converting the markup to
>>> 'spans' or style ranges. I don't know how the actual zim does it, but
>>> it seems logical that it does it in somewhat the same way.
>>>
>>> If there are any questions, feel free to ask. I will try to answer
>>> them as best I can.
>>>
>>>
>>> On Tue, Jun 2, 2015, at 08:47 AM, hugh manning wrote:
 Much to do but a good start! Please throw it on GitHub so I can take
 a look at it.



  On Monday, 1 June 2015 8:51 PM, Hans Elias B. Josephsen
   wrote:


 I startes writing a zim editor for android a while ago, but I never
 really took it anywhere. I guess I can put my work so far out on
 github when I get home.

 Here is a demo video that I uploaded when I was working on it:
 https://youtu.be/LX2_00BGODA

 On Mon, Jun 1, 2015, at 10:24 AM, hugh manning wrote:
> Hi all,
>
> I've got a new Android phone but one of the things I'm missing on
> it are my Zim notebooks; editing them manually is getting to be a
> drag. I've googled around but had no results for an app that can
> edit them. Is anyone aware of something I missed?
>
> Alternatively, I've been starting to get into Android development,
> and while a Zim port is probably a bit big to take on myself it'd
> be great if I could contribute to an existing effort. Maybe I
> should start writing one anyway?
>
> Cheers, Hugh
>
> _
> Mailing list: https://launchpad.net/~zim-wiki Post to : zim-
> w...@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-
 w...@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
> 

___
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] SAFE Network - Zim SAFE App?

2014-06-08 Thread Mark Hughes (Zim mailing list)
I've been a regular Zim user for a few years now and it is a fantastic 
program which I use almost every time I turn on my PC. Recently I got 
involved with a MaidSafe's SAFE project - a private, secure 
decentralised (p2p) network, that is more than just a network. I would 
love to see Zim on SAFE and to use SAFE to gain a far wider user base.


At its simplest Zim will work with SAFE out of the box, letting you 
store and retrieve data (with complete privacy and anonymity) from 
anywhere by logging in and using the network like any old cloud storage 
- no need to sync, just access a virtual drive on the local system. Your 
SAFE drive will be like Dropbox with sharing, sync etc but with complete 
privacy, security and anonymity (and no company or centralised servers 
to pay for, go bankrupt, get blown up etc.). This is what most people 
will see and want at least in the beginning, because the storage will be 
extremely cheap, effectively free even for TB if you can share a decent 
chunk of disk space with the network. But SAFE has far more features and 
potential, particularly for apps that use the SAFE API (login, storage, 
communications etc.)


The reason for this post is that I believe the SAFE API presents a big 
opportunity for Zim. For example, it would be great to have Zim as *the* 
structured document creation and publishing app on the SAFE platform, 
bringing its features to a wide number of users. If a Zim app were there 
early on, it could be massive. I am confident that this network will 
grow rapidly to very large numbers indeed - but right now hardly anyone 
has heard of it. So to start with there will be relatively few apps 
available. Imagine being one of a hundred apps with a user base of 
millions that is growing exponentially. I want to declare that I have a 
small investment in this project, but assure you this is not my reason 
for suggesting this. I got involved because I believe in the project's 
goals, technology, team and community ownership, but it would not be 
fair to hide the fact I invested by buying a small amount of the crypto 
currency that will live on the network (similar to bitcoin but with many 
improvements). I hope this doesn't stop people seeing the potential for 
Zim here though!


Zim has many advantages in this situation. It is very easy to understand 
the basics of what it does and decide to try it, will appeal to a large 
percentage of people, is easy to learn, has a mature codebase, its own 
community, and will easily exceed the expectations of any new users - it 
would create quite a buzz.


While websites and the web will not be going away anytime soon, SAFE 
makes server based web redundant - and provides a simpler, cheaper, 
functional alternative. Enter Zim: the stand out authoring tool for the 
next web! Ok, but *a* stand out tool of that I'm sure . Users wanting to 
publish material will simply save it to a public share, so it will be 
possible to share any kind of document with anyone, and if Zim were a 
free app, that immediately becomes a two way process should the 
publisher want it to be. (Note: SAFE has document versioning built in, 
and never deletes data, which is what you need for a collaborative 
publishing platform).


In the short term, Zim will stand out for its abilitiy to create 
structured documents and publish them in different formats, most 
recently as responsive web pages (thank you Paulo van Breugal) and the 
many other features of Zim. I think it would gain popularity with early 
adopters of SAFE and then become very widespread as the network grows.


In the longer term Zim could be the, or at least one of the, most used 
publishing and document editing tools on the *new internet*. New 
developers will be drawn to it as well, to contribute to the core, to 
add new plugins etc. And for those that want it, there is the 
opportunity to use micropayments to support their work and the project 
as a whole (the SAFE crypto currency can handle this far better than 
bitcoin because transaction rates and transaction times are several 
orders of magnitude better).


I started to write just a short note here, and now look! Hopefully this 
is a sign of some real potential for Zim. Let me know what you guys 
think, and if you want more info on SAFE please ask or check out 
MaidSafe.net (main website), MaidSafe.org (forum). Plus I've written a 
bit more about SAFE below.


SAFE Network Summary

SAFE Network (Safe Access For Everyone) allows users to join and create 
a complete internet replacement (eliminates HTTP, DNS, SSL, SMTP etc and 
all their security weaknesses) and replace it with a completely 
anonymous communication network, encrypted unlimited storage (fog rather 
than cloud!), and an application platform, and a cash like crypto 
currency that will outperform bitcoin without losing any of its 
features. It will also offer a massively parallel distributed computing 
platform, rented out for fees that are distributed to the anonymous 
i

Re: [Zim-wiki] Some issues around sync'd Notebooks

2013-05-20 Thread Mark Hughes (Zim mailing list)

Jaap,

Thanks for the response. I suspect you are correct but have not verified 
this yet. SpiderOak can be configured to exclude files using "wildcards" 
(e.g. *.tmp), except for the new "SpiderOak Hive" feature recently 
added. This works like Dropbox, but if I set up a 'Sync' for any other 
folder I can set a wildcard, so please tell me what extension to use and 
I'll see if that helps (and turn on -D to gather info).


See also my answers below...

Mark

On 09/05/2013 08:30, Jaap Karssenberg wrote:
I don't think what you describe is what is happening exactly. When 
updating links zim will open each page to be updated just once and 
write it immediately. Writes are done atomic, and if they fail there 
will be an explicit error. The only thing I would have to test is 
whether or not the error is caught properly and presented in an error 
dialog. But for sure you would see it in the debug output (zim -D). 
The interesting question of course is why would using spideroak result 
in failures while writing pages and how to make things more robust. 
What zim does when writing is generating a temporary file and then in 
an atomic action replace the target file with this temporary file. 
Maybe spideroak already tries to sync the temp file and by that blocks 
the replacement. In that case it would be helpful to know if spideroak 
has any configuration to exlcude certain file patterns.

ISSUE 2 - Index Confusion?
To test the above I made a complete copy of the notebook for SpiderOak to
synch across the two machines and left the original untouched. Once I
realised SpiderOak wasn't doing the job, I reverted Zim on both Linux and
Windows to open the original (untouched) notebook by default. When loading
on Windows the index pane was showing some of the errors that had occured on
the copy (i.e. orphan subpages). Re-generating the index cleared these, so
the issue appears to be that somehow Zim used the index from the SpiderOak
copy when opening the clean, untouched notebook (in an entirely different
location).

[snip]
I'm confused what you mean by "the root folder was the same, but it
was located in a different folder" - was the notebook location the
same or not ?

Sorry for the ambiguity over "root" folder.

I made a complete copy of my Zim notebook folder tree in a new location. 
So I had two identical copies of my notebook, one inside my "Dropbox" 
folder, and one inside my "SpiderOak Hive" folder. I pointed Zim at the 
latter to do my tests and found the problems. Then reverted to the original.




When you have the "shared notebook" option, the cache is stored in a
temp file that is related to the location of the notebook. So yes, if
you completely replace a notebook it would still have the old index.
So there would be two identical copies of the index, which makes your 
first diagnosis seem the most likely (i.e. SpiderOak interfering with 
the temp file and Zim not reporting that in the UI).



___
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] Some issues around sync'd Notebooks

2013-05-08 Thread Mark Hughes (Zim mailing list)
I've been using Zim on a large complex notebook synched between Windows 
7 and Linux by Dropbox for a couple of months and NO PROBLEMS.


ISSUE 1 - Synch using SpiderOak v5.0
I'd much prefer to synch using SpiderOak than Dropbox so when they 
updated to v5.0 and claimed to have fixed some of the bugs that were 
causing problems I immediately tried the new SpiderOak. I quickly got 
some errors when renaming a page that was referenced by other pages.


Some of the links don't get updated, and I suspect this is a Zim issue. 
At least, Zim not saying anything about might be an oversight/bug in 
Zim. At least if my guess aobut what happens is corrent. I suspect that 
during a page rename, when updating several links in a page, Zim does 
several read/edit/write/read/edit/write... operations in succession. If 
so, SpiderOak may spot the change, lock the file while uploading it, and 
so the Zim-write fails. Zim reloads, loses the edit, does the next 
edit/write etc.


Note that I don't get this issue with Dropbox, but I wonder if that is 
just because Dropbox is a bit lazier before acting on a change, or does 
it in a way that doesn't block Zim.


ISSUE 2 - Index Confusion?
To test the above I made a complete copy of the notebook for SpiderOak 
to synch across the two machines and left the original untouched. Once I 
realised SpiderOak wasn't doing the job, I reverted Zim on both Linux 
and Windows to open the original (untouched) notebook by default. When 
loading on Windows the index pane was showing some of the errors that 
had occured on the copy (i.e. orphan subpages). Re-generating the index 
cleared these, so the issue appears to be that somehow Zim used the 
index from the SpiderOak copy when opening the clean, untouched notebook 
(in an entirely different location).


This seems very odd! How would Zim use the index from one notebook (in a 
different folder) for another notebook?


Both notebooks have "Share" checked.

I had not opened the original notebook at all during this process, so it 
seems that without question that Zim used index information that did not 
apply to it when I re-opened it. How can that be? The root notebook 
file/folder was the same, but it was located in a different folder. 
Perhaps Zim assumes the same root file/folder name means it is the same 
notebook? If so I wonder if this is wise.


Mark


___
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] Cards plugin

2013-03-04 Thread Mark Hughes (Zim mailing list)


On 04/03/2013 12:51, Jaap Karssenberg wrote:
Sounds like you are thinking in the direction where the data in the 
objects is populated from an existing database. Not directly my 
intention but should be possible with a custom backend for the page 
data. The code that stores the wiki pages in text files is a very thin 
mapping class. Can easily be replaced with something that uses e.g. a 
database. But would help to have a more specific use case in mind. I 
don't think zim is necessarily a good generic databse viewer. My use 
case is more the other way around, to do a little bit structured data 
without the need of a "real" database. Regards, Jaap 


I don't have a use case in mind - just triggered by what you described. 
My thought is that by considering this you could make something much 
more powerful possible, while if it isn't thought about it won't be easy 
to add later. The difference will be ensuring your object model allows 
for database transaction cases, which it may if you do your SQL with 
this in mind.


My thought is not just connecting to existing databases, though that 
could be very useful and widen Zim's appeal, particularly into corporate 
scenarios which could be good for promoting Zim.


Let's say you build your personal data example. Often these things start 
simple but then it becomes tempting to add new objects, and then to want 
to access them from different devices, run complex queries etc. Soon 
even a little "homer" can want much more database functionality. If the 
data is stored in a "proper" database, it is relatively simple to extend 
the plugin functionality and grow its capability along with user demands.


That's my thought process.

Mark

___
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] Cards plugin

2013-03-04 Thread Mark Hughes (Zim mailing list)

On 04/03/2013 12:01, Jaap Karssenberg wrote:
What may or may not be related is the work I'm doing to integrate 
"cards" in zim.


Basically this will be a plugin that adds inline objects in zim pages 
that contain a couple of fields. These fields can be e.g. properties 
of an object being described.


A concrete example would be to use zim as a book catalog. I would want 
to define a "book" card that contains fields like "Title", "Author" 
etc. The Title would be a text field, the Author could be a linked 
field referring to another page with info about the author.


This become semantic in the way that fields can be links that have a 
type (e.g. the type "author" in the example above) this forming a 
triple of the source page, the target page and the type of relation. 
Next step of course is to integrate such objects in the search dialog, 
link map visualization etc.

Jaap,

Are you planning integration with database backends? It makes sense to 
me to have a front-end / back-end interface, and for the plugin to 
provide a ready-to-use backend that works within the existing Zim 
storage paradigm, though I have no idea what that means as I say that :-)


While I don't fully understand the Zim paradigm yet, from my past life I 
do have experience of the kind of structure I'm describing so if you 
want to explore this direction I might be able to help with ideas. We 
had a desktop application (data visualisation) and built different 
plugins to allow it to query, display and edit data directly from 
different kinds of database, and different database schema's, and 
ultimately to integrate data from multiple databases into a single view. 
So each plugin knew how to connect to a particular database, and allowed 
the user to create multiple mappings between the application and a 
different database schemas.


I've changed the title in to allow separate elaboration on your Cards 
plugin.


Mark

___
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] Custom tools feature & possible cut/paste bug

2013-03-01 Thread Mark Hughes (Zim mailing list)
I just looked at Custom Tools and would like to check this isn't 
supported and offer it as a suggestion:


Additional tool parameter %x - temporary file containing selection (wiki 
format)
I would also like a checkbox: "replace selection with stdout output". My 
use case is to be able to pipe a selection through sed/awk/sort etc For 
example: "sort %x" Execution should leave the selection active (but with 
processed contents) and not scroll the page. Currently the page gets 
scrolled to the end.


Also, I think the existing code is a little flakey as when I 
accidentally executed a command that used the %f parameter but did 
nothing to the file, the content formatting was slightly modified. I had 
just copied and pasted a small selection to test, which may have left 
some unseen wiki formatting in an odd place, because when I ran the 
command a line of normal text became heading 2 format. I think this was 
the first line of my cut/paste, and the cut probably began underneath a 
line which was header 2 format (Zim 0.59 on Windows 7).


Mark

___
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] Favicons for pages in index

2013-02-26 Thread Mark Hughes (Zim mailing list)

I think icons for pages would be useful.

Single Icon Option
My first thought is for a set of icons that are normally "off" but can 
be turned on per page. I'd like the same icon image to be able to apply 
to more than one page but not multiple icon's per page. It seems an 
unnecessary restriction to say an icon can only be used once per notebook.


My use case is to help me pick out important pages, but also to give 
some sense of categorisation - so I might have more than one page with a 
"tasks" icon, several with "computer" icon etc.


Tags To Control Icons
I'm interested in Jaap's option b) though, because having a tag in a 
page might be a good way of enabling the page icon. I don't see how 
multiple icons per page would be useful in the normal tree pane though. 
It sounds like a different scenario which I can't imagine yet, but 
adding a tag seems a very good way of controlling the feature, even if 
we say it only displays the first specified icon tag. Or perhaps there 
is a way for the user to prioritise the icons globally? So for example, 
I have a folder of icons which match tag names, and if I want to 
prioritise which tags are used I can add a configuration file which can 
include an order of priority, and perhaps be used to turn icons off for 
particular tags. If needed a GUI could be added, but I guess a 
configuration file would do to start.


Text Styles (An Alternative)
FYI: KeynoteNF allows an icon to be selected for each "note", each of 
which has it's own tab/tree/editor, with the icon appearing on the tab 
next to the note name. There are no icons shown in the tree but KNF does 
allow text styles in the tree which I find quite useful to highlight 
where I'm working.


So an alternative to icons in the tree might be to allow text styles, 
either directly editable (e.g. in the rename dialog), or again linked to 
tags. A special case would might be to highlight based on occurrences of 
"TODO".


In KeynoteNF I use this to highlight pick out large numbers of nodes in 
bold (e.g. for prominent info, tasks, active clients), and to pick out a 
handful of very important nodes in red or bold-red (e.g. for templates, 
and where I'm working).


If I had to choose, I'd go for text styles before icons because I think 
text styles are easier for the eye to interpret and understand compared 
to the more subtle differences between icons, which would be quite small.


Mark

On 26/02/2013 08:06, Jaap Karssenberg wrote:

On Mon, Feb 25, 2013 at 5:21 PM, Tim  wrote:

Would anyone else benefit from having some means of displaying an icon
before a page title in the Index tree? I would love to have some means
of visually representing the pages in a very large notebook, to rapidly
identify the page for which I am looking. I imagine this could be
accomplished simply by having a "favicon.png" or "favicon.ico" in the
directory for a given page and instruct Zim to load it if such a file
exists. There could also be a default icon for pages with no icon
specified. Anyone else see this as a feature worth implementing?

There have been several requests for icons for pages before, but so
far I avoided looking into it as I don't see much use for it myself.
But feel free to have a look at it and commit a patch.

I think it is useful to talk a bit in terms of use cases: what do you
want to use it for?

A) When you talk about favicon I assume you want to mark "special"
pages in the index, e.g home page. So each icon will only appear only
once. This is very doable, you need to add the logic to determine the
icons, add them in the index and then just pack the icon in the
treeview cells.

B) Other users may want to use icons more like tags. So multiple pages
about the same topic can have the same icon. Here I see more problems,
because you potentially want multiple icons per page. Also when they
act as tags, you may want to search for them etc. In fact in this case
I would propose adding a tag to a page and let the tag have an icon
instead of adding an icon directly. If this is what you are thinking
of, it will need more design work to come up with a good patch.

Regards,

Jaap


P.S. I think I will veto calling the icon "favicon" by default,
instead configure an icon name per page without the need for the icon
to have a special name. Supporting the name "favicon" as a special
name can be considered though if you really are doing website
development in zim.

___
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] KeynoteNF to Zim conversion scripts available (perl)

2013-02-22 Thread Mark Hughes (Zim mailing list)
I have moved an extensive KeynoteNF (Windows7) notebook to Zim (Linux 
and Windows7 via Dropbox).


To do this I wrote two perl scripts and a Linux utility (apt-get install 
unrtf). Using these it is pretty painless to export all your KeynoteNF 
notes to a directory, and then process each note one by one. Each note 
ends up as a Zim compatible directory tree with a subdirectory for each 
page/node that itself has child pages/nodes.


The scripts preserve indentation and tabs, but not text styles (though 
that would not be too hard to add).


Unrtf converts RTF to text. It preserves images by exporting them to 
".wmf" files. I only had three embedded images so I've not tried to use 
the ".wmf" files, but maybe they can be embedded in Zim (or converted 
and then embedded).


I haven't tested the output thoroughly yet, but it looks good. The 
process handled a 6MB KeynoteNF database containing eight notes, 
thousands (probably) of nodes in trees several nodes deep. Most of the 
data is in just two notes.


Let me know if you want these scripts.

Mark
--

theWebalyst.com 

*Computer help and marketing services for freelancer, therapist and 
practitioner small business.*

WordPress Websites -- Web Hosting -- Web Marketing -- Computer Help

* Web Hosting Launch Offer * a year's web hosting for under £20
including domain registration or transfer/renewal, and no VAT.
For details: find out how to get this 50% discount 
 



Ways to stay in touch:
'Like' my facebook page 


Follow me on Twitter 
Check out my blog 
Subscribe to my Web Marketing Newsletter 



By staying in touch you will receive occasional
articles, tips and offers, and learn what you need to
get your website working for your business. I'll show
you how to use search engine optimisation (SEO), social
networking, a blog etc.


___
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] Creating new pages from a "template"

2013-02-11 Thread Mark Hughes (Zim mailing list)

Thanks Jaap,

Dev pace is what it is - your speed of support/response is very helpful.

Another way to handle this case might be a "Copy Subtree" / "Paste 
Subtree" on tree node context menu (which is how I do this in KeyNoteNF).


I can do a scripted solution, but won't go there while I'm mainly on 
Windows!


Regards,

Mark

On 11/02/2013 11:35, Jaap Karssenberg wrote:

On Mon, Feb 11, 2013 at 12:30 PM, Mark Hughes (Zim mailing list)
 wrote:

Zim uses the term "template" for and export.

I'm interested in having templates for creating new Zim pages and wonder if
there is a mechanism for this.

There is a "hidden feature" in the code that I will enable after
fixing number of outstanding design items. (As you may have noticed,
dev pace is slow at the moment, so may take some time.) But the
intended feature is single page only, not sub-tree.


If not, what would the neatest way to create
new pages -- or rather a subtree of several pages -- based on some a
pre-defined subtree of Wiki content? I currently use KeyNoteNF for this but
am migrating gradually to Zim.

My scenario is that whenever I set up a new project for a website client I
have a pre-defined wiki (actually KeyNoteNF subtree) with placeholders for
client information, standard tasks and so on. I create a copy of this and
then rename/search and replace with the client name/web domain etc.

I think you could do the copy & replace in a small shell script. Add
this script to zim as a "custom tool" that takes page name as input.
This would enable a work flow where you go to a new page and then
trigger the tool from the tools menu to populate the page.

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


[Zim-wiki] Creating new pages from a "template"

2013-02-11 Thread Mark Hughes (Zim mailing list)

Zim uses the term "template" for and export.

I'm interested in having templates for creating new Zim pages and wonder 
if there is a mechanism for this. If not, what would the neatest way to 
create new pages -- or rather a subtree of several pages -- based on 
some a pre-defined subtree of Wiki content? I currently use KeyNoteNF 
for this but am migrating gradually to Zim.


My scenario is that whenever I set up a new project for a website client 
I have a pre-defined wiki (actually KeyNoteNF subtree) with placeholders 
for client information, standard tasks and so on. I create a copy of 
this and then rename/search and replace with the client name/web domain etc.


Thanks,

Mark
--

theWebalyst.com 

*Computer help and marketing services for freelancer, therapist and 
practitioner small business.*

WordPress Websites -- Web Hosting -- Web Marketing -- Computer Help

* Web Hosting Launch Offer * a year's web hosting for under £20
including domain registration or transfer/renewal, and no VAT.
For details: find out how to get this 50% discount 
 



Ways to stay in touch:
'Like' my facebook page 


Follow me on Twitter 
Check out my blog 
Subscribe to my Web Marketing Newsletter 



By staying in touch you will receive occasional
articles, tips and offers, and learn what you need to
get your website working for your business. I'll show
you how to use search engine optimisation (SEO), social
networking, a blog etc.

___
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 version 0.59 released

2013-01-25 Thread Mark Hughes (Zim mailing list)
Has version control been tested on Windows? I have Git so just tried it 
out...


It wasn't obvious from Configure whether I needed to do anything more 
but eventually I found the "More info" docs. So then I tried "File > 
Save Version?" This said version control was not yet enabled, so I 
confirmed I wanted it and this greated a .git repository but the Zim GUI 
froze and never came back.


Now Zim won't start up and (as before on Windows) Zim -D is not 
generating a log.


At this point I noticed there is a new version of Git for Windows so ran 
the install to bring it up to v1.18 (git-scm.com). The installer noticed 
Git.exe was running and closed it, at which point the Zim GUI woke up 
and showed this error dialog:


   Failed to run application: git
   git "commit" "-a" "-m" "Automaticallyse saved version from zim"
   returned non-zero exit status -1073741510

Note that despite this error a ".git" repository was present before Zim 
unfroze, but has disappeared now but this may be because I disabled sync 
of .git in Dropbox? That would explain absense of ".zim" here also.


It could be that Dropbox is the culprit here. Can you stop sync without 
Dropbox doing this!!!? Should I just let it sync ".git" (which I don't 
like to do?!).


Zim 0.58 / Windows 7

Thanks,

Mark

On 25/01/2013 09:04, Jaap Karssenberg wrote:

On Fri, Jan 25, 2013 at 10:02 AM, jayseye  wrote:

Since Bazaar is already used for development, would that work about as
well as git, et. al, for this purpose as well?

Sure, actually that was the first one supported by zim. Others have
been added now.

-- 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



___
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 version 0.59 released

2013-01-24 Thread Mark Hughes (Zim mailing list)
I did the upgrade shortly after a reboot so there were no instances 
running. Will investigate a bit more later.


Thanks,

Mark

On 24/01/2013 11:15, Jaap Karssenberg wrote:

On Thu, Jan 24, 2013 at 11:56 AM, Mark Hughes (Zim mailing list)
 wrote:

This is the first time I upgraded Zim on Linux and it still shows v0.58 not
v0.59 in the About box.

I just ran "dpgk -i" on the download, which said there were errors (no
python-support) so I ran "apt-get install python-support" and re-did the
"dpkg -i". The /usr/bin/zim file shows yesterday's date, but when I run Zim
the old version is displayed.

Did you forget to update the version number or have I got to do something
else to upgrade Zim?

The version in the code is correct, see:
http://bazaar.launchpad.net/~jaap.karssenberg/zim/pyzim/view/head:/zim/__init__.py

So probably you are not yet running the latest code.

Did you make sure to quit all instances, including the tray icon ?

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 version 0.59 released

2013-01-24 Thread Mark Hughes (Zim mailing list)
This is the first time I upgraded Zim on Linux and it still shows v0.58 
not v0.59 in the About box.


I just ran "dpgk -i" on the download, which said there were errors (no 
python-support) so I ran "apt-get install python-support" and re-did the 
"dpkg -i". The /usr/bin/zim file shows yesterday's date, but when I run 
Zim the old version is displayed.


Did you forget to update the version number or have I got to do 
something else to upgrade Zim?


Thanks

Mark

On 24/01/2013 08:17, Jaap Karssenberg wrote:

All,

Yesterday evening I released a version 0.59 of zim. Trigger for the
release was a critical bug that caused some content of the page to
disappear for a specific combination of formatting. Therefore advice
to update all packages to the latest release, or at least apply the 1
line (!) patch for this bug.

Additional fixed include fixes for the tasklist and the custom tools
editor submitted by Epinull and a fix for the weeknumber in Journal
pages.

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




___
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] What do you use to sync Wiki's across machines?

2013-01-23 Thread Mark Hughes (Zim mailing list)

[Repost with more "enticing" subject...]

SpiderOak has issues with "edge cases" (e.g. not handling file renaming 
properly).


Unfortunately Syncplicity doesn't support Linux!

I don't like Dropbox because I want to keep my files where I want them.

Are there any free cloud sync services you've tried which allow me to 
share from any folder?


What methods do any of you use to sync Zim Wiki's?

Thanks,

Mark
--
theWebalyst.com 

*Computer help and marketing services for freelancer, therapist and 
practitioner small business.*

WordPress Websites -- Web Hosting -- Web Marketing -- Computer Help

* Web Hosting Launch Offer * a year's web hosting for under £20
including domain registration or transfer/renewal, and no VAT.
For details: find out how to get this 50% discount 
 



Ways to stay in touch:
'Like' my facebook page 


Follow me on Twitter 
Check out my blog 
Subscribe to my Web Marketing Newsletter 



By staying in touch you will receive occasional
articles, tips and offers, and learn what you need to
get your website working for your business. I'll show
you how to use search engine optimisation (SEO), social
networking, a blog etc.




___
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] Moving a Zim Wiki from Linux to Windows

2013-01-21 Thread Mark Hughes (Zim mailing list)

Thanks Jaap, this was helpful and "zim --index" has helped clean things up.

I am using SpiderOak to sync files and am homing in on the issues, and 
one I suspect is my having renamed a page with a bunch of subpages. I 
think SpiderOak is a bit slow picking this up, and if it is done too 
frequently SpiderOak can leave old files around.


For example, I created a test ".txt" file in Windows with the "New Text 
Document" menu item, which as you know first creates "New Text 
Document.txt" and then prompts you to rename it. Well I ended up with 
both files in the destination, and subsequently propagated back to the 
source folder!


Doing some manual tests, SpiderOak does pick up deletions, and propagate 
them, but I think if I rename too quickly it misses them and ends up 
propagating the pre-renamed file. This makes sense as I know I did 
rename a Zim page twice or even three times in quick succession.


I have a similar effect with a new file I created and then renamed 
shortly after. Now I have two pages one with the original name and one 
with the new name.


I like SpiderOak because it does encryption properly, but maybe I'll try 
using Syncplicity for this as I think it is quicker.


What does "zim --index" do?
Whad does .zim/index.db do? (I renamed this at some point in my tests 
but have not noticed any effect, and Zim has neither recreated it nor 
seems to have had any ill effects! Should I put it back!?)


Thanks,

Mark


On 21/01/2013 08:39, Jaap Karssenberg wrote:

On Sat, Jan 19, 2013 at 4:41 PM, Mark Hughes (Zim mailing list)
 wrote:

I have been using Zim on two Windows machines and keeping the files in sync
without problems. Now I have switched one machine to Ubuntu/debian (Bodhi
32bit non-pae distro).

Copying a Zim Wiki from Windows 7 to Linux worked fine, but I'm having
problems when files are moved from Linux back to Windows 7.

SUGGESTED DIAGNOSIS
I suspect that Zim tries to find a saved file for a reference, fails,
creates an empty virtual file. Perhaps Zim on Windows 7 reads the Linux
saved file and includes some control character in the name (e.g. looks for a
filename "SomeRef\n.txt" instead of "SomeRef.txt")?

BEHAVIOUR
The reason I think this is that if I copy all the files from Linux to
Windows 7 (e.g. using SpiderOak file sync) and then open Zim on Windows 7,
the tree view behaves strangely, and suggests to me that when Zim loads some
.txt files it fails to find the .txt file corresponding some or all of the
references.

Firstly is shows a limited tree - not all the subpages seem to be present.
The tree does however contain all the nodes, and more (!), but most are
invisible. The invisible nodes are revealed as I pass the mouse over them,
sometimes going invisible again depending on what I do.

I can see that there are duplicate top level nodes/pages in the tree, some
with the correct subpages listed, others missing some or all subpages. One
node (referenced in Home) has a lot of sub pages, and appears three times in
the treeview. The first instance appears shows a lot of subpages, but each
is empty when selected (ie. purely virtual pages). This I suppose is because
Zim looked for the ".txt" file, did not find it, and assumed the file did
not exist. The file does exist, so I am guessing that the filename is not
matched for some reason because of the transfer from Linux to Windows.

The filesystems show the same names, so I wonder if when Zim on Windows 7
reads a reference in a file that was saved on Linux, it mistakenly adds "\n"
or "\n\0" or something into the filename because of the different EOL in
Linux. Just a guess!

File names are handled exactly the same. Only difference can be
non-ascii characters if you have different file system encodings
between the two systems.


If I edit one of the virtual pages in Zim, Zim will save over the file that
corresponds to that subpage. I can't however get the tree back to normal.

Did you try running "zim --index" ?


It would be great to be able to move Wiki's between Linux and Windows. Hope
this helps achieve that at some point!

Zim (should) fully that already. I use a lot of file syncing myself
and I know others do as well. So assuming the issue is more specific
to your setup. It might help if you detail how you sync the files:
copy from a share drive, dropbox, rsync, ...

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


[Zim-wiki] Moving a Zim Wiki from Linux to Windows

2013-01-19 Thread Mark Hughes (Zim mailing list)
I have been using Zim on two Windows machines and keeping the files in 
sync without problems. Now I have switched one machine to Ubuntu/debian 
(Bodhi 32bit non-pae distro).


Copying a Zim Wiki from Windows 7 to Linux worked fine, but I'm having 
problems when files are moved from Linux back to Windows 7.


SUGGESTED DIAGNOSIS
I suspect that Zim tries to find a saved file for a reference, fails, 
creates an empty virtual file. Perhaps Zim on Windows 7 reads the Linux 
saved file and includes some control character in the name (e.g. looks 
for a filename "SomeRef\n.txt" instead of "SomeRef.txt")?


BEHAVIOUR
The reason I think this is that if I copy all the files from Linux to 
Windows 7 (e.g. using SpiderOak file sync) and then open Zim on Windows 
7, the tree view behaves strangely, and suggests to me that when Zim 
loads some .txt files it fails to find the .txt file corresponding some 
or all of the references.


Firstly is shows a limited tree - not all the subpages seem to be 
present.  The tree does however contain all the nodes, and more (!), but 
most are invisible. The invisible nodes are revealed as I pass the mouse 
over them, sometimes going invisible again depending on what I do.


I can see that there are duplicate top level nodes/pages in the tree, 
some with the correct subpages listed, others missing some or all 
subpages. One node (referenced in Home) has a lot of sub pages, and 
appears three times in the treeview. The first instance appears shows a 
lot of subpages, but each is empty when selected (ie. purely virtual 
pages). This I suppose is because Zim looked for the ".txt" file, did 
not find it, and assumed the file did not exist. The file does exist, so 
I am guessing that the filename is not matched for some reason because 
of the transfer from Linux to Windows.


The filesystems show the same names, so I wonder if when Zim on Windows 
7 reads a reference in a file that was saved on Linux, it mistakenly 
adds "\n" or "\n\0" or something into the filename because of the 
different EOL in Linux. Just a guess!


If I edit one of the virtual pages in Zim, Zim will save over the file 
that corresponds to that subpage. I can't however get the tree back to 
normal.


It would be great to be able to move Wiki's between Linux and Windows. 
Hope this helps achieve that at some point!


Mark
--

___
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] Bounty for folding

2012-11-15 Thread Mark Hughes (Zim mailing list)
I would love both folding, and a tree navigation like that in KeynoteNF 
which can be ordered manually.


I'd like to consider the pros & cons of the tree simply reflecting the 
document structure, with manual ordering and movement (though I foresee 
problems!), or of reflecting the folding within the tree also.


I've been using KeynoteNF for a long time, but like Zim and ideally 
would switch to it, if only it covered some important features of 
KeynoteNF:
- the brilliantly flexible and compact tree structure (with manual 
organisation). Zim's side-panels are far to spaced out, and don't allow 
me to organise documents into a heirarchy.

- tabs for different notes (Zim documents?)
- document synchronization (currently I'm using Syncplicity, trying to 
remember not to have the Wiki open on more than one machine at a time)


The main thing lacking in KeynoteNF for my use case are is folding, 
although I also prefer the way Zim's uses the filesystem (KeynoteNF 
stores everything in a single file) because this makes it easier for me 
to sync across machines using Syncplicity/Dropbox.


The advantages I see for me in Zim are:
- it is actively supported and developing
- more flexible/robust document structure
- more potential for sharing/publishing
- it has some great features that give potential applications

Disadvantage is Windows support being second class (no disrespect to 
Brendan!)


BTW: Is there a way to indent without numbering/bullets etc?

Mark
http://thewebalyst.com

On 14/11/2012 10:02, jayseye wrote:
In-reply-to: 




Hello Jaap, and J.A. de Vries -

I'd like to follow up on adding folding to Zim. Have yet to find this
listed on the Wiki, as mentioned below.

Has there been any progress, and/or is there still interest in this 
feature?


Thanks!
Marc Paul Rubin
(jayseye)




___
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.57 for Windows released

2012-11-15 Thread Mark Hughes (Zim mailing list)
Thanks Brendan. I confirm this installs find on Windows XP SP3 and 
Windows 7.


v0.57 for Windows fixes bugs with the Help menu items not doing 
anything. Also, Open Another Notebook now works!


Thanks

Mark
--

theWebalyst.com 

*Computer help and marketing services for freelancer, therapist and 
practitioner small business.*

WordPress Websites -- Web Hosting -- Web Marketing -- Computer Help

* Web Hosting Launch Offer * a year's web hosting for under £20
including domain registration or transfer/renewal, and no VAT.
For details: find out how to get this 50% discount 
 



Ways to stay in touch:
'Like' my facebook page 


Follow me on Twitter 
Check out my blog 
Subscribe to my Web Marketing Newsletter 



By staying in touch you will receive occasional
articles, tips and offers, and learn what you need to
get your website working for your business. I'll show
you how to use search engine optimisation (SEO), social
networking, a blog etc.


___
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] Where to post feature requests?

2012-11-15 Thread Mark Hughes (Zim mailing list)

Where is the best place to suggest changes and feature requests?

Thanks,

Mark
http://theWebalyst.com
___
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] test - ignore

2012-11-15 Thread Mark Hughes (Zim mailing list)

Hi!

___
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