Re: [Zim-wiki] links in index

2021-01-07 Thread Raphael Hertzog
Thanks Jaap, I tried the git version and it works fine.

Happy new year and best wishes for 2021!

On Thu, 07 Jan 2021, Jaap Karssenberg wrote:
> Issue with "www." links is fixed in
> commit 515c62d04db10ca377324aad13fcf5aa8df9c891, will go in next release.
> 
> Thinking it through there is a bigger concern: pasting as text and then
> reloading can give unexpected results when the text contains wiki markup.
> Therefore I changed the default parsing of pasted text to wiki format.
> Pasting a link with wiki formatting as in the example of Raphael is fixed.
> (If you start typing "[[" and then paste the URI it still fails - in this
> case it is better to just hit ^L and paste the URI in the dialog.)
> 
> To still allow pasting plain text or e.g. code examples I added a "paste as
> verbatim" option in the context menu. To make things smooth paste will
> automatically do "paste as verbatim" when pasting in a verbatim text region.
> 
> These changes are in commit b7ea7b3d6ce572eb558b22a6dc0f4cef723da52f
> 
> Regards,
> 
> Jaap
> 
> 
> On Tue, Dec 15, 2020 at 11:30 AM Raphael Hertzog  wrote:
> 
> > On Tue, 15 Dec 2020, Jaap Karssenberg wrote:
> > > Found it - this is a regression when I made the URL parser more Markdown
> > /
> > > GitHub compliant (recognizing closing parenthesis etc.) based on
> > > https://github.github.com/gfm/#autolinks-extension-
> > >
> > > The parser now recognizes links starting with "www." as a special case
> > > without the "http://; in front. However in a later parsing step these
> > are
> > > misqualified as page links.
> > >
> > > This can be fixed two ways (1) step recognizing "www." links unless they
> > > start with "http://; or (2) make sure these links are properly
> > recognized
> > > as URL links instead of page links. For future compatibility with
> > Markdown
> > > I prefer solution (2).
> > >
> > > Any thoughts ?
> >
> > I was about to say that I'm fine with (2) but in fact I have another
> > somewhat related problem... consider this input:
> >
> > [[mid:CA+TmwMHj9wyWFWjS+JVP4506wPp4b693NSK88JO=+Y3F=ju...@mail.gmail.com|Jaap
> > Karssenberg]]
> >
> > Up to now, I could paste this and after a CTRL+R I would have the desired
> > link. Now when I paste it, I get a link on the text "
> > mid:ca...@mail.gmail.com"
> > and the reload doesn't change anything, I still see the markup. I first
> > have to right click to remove the link before it will work.
> >
> > So I'm not sure that I like them very much unless you have some logic to
> > disable them:
> > - detect when you are in a manual link construct?
> > - maybe have a "Paste as wiki markup" ?
> >
> > Cheers,
> >
> > PS: Yes I have a special url handler for the "mid" prefix, launching my
> > email client on the linked email.
> > --
> >   ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
> >   ⣾⠁⢠⠒⠀⣿⡁
> >   ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
> >   ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS
> >

-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS

___
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] links in index

2021-01-06 Thread Jaap Karssenberg
Issue with "www." links is fixed in
commit 515c62d04db10ca377324aad13fcf5aa8df9c891, will go in next release.

Thinking it through there is a bigger concern: pasting as text and then
reloading can give unexpected results when the text contains wiki markup.
Therefore I changed the default parsing of pasted text to wiki format.
Pasting a link with wiki formatting as in the example of Raphael is fixed.
(If you start typing "[[" and then paste the URI it still fails - in this
case it is better to just hit ^L and paste the URI in the dialog.)

To still allow pasting plain text or e.g. code examples I added a "paste as
verbatim" option in the context menu. To make things smooth paste will
automatically do "paste as verbatim" when pasting in a verbatim text region.

These changes are in commit b7ea7b3d6ce572eb558b22a6dc0f4cef723da52f

Regards,

Jaap


On Tue, Dec 15, 2020 at 11:30 AM Raphael Hertzog  wrote:

