vimwiki-backup / vimwiki

Automatically exported from code.google.com/p/vimwiki
1 stars 1 forks source link

Punctuation marks get included in wikilinks #362

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Consider the following line:

foo, bar: baz; no.

Hit Enter on each word to make it a wikilink.

What is the expected output?

[[foo]], [[bar]]: [[baz]]; [[no]].

What do you see instead?

[[foo,]] [[bar:]] [[baz;]] [[no.]]

What version of the product are you using?

vimwiki-2-0-1
vim-7.3.154

On what operating system?

Slackware64-13.37

Please provide any additional information below.

Original issue reported on code.google.com by rwxrwx.m...@tut.by on 24 Aug 2012 at 12:05

GoogleCodeExporter commented 8 years ago
For turning arbitrary text into vimwiki link with <CR> the same routine as for 
`:h vimwiki_+` is used. 

Thus to 'fix' that behaviour one should implement another special linkify 
routine.

I am not sure if it is worth it granted one can do viw<CR>.

PS
what about

foo-bar
foo/bar
foo@bar.com

?

Original comment by habamax on 24 Aug 2012 at 5:21

GoogleCodeExporter commented 8 years ago
>I am not sure if it is worth it granted one can do viw<CR>.

viw<CR> gives the expected result, this is an acceptable way to not include 
those symbols in the wikilinks.

>what about
>
>foo-bar
>foo/bar
>foo@bar.com

Have just tried all these, wikilinks are created properly regardless of cursor 
position inside string when <CR> is pressed.

Original comment by rwxrwx.m...@tut.by on 24 Aug 2012 at 5:31

GoogleCodeExporter commented 8 years ago

Original comment by habamax on 24 Aug 2012 at 6:15