vimwiki-backup / vimwiki

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

Diary entries are attempting to be created relative to home directory instead of wiki.path #302

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Attempt to create a new diary entry or follow existing diary entry link from 
the diary index page.
2. It will ask if I want to create a new directory 'diary' y/n. If I select 'y' 
it will create a 'diary' directory in my home directory and open a new daily 
diary entry

What is the expected output? What do you see instead?
1. Expect to see the link to the existing diary entry in wiki.path/diary be 
followed or created in that already existing directory.

What version of the product are you using? On what operating system?
Hg version 557

Please provide any additional information below.

Original issue reported on code.google.com by firecat4...@gmail.com on 6 May 2012 at 3:56

GoogleCodeExporter commented 9 years ago
Forgot to add that the previous revision I was using is 544 and it worked 
correctly there.

Thanks!
Scott

Original comment by firecat4...@gmail.com on 6 May 2012 at 3:57

GoogleCodeExporter commented 9 years ago
If I enter an absolute, instead of a relative path for "diary_rel_path" 
":VimwikiMakeDiaryNote" works but the shortcuts (<C-Up/Down>) don't work.

Original comment by dominik.mayer on 6 May 2012 at 10:59

GoogleCodeExporter commented 9 years ago
Looks like it was regression bug connected with 
https://groups.google.com/forum/?fromgroups#!topic/vimwiki/gGonEC0mifk

Could you pls check with current revision?

Original comment by habamax on 9 May 2012 at 7:42

GoogleCodeExporter commented 9 years ago

Original comment by habamax on 9 May 2012 at 2:06

GoogleCodeExporter commented 9 years ago
I am using r6dad432a64c5, and the diary scheme is still having trouble.  This 
affects <C-up/down>, and the creation of new entries.

I am still catching up with your recent work, but I'm pretty sure the issue is 
in resolve_scheme().  Looking closer with ":let g:vimwiki_debug = 1", when I 
try to create today's diary entry, I get:

 > open_link: scheme=diary, path=, subdir=, lnk=2012-05-09, ext=.md

Original comment by stu.andrews on 9 May 2012 at 5:28

GoogleCodeExporter commented 9 years ago
I just tried rev 561 and it's still doing the same thing. I'm in directory 
~/projects/foo, open vim, open the main index with <leader>ww, then click on 
the link '[[diary:diary|Personal Log]]' (diary.wiki is located in 
<path/to/vimwiki/diary) and it asks 'Vimwiki: Make new directory: diary \n 
[Y]es/[n]o?'. If I say yes it creates the diary directory in my $HOME. Same 
behavior if I type <leader>w<leader>w from any screen.

Another odd note: I actually have to separate wiki's assigned in .vimrc. The 
behavior is almost the same for the 2nd wiki, except that it will actually open 
the diary.wiki page and I can open any other diary entries, but if I hit 
2<leader>w<leader>w it asks 'Vimwiki: Make new directory: ../diary'. If I say 
yes, it tries to create the file in /home, which obviously fails.

Thanks,
Scott

Original comment by firecat4...@gmail.com on 9 May 2012 at 5:29

GoogleCodeExporter commented 9 years ago
Guys, thx for testing!

I am using autocommand that 'lcd' to directory of the current buffer. So I 
didn't have that problem.

Could you check the last fix?

Original comment by habamax on 9 May 2012 at 6:55

GoogleCodeExporter commented 9 years ago
Rev 563 seems to work for both diaries.

Thanks!
Scott

Original comment by firecat4...@gmail.com on 9 May 2012 at 7:21

GoogleCodeExporter commented 9 years ago
Thx!

Original comment by habamax on 9 May 2012 at 7:28