> On Tue, 15 Dec 2020, Jaap Karssenberg wrote:
> > Found it - this is a regression when I made the URL parser more Markdown
> /
> > GitHub compliant (recognizing closing parenthesis etc.) based on
> > https://github.github.com/gfm/#autolinks-extension-
> >
> > The parser now recognizes links starting with "www." as a special case
> > without the "http://; in front. However in a later parsing step these
> are
> > misqualified as page links.
> >
> > This can be fixed two ways (1) step recognizing "www." links unless they
> > start with "http://; or (2) make sure these links are properly
> recognized
> > as URL links instead of page links. For future compatibility with
> Markdown
> > I prefer solution (2).
> >
> > Any thoughts ?
>
> I was about to say that I'm fine with (2) but in fact I have another
> somewhat related problem... consider this input:
>
> [[mid:CA+TmwMHj9wyWFWjS+JVP4506wPp4b693NSK88JO=+Y3F=ju...@mail.gmail.com|Jaap
> Karssenberg]]
>
> Up to now, I could paste this and after a CTRL+R I would have the desired
> link. Now when I paste it, I get a link on the text "
> mid:ca...@mail.gmail.com"
> and the reload doesn't change anything, I still see the markup. I first
> have to right click to remove the link before it will work.
>
> So I'm not sure that I like them very much unless you have some logic to
> disable them:
> - detect when you are in a manual link construct?
> - maybe have a "Paste as wiki markup" ?
>
> Cheers,
>
> PS: Yes I have a special url handler for the "mid" prefix, launching my
> email client on the linked email.
> --
>   ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
>   ⣾⠁⢠⠒⠀⣿⡁
>   ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
>   ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS
>
___
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] links in index

2020-12-15 Thread Raphael Hertzog
On Tue, 15 Dec 2020, Jaap Karssenberg wrote:
> Found it - this is a regression when I made the URL parser more Markdown /
> GitHub compliant (recognizing closing parenthesis etc.) based on
> https://github.github.com/gfm/#autolinks-extension-
> 
> The parser now recognizes links starting with "www." as a special case
> without the "http://; in front. However in a later parsing step these are
> misqualified as page links.
> 
> This can be fixed two ways (1) step recognizing "www." links unless they
> start with "http://; or (2) make sure these links are properly recognized
> as URL links instead of page links. For future compatibility with Markdown
> I prefer solution (2).
> 
> Any thoughts ?

I was about to say that I'm fine with (2) but in fact I have another
somewhat related problem... consider this input:

[[mid:CA+TmwMHj9wyWFWjS+JVP4506wPp4b693NSK88JO=+Y3F=ju...@mail.gmail.com|Jaap 
Karssenberg]]

Up to now, I could paste this and after a CTRL+R I would have the desired
link. Now when I paste it, I get a link on the text "mid:ca...@mail.gmail.com"
and the reload doesn't change anything, I still see the markup. I first
have to right click to remove the link before it will work.

So I'm not sure that I like them very much unless you have some logic to
disable them:
- detect when you are in a manual link construct?
- maybe have a "Paste as wiki markup" ?

Cheers,

PS: Yes I have a special url handler for the "mid" prefix, launching my
email client on the linked email.
-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS

___
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] links in index

2020-12-15 Thread Jaap Karssenberg
Found it - this is a regression when I made the URL parser more Markdown /
GitHub compliant (recognizing closing parenthesis etc.) based on
https://github.github.com/gfm/#autolinks-extension-

The parser now recognizes links starting with "www." as a special case
without the "http://; in front. However in a later parsing step these are
misqualified as page links.

This can be fixed two ways (1) step recognizing "www." links unless they
start with "http://; or (2) make sure these links are properly recognized
as URL links instead of page links. For future compatibility with Markdown
I prefer solution (2).

Any thoughts ?

-- Jaap



On Tue, Dec 15, 2020 at 10:02 AM Jaap Karssenberg <
jaap.karssenb...@gmail.com> wrote:

