vimwiki-backup / vimwiki

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

VimwikiGenerateLinks doesn't include wikilinks that don't have saved pages yet #369

Open GoogleCodeExporter opened 8 years ago

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

1. Open vim, hit \ww to open the wiki index
2. Type 'foo bar', hit Enter on each word to make them wikilinks
3. Put cursor on 'foo', hit Enter to open foo.wiki
4. Add some random content, hit Backspace (foo.wiki gets autosaved here) to go 
back to wiki index
5. Call :VimwikiGenerateLinks, notice that 'bar' is not included
6. Put cursor on 'bar', hit Enter to open bar.wiki
7. Explicitly save the empty bar.wiki using :w , then hit Backspace to go back 
to the index
6. Call :VimwikiGenerateLinks again, notice that 'bar' is include this time

I would really want to avoid the hassle of explicitly opening wikilinks and 
saving empty files everytime I create a new wikilink, so I can have those 
wikilinks appear in the output of VimwikiGenerateLinks.

I am using VimwikiGenerateLinks as reference everytime when I want to add a new 
link, to check if I already have one, like adding a wikilink 'ShortBow' 
somewhere, then not seeing it in the output of VimwikiGenerateLinks (just 
because I don't have such a ShortBow.wiki file yet, since I didn't edit that 
wiki page yet) and not remembering that I already added a 'ShortBow' wikilink 
could make me add a 'ShortBows' one - and here's the redundancy.

Of course I can just keep track manually of all wikilinks I'm adding but this 
seems like a lot of additional work.

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 1:23

GoogleCodeExporter commented 8 years ago

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