← Back to team overview

zim-wiki team mailing list archive

Re: Sharing images between notes?

 

Note that ..\docrootPath also works just fine if you want to keep a
dirstruc like this:

Parent folder (by topic)
  -  docroot (all file attachments)
  -  zimdata (text-only files)

This allows for easier management of your .svn (or equivalent for whatever
source control you're using) as well as selective encryption and/or
sync'ing via Dropbox or whatever of only the textual stuff if you've got a
lot of file attachments and only need to access the text in certain
locations or situations (e.g. carrying your knowledgebase on a USB drive
with Zim in "portable" mode.


On Mon, Apr 23, 2012 at 9:01 PM, Jaap Karssenberg <
jaap.karssenberg@xxxxxxxxx> wrote:

> On Mon, Apr 23, 2012 at 3:35 PM, Yu <yu_icq@xxxxxx> wrote:
> > 2012/4/23 Jaap Karssenberg <jaap.karssenberg@xxxxxxxxx>:
> >> On Mon, Apr 23, 2012 at 11:08 AM, Yu <yu_icq@xxxxxx> wrote:
> >>> I did a little test today and set the Document root to ".", which was
> >>> translated to the absolute path of the notebooks root folder.
> >>> Is there some reason for this behaviour? Being able to use something
> >>> like "." or "./.documentroot" directly as the document root would be
> >>> useful for the portability of the notebooks across devices.
> >>
> >> The usage of "." indeed does not work. But try setting it to
> >> "./documentroot" or something similar. Works fine with me as relative
> >> path.
> >>
> >> -- Jaap
> >
> > How comes? "." works for me the same way as does "./documentroot":
> > They get translated to an absolute path.
>
> Just to be sure, what version are you using ?  This got patched in
> version 0.51 by Jiri, so if you are on an older version it will not
> work.
>
> > Just to be sure: If you set the document root to "./documentroot" in
> > the GUI ("File => Properties"), and then reopen that dialog, it will
> > still be recorded as a relative path?
> >
> > Maybe it should be noted, that my notebooks don't reside in the home
> > directory, but on windows drive "E:" (/cygdrive/e/); therefore "."
> > gets translated like this:
> >    .  =>  /cygdrive/e/zim-notebooks/Notes/
> >    ./documentroot  =>  /cygdrive/e/zim-notebooks/Notes/documentroot
>
> I'm running directly under windows, not using cygwin, so I don't know
> if the cygwin environment somehow bugs the code when comparing paths.
> Did you run the zim test suite under cygwin ? If the path handling is
> NOK it should trigger errors in the test cases as well.
>
> Regards,
>
> Jaap
>
> _______________________________________________
> Mailing list: https://launchpad.net/~zim-wiki
> Post to     : zim-wiki@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~zim-wiki
> More help   : https://help.launchpad.net/ListHelp
>

References