> In that case please open a GitHub ticket with this description.  I'll look
> into it.
>
> Regards,
>
> Jaap
>
>
>
> Op di 15 dec. 2020 09:47 schreef Raphael Hertzog :
>
>> On Mon, 14 Dec 2020, Jaap Karssenberg wrote:
>> > Actually this is the intended behavior. If you create a link to a new
>> page
>> > it will show up as a placeholder in the index
>>
>> I don't think this is correct. There's no link at all. It's just plain
>> text like "www.debian.org" that we input and that zim is force-turning
>> into page links...  they were not added as link at all.
>>
>> Cheers,
>>
>> > Op ma 14 dec. 2020 16:33 schreef Luca Campanelli > >:
>> >
>> > > Hello all,
>> > >
>> > > I'm using ZIM 0.73.4 in Xubuntu 20.04 (ZIM installed via PPA).
>> > >
>> > > ZIM generated automatically some unwanted pages from links that I
>> have in
>> > > other pages that I created.
>> > > They are showed in grey in the index and I cannot delete those pages
>> (if I
>> > > right click and delete the page in the index nothing happens).
>> > > For example I inserted wwwSomeAddress in a page, and that became a new
>> > > page with name wwwSomeAddress showed in grey in the index.
>> Interestingly
>> > > that did not happen for all links, but for some links only, and I'm
>> not
>> > > sure why.
>> > > Also those pages are not present in the ZIM notebook data folder,
>> there is
>> > > no text file for them.
>> > >
>> > > See a screenshot example here (the first 3 pages in the ictures are
>> pages
>> > > that I created, and below that there are two grey pages that I did not
>> > > create and can't delete):
>> > >
>> https://www.dropbox.com/s/kw6r9r35mvx3766/Screenshot_zim_links.jpg?dl=0
>> > >
>> > > Any idea why is that and what I can do to fix that issue?
>> > >
>> > > Thank you for your help and for working on this great program.
>> > > Best,
>> > > Luca
>> > >
>> > > ___
>> > > 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
>>
>>
>> --
>>   ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
>>   ⣾⠁⢠⠒⠀⣿⡁
>>   ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
>>   ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS
>>
>
___
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] links in index

2020-12-15 Thread Jaap Karssenberg
In that case please open a GitHub ticket with this description.  I'll look
into it.

Regards,

Jaap



Op di 15 dec. 2020 09:47 schreef Raphael Hertzog :

> On Mon, 14 Dec 2020, Jaap Karssenberg wrote:
> > Actually this is the intended behavior. If you create a link to a new
> page
> > it will show up as a placeholder in the index
>
> I don't think this is correct. There's no link at all. It's just plain
> text like "www.debian.org" that we input and that zim is force-turning
> into page links...  they were not added as link at all.
>
> Cheers,
>
> > Op ma 14 dec. 2020 16:33 schreef Luca Campanelli  >:
> >
> > > Hello all,
> > >
> > > I'm using ZIM 0.73.4 in Xubuntu 20.04 (ZIM installed via PPA).
> > >
> > > ZIM generated automatically some unwanted pages from links that I have
> in
> > > other pages that I created.
> > > They are showed in grey in the index and I cannot delete those pages
> (if I
> > > right click and delete the page in the index nothing happens).
> > > For example I inserted wwwSomeAddress in a page, and that became a new
> > > page with name wwwSomeAddress showed in grey in the index.
> Interestingly
> > > that did not happen for all links, but for some links only, and I'm not
> > > sure why.
> > > Also those pages are not present in the ZIM notebook data folder,
> there is
> > > no text file for them.
> > >
> > > See a screenshot example here (the first 3 pages in the ictures are
> pages
> > > that I created, and below that there are two grey pages that I did not
> > > create and can't delete):
> > >
> https://www.dropbox.com/s/kw6r9r35mvx3766/Screenshot_zim_links.jpg?dl=0
> > >
> > > Any idea why is that and what I can do to fix that issue?
> > >
> > > Thank you for your help and for working on this great program.
> > > Best,
> > > Luca
> > >
> > > ___
> > > 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
>
>
> --
>   ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
>   ⣾⠁⢠⠒⠀⣿⡁
>   ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
>   ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS
>
___
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] links in index

2020-12-15 Thread Raphael Hertzog
On Mon, 14 Dec 2020, Jaap Karssenberg wrote:
> Actually this is the intended behavior. If you create a link to a new page
> it will show up as a placeholder in the index

I don't think this is correct. There's no link at all. It's just plain
text like "www.debian.org" that we input and that zim is force-turning
into page links...  they were not added as link at all.

Cheers,

> Op ma 14 dec. 2020 16:33 schreef Luca Campanelli :
> 
> > Hello all,
> >
> > I'm using ZIM 0.73.4 in Xubuntu 20.04 (ZIM installed via PPA).
> >
> > ZIM generated automatically some unwanted pages from links that I have in
> > other pages that I created.
> > They are showed in grey in the index and I cannot delete those pages (if I
> > right click and delete the page in the index nothing happens).
> > For example I inserted wwwSomeAddress in a page, and that became a new
> > page with name wwwSomeAddress showed in grey in the index. Interestingly
> > that did not happen for all links, but for some links only, and I'm not
> > sure why.
> > Also those pages are not present in the ZIM notebook data folder, there is
> > no text file for them.
> >
> > See a screenshot example here (the first 3 pages in the ictures are pages
> > that I created, and below that there are two grey pages that I did not
> > create and can't delete):
> > https://www.dropbox.com/s/kw6r9r35mvx3766/Screenshot_zim_links.jpg?dl=0
> >
> > Any idea why is that and what I can do to fix that issue?
> >
> > Thank you for your help and for working on this great program.
> > Best,
> > Luca
> >
> > ___
> > 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


-- 
  ⢀⣴⠾⠻⢶⣦⠀   Raphaël Hertzog 
  ⣾⠁⢠⠒⠀⣿⡁
  ⢿⡄⠘⠷⠚⠋The Debian Handbook: https://debian-handbook.info/get/
  ⠈⠳⣄   Debian Long Term Support: https://deb.li/LTS

___
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] links in index

2020-12-14 Thread Luca Campanelli
that was it. 
Thank you very much for your help.

Best, 
Luca



___
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] links in index

2020-12-14 Thread Jaap Karssenberg
Actually this is the intended behavior. If you create a link to a new page
it will show up as a placeholder in the index

If you intend to create a link to an URL instead, the link should start
with an URL scheme, e.g. "http://; so it will be recognized as an URL and
not a page name.

Regards,

Jaap

Op ma 14 dec. 2020 16:33 schreef Luca Campanelli :

> Hello all,
>
> I'm using ZIM 0.73.4 in Xubuntu 20.04 (ZIM installed via PPA).
>
> ZIM generated automatically some unwanted pages from links that I have in
> other pages that I created.
> They are showed in grey in the index and I cannot delete those pages (if I
> right click and delete the page in the index nothing happens).
> For example I inserted wwwSomeAddress in a page, and that became a new
> page with name wwwSomeAddress showed in grey in the index. Interestingly
> that did not happen for all links, but for some links only, and I'm not
> sure why.
> Also those pages are not present in the ZIM notebook data folder, there is
> no text file for them.
>
> See a screenshot example here (the first 3 pages in the ictures are pages
> that I created, and below that there are two grey pages that I did not
> create and can't delete):
> https://www.dropbox.com/s/kw6r9r35mvx3766/Screenshot_zim_links.jpg?dl=0
>
> Any idea why is that and what I can do to fix that issue?
>
> Thank you for your help and for working on this great program.
> Best,
> Luca
>
> ___
> 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] links in index

2020-12-14 Thread Luca Campanelli
Hello all, 

I'm using ZIM 0.73.4 in Xubuntu 20.04 (ZIM installed via PPA). 

ZIM generated automatically some unwanted pages from links that I have in other 
pages that I created. 
They are showed in grey in the index and I cannot delete those pages (if I 
right click and delete the page in the index nothing happens). 
For example I inserted wwwSomeAddress in a page, and that became a new page 
with name wwwSomeAddress showed in grey in the index. Interestingly that did 
not happen for all links, but for some links only, and I'm not sure why.
Also those pages are not present in the ZIM notebook data folder, there is no 
text file for them.

See a screenshot example here (the first 3 pages in the ictures are pages that 
I created, and below that there are two grey pages that I did not create and 
can't delete): 
https://www.dropbox.com/s/kw6r9r35mvx3766/Screenshot_zim_links.jpg?dl=0

Any idea why is that and what I can do to fix that issue? 

Thank you for your help and for working on this great program.
Best, 
Luca

___
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] links in index

2020-12-14 Thread Marco Cevoli
+1. Same issue here.

Marco Cevoli

On Mon, Dec 14, 2020 at 4:33 PM Luca Campanelli  wrote:
>
> Hello all,
>
> I'm using ZIM 0.73.4 in Xubuntu 20.04 (ZIM installed via PPA).
>
> ZIM generated automatically some unwanted pages from links that I have in 
> other pages that I created.
> They are showed in grey in the index and I cannot delete those pages (if I 
> right click and delete the page in the index nothing happens).
> For example I inserted wwwSomeAddress in a page, and that became a new page 
> with name wwwSomeAddress showed in grey in the index. Interestingly that did 
> not happen for all links, but for some links only, and I'm not sure why.
> Also those pages are not present in the ZIM notebook data folder, there is no 
> text file for them.
>
> See a screenshot example here (the first 3 pages in the ictures are pages 
> that I created, and below that there are two grey pages that I did not create 
> and can't delete):
> https://www.dropbox.com/s/kw6r9r35mvx3766/Screenshot_zim_links.jpg?dl=0
>
> Any idea why is that and what I can do to fix that issue?
>
> Thank you for your help and for working on this great program.
> Best,
> Luca
>
> ___
> 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] Links updates not working

2017-06-24 Thread Jaap Karssenberg
Hi Nik,

In my own test cases this does work. If you have a test case to reproduce
the issue, could you open an issue on github?

Thanks,

Jaap

On Fri, Jun 23, 2017 at 3:42 PM nik  wrote:

> Hello list!
>
> When I rename or move page, on which I have links from other pages, they
> doesn't update.
>
> In the console I can see:
>
> WARNING: Number of links after move (0) does not match number before
> move (1)
>
> I'm using Zim 0.67-rc2 from git on x64 linux.
>
> ___
> 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] Links to certain subtitles

2016-02-01 Thread Colin Tedford
Some prior art for linking to arbitrary text (on websites, which I would
*love* if browsers implemented natively):
http://indiewebcamp.com/fragmention

Colin
colintedford.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


Re: [Zim-wiki] Links to certain subtitles

2016-02-01 Thread Dan Lessner

Hi,
I happened to supervise a bachelor thesis on this topic.

See info here:
https://is.cuni.cz/webapps/zzp/detail/130229/?lang=en

Here is the source code:
https://is.cuni.cz/webapps/zzp/download/130133056/?lang=en

The main aim was different (see abstract), but it pretty much forced Jan 
(the student) to implement direct links to headings as well.


Bad news: he was unable to implement it as a plug-in and had to modify 
the core. At the end there are two types of headings: linkable and 
non-linkable (for backwards compatibility).


It is probably up to Jaap if he would like to inspect the code and merge 
it into the main branch.


I am not sure what does Jan do these days and whether he would be 
willing to participate.


Best wishes,
Dan



Dne 28.1.2016 v 13:21 s.span...@stud.uni-heidelberg.de napsal(a):

One more thing I'd like to add:

Even Wikipedia does already support my request, as you can jump from the
table of contents to the named subtitles resp. (sub)paragraphs.

Have a nice day!

Sebastian


Zitat von Colin Tedford :


basically you are saying that you would like to be able to set a link to

any word within any page.  Is that correct?

I think Sebastian wants to link to headings (as one can do, for
example, at
WIkipedia), not any word. As far as I know this isn't possible, but I
hope
I'm wrong because it would be useful.

Colin
colintedford.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


___
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] Links to certain subtitles

2016-02-01 Thread Joseph Reagle
Pandoc markdown supports user specified and automatic header IDs:

 

On 02/01/2016 03:37 PM, Colin Tedford wrote:
> Some prior art for linking to arbitrary text (on websites, which I
> would *love* if browsers implemented natively):
> http://indiewebcamp.com/fragmention

Hrmm I had not seen this, but it looks hackish. Of course, I don't know if 
any big browser supports XPointer for XHTML(5) documents, which was supposed to 
be the solution/path, so hacks might be all there is

___
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] Links to certain subtitles

2016-01-28 Thread Colin Tedford
> basically you are saying that you would like to be able to set a link to
any word within any page.  Is that correct?

I think Sebastian wants to link to headings (as one can do, for example, at
WIkipedia), not any word. As far as I know this isn't possible, but I hope
I'm wrong because it would be useful.

Colin
colintedford.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


Re: [Zim-wiki] Links to certain subtitles

2016-01-28 Thread Murat Güven
Hi Sebastian, 

basically you are saying that you would like to be able to set a link to any 
word within any page.  Is that correct? 

If I understood the Zim Index correctly, only pages are available for linking. 
There is no hashing of pages done. 

Regards, 
Murat 

Am 28.01.2016 00:24 schrieb s.span...@stud.uni-heidelberg.de:

Dear Zim-Team,

I'm wondering if it's possible to have links in the following way:
Considering two pages A and B, they both contain subpages A.a, A.b,  
etc. and subtitles A.1, A.2, etc.
To have a link "page A --> page B" and vice versa is obviously done easily.
Even links like "page A --> page B : subpage B.x" are working out quite well.

Now, I would like to have the links to be more specified, e.g. link  
"page A : *anywhere* --> page B : subtitle B.2" or "page A : subpage  
A.a : *anywhere* --> page B : *any subpage* : *anywhere*"  even "page  
A : subtitle A.x --> page A: subtitle A.y".


Is my request possible in the present syntax?


I actually got the idea from pdf's, in which it's possible to have  
references to equations and when clicking on those numbers (like: "see  
eq. [3]"), you get immediately to the corresponding equation (like eq.  
3).

I wish you a nice day!

Sebastian Spaniol


___
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] Links to certain subtitles

2016-01-28 Thread s . spaniol

Hi there,

actually all of you are right about this.

My favourite choice would be to have "link anchors" (thanks for  
refreshing my vocabulary, Tom!), so yes, links to certain words would  
satisfy me mostly.


As I thought this to be too difficult to implement, I wondered if the  
other way (that Colin actually described quite more elegantly than me)  
would be possible, as it would satisfy me enough to have a link at  
least to the certain subtitle of the paragraph containing, for  
instance, my bewished equation.


My hope was it to have the index-plugin as some help here. I like it  
to be shown the content of my pages like in a pdf, now I would like to  
have links not only to the pages but also to the subtitles on the  
pages - but I'm repeating myself here.


I'm with Colin: hopefully we're still wrong here. o:-)

Thank you kindly for all your answers!

Sebastian


Zitat von Colin Tedford :


basically you are saying that you would like to be able to set a link to

any word within any page.  Is that correct?

I think Sebastian wants to link to headings (as one can do, for example, at
WIkipedia), not any word. As far as I know this isn't possible, but I hope
I'm wrong because it would be useful.

Colin
colintedford.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


Re: [Zim-wiki] Links to certain subtitles

2016-01-28 Thread s . spaniol

One more thing I'd like to add:

Even Wikipedia does already support my request, as you can jump from  
the table of contents to the named subtitles resp. (sub)paragraphs.


Have a nice day!

Sebastian


Zitat von Colin Tedford :


basically you are saying that you would like to be able to set a link to

any word within any page.  Is that correct?

I think Sebastian wants to link to headings (as one can do, for example, at
WIkipedia), not any word. As far as I know this isn't possible, but I hope
I'm wrong because it would be useful.

Colin
colintedford.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] Links to certain subtitles

2016-01-27 Thread s . spaniol

Dear Zim-Team,

I'm wondering if it's possible to have links in the following way:
Considering two pages A and B, they both contain subpages A.a, A.b,  
etc. and subtitles A.1, A.2, etc.

To have a link "page A --> page B" and vice versa is obviously done easily.
Even links like "page A --> page B : subpage B.x" are working out quite well.

Now, I would like to have the links to be more specified, e.g. link  
"page A : *anywhere* --> page B : subtitle B.2" or "page A : subpage  
A.a : *anywhere* --> page B : *any subpage* : *anywhere*"  even "page  
A : subtitle A.x --> page A: subtitle A.y".



Is my request possible in the present syntax?


I actually got the idea from pdf's, in which it's possible to have  
references to equations and when clicking on those numbers (like: "see  
eq. [3]"), you get immediately to the corresponding equation (like eq.  
3).


I wish you a nice day!

Sebastian Spaniol


___
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] Links and markup in table doesn't work

2016-01-21 Thread Mukli Krisztián


Hi all! 

I'm very happy when I read in Zim Help, that links and
common format markup works in table cells in the new Table Editor
plugin. Unfortunately this day I realised it doesn't work definitely.
Links displaying as links, but if I used right-click on the selected
line, Open cell in content link doesn't do anything. (Picture-1) 

If I
write something after a link in cell, the content doesn't show.
Picture-2 shows what is the content of the cell with link from
Picture-1. 

How can I fix it? There any idea what happens? 

Windows 10
x64, Zim 0.65. Thanks for any comment! 
-- 

MUKLI KRISZTIÁN

 _tel:
+3631 313 2094_
 _mail: krisztianmu...@mukli.hu [1]_
 _web: www.mukli.hu
[2]_ 

Links:
--
[1] mailto:krisztianmu...@mukli.hu
[2]
http://www.mukli.hu
___
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] Links and markup in table doesn't work

2016-01-21 Thread Svenn Are Bjerkem
On 22 January 2016 at 06:42, Paulo van Breugel  wrote:
> If you are experiencing this bug, please go to that page and click on 'this
> bug affects you'.

I can't see how to upvote this issue on that page.


-- 
Svenn

___
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] Links and markup in table doesn't work

2016-01-21 Thread Paulo van Breugel



On 21-01-16 20:16, Brendan Kidwell wrote:
If you associate .txt files with Zim, in Windows Explorer, then you 
can make hyperlinks in your spreadsheet attachments which open Zim pages.

On Thu, Jan 21, 2016, at 14:14, Brendan Kidwell wrote:
Unfortunately for you, I think this is working as designed. Zim's 
current table implementation is designed as a 2D array of PLAIN-TEXT 
cells. The data is fed into a GTK table-rendering widget that doesn't 
know anything about wiki syntax. For now you'll just have to do your 
best with plain text.


According to the manual, links should work. If entered, the link text is 
actually colored, but CTRL + left click opens the table toolbar. Using 
the 'open cell content' in the context menu doesn't do anything. I 
thought it used to work, but I am not certain. In any case, this seems 
to be a bug, or the manual need to be adapted. I have filed a bug report 
on this: https://bugs.launchpad.net/zim/+bug/1536906. If you are 
experiencing this bug, please go to that page and click on 'this bug 
affects you'.



There are some alternative table suggestions in the wiki 
. Not sure if it's 
in there, but you might also consider storing your table with complex 
formatting, in a spreadsheet file (Gnumeric, LibreOffice Calc, etc.) 
and ATTACH it to a Zim page.

On Thu, Jan 21, 2016, at 12:23, Mukli Krisztián wrote:


I'm very happy when I read in Zim Help, that links and common format 
markup works in table cells in the new Table Editor plugin. 
Unfortunately this day I realised it doesn't work definitely. Links 
displaying as links, but if I used right-click on the selected line, 
Open cell in content link doesn't do anything. (Picture-1)


If I write something after a link in cell, the content doesn't show. 
Picture-2 shows what is the content of the cell with link from 
Picture-1.


How can I fix it? There any idea what happens?

Windows 10 x64, Zim 0.65. Thanks for any comment!




___
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] Links and markup in table doesn't work

2016-01-21 Thread Brendan Kidwell
Unfortunately for you, I think this is working as designed. Zim's
current table implementation is designed as a 2D array of PLAIN-TEXT
cells. The data is fed into a GTK table-rendering widget that doesn't
know anything about wiki syntax. For now you'll just have to do your
best with plain text.

There are some alternative table suggestions in the wiki[1]. Not sure if
it's in there, but you might also consider storing your table with
complex formatting, in a spreadsheet file (Gnumeric, LibreOffice Calc,
etc.) and ATTACH it to a Zim page.


On Thu, Jan 21, 2016, at 12:23, Mukli Krisztián wrote:
> I'm very happy when I read in Zim Help, that links and common format
> markup works in table cells in the new Table Editor plugin.
> Unfortunately this day I realised it doesn't work definitely. Links
> displaying as links, but if I used right-click on the selected line,
> Open cell in content link doesn't do anything. (Picture-1)


> If I write something after a link in cell, the content doesn't
> show. Picture-2 shows what is the content of the cell with link
> from Picture-1.


> How can I fix it? There any idea what happens?


> Windows 10 x64, Zim 0.65. Thanks for any comment!





Links:

  1. https://github.com/jaap-karssenberg/zim-wiki/wiki
___
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] Links and markup in table doesn't work

2016-01-21 Thread Brendan Kidwell
If you associate .txt files with Zim, in Windows Explorer, then you can
make hyperlinks in your spreadsheet attachments which open Zim pages.

On Thu, Jan 21, 2016, at 14:14, Brendan Kidwell wrote:
> Unfortunately for you, I think this is working as designed. Zim's
> current table implementation is designed as a 2D array of PLAIN-TEXT
> cells. The data is fed into a GTK table-rendering widget that doesn't
> know anything about wiki syntax. For now you'll just have to do your
> best with plain text.
>
> There are some alternative table suggestions in the wiki[1]. Not sure
> if it's in there, but you might also consider storing your table with
> complex formatting, in a spreadsheet file (Gnumeric, LibreOffice Calc,
> etc.) and ATTACH it to a Zim page.
>
>
> On Thu, Jan 21, 2016, at 12:23, Mukli Krisztián wrote:
>> I'm very happy when I read in Zim Help, that links and common format
>> markup works in table cells in the new Table Editor plugin.
>> Unfortunately this day I realised it doesn't work definitely. Links
>> displaying as links, but if I used right-click on the selected line,
>> Open cell in content link doesn't do anything. (Picture-1)


>> If I write something after a link in cell, the content doesn't
>> show. Picture-2 shows what is the content of the cell with link
>> from Picture-1.


>> How can I fix it? There any idea what happens?


>> Windows 10 x64, Zim 0.65. Thanks for any comment!


>



Links:

  1. https://github.com/jaap-karssenberg/zim-wiki/wiki
___
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] Links to non-existent pages

2013-11-04 Thread Jaap Karssenberg
On Mon, Nov 4, 2013 at 3:54 PM, and...@andis59.se and...@andis59.se wrote:

 In most Wiki a link to a non-existent page is red and links to existent
 pages are blue.

 In Zim all links are blue!

 I know that the link ot the non-existent page is grayed in the index, but
 having many links I rather see that a specific link on the current page is
 linked to an existing/non-existing page.

 Is there a way of doing this?


Afraid it is currently not supported, but there is an open request in the
bug tracker to add color highlighting for non-existing links.

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

2011-11-15 Thread Brendan Kidwell
I see the same effect with Linux Mint and Zim 0.53. When in non-editable
mode, left-clicking on local links and URLs both have no effect. I'm pretty
sure this isn't intentional; please open a bug at
http://bugs.launchpad.net/zim .
On Tue, Nov 15, 2011 at 1:10 PM, Alan Cummings acummi...@gmx.com wrote:

 Usually when I'm browsing through wiki pages I have Zim in non-editable
 mode, just so I don't accidentally delete/edit anything important. But I
 notice that I am unable to click on a link and go to that page/site, I am
 able to right-click on it and choose Open. This only happens in
 Non-editable mode, is this the way Zim is suppose to work? Or is it only
 me??

 Zim 0.53
 Lubuntu 11.10

___
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