-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WikiJournalNext, in_journal check #151
Comments
Can you explain your configuration? Which options do you use for Vim? Where is your wiki located? When you open a journal entry, what is the output of |
Thank you! It looks like my === .vimrc
=== Output of {'root': 'C:\Users\Alex\vimfiles\vimwiki', 'in_journal': 0, 'link_extension': ['wiki'], 'root_journal': 'C:\Users\Alex\vimfiles\vimwiki/diary', 'index_name': 'index', 'extension': 'wiki'} === Output of {'name': 'diary', 'date_format': {'weekly': '%Y_w%V', 'daily': '%Y-%m-%d', 'monthly': '%Y_m%m'}, 'frequency': 'daily'} |
Can you try to add |
Thanks so much, it solved it! |
Great, I'm happy to hear it. It might be I should take this into account somehow. Either an update in the docs or perhaps even try to avoid the issue altogether. |
Though the above solution works OK, it causes an error message with Vim-Plug. Could you please test and (if works) change one line in
|
I would think the |
Hmm, I don't think |
I honestly don't know. I moved on to setup CtrlPWiki integration command and ran into slash issues again among other things. I found that since I'm on Windows I should really use I closed this issue because I could solve it for myself and I don't want to take your time on some minor issue. I am glad I could finally find time to go through migration to Below text should be a different issue, and best of all, should come as a pull request, but I never did one. I hope I'll do it one day. Regarding CtrlP integration, there is code that assumes |
I've tried to implement a fix for this now. Can you test it? |
It now correctly finds that it's in Journal, great! As for CtrlPWiki I don't have any files listed after I issue the command. As the result of below call (
With below changes in
let l:root = fnamemodify(simplify(l:root), ':p:h') it removes trailing slash and I see files. I don't know if it's right, but function |
Ah, no, I think it's the same issue, but I believe I have a better resolution. Adding |
Please test again now. |
By the way, I think we the latest changes, everything should work as expected regardless of the |
It's perfect! I can confirm that all issues are now resolved, and it works fine without |
I think that this "slash" thing also applies to FZF integration, but it's probably even larger can of worms. I'll try it one day. ;) For me the greatest selling point of your |
Great, I'm happy to hear it!
Yes, that seems slightly more involved. I'll look at it and attempt a fix.
The idea is really to be more or less filetype agnostic. It's clearly not perfect, but it does support quite a lot of types of links, including asciidoc type of links/xrefs. I'm glad you find it useful! |
I'm on Windows, gVim.
I'm in journal for today, but when I do
:WikiJournal
and tab I can see only:WikiJournal
and:WikiJournalIndex
.Expected: all "in journal" commands should be available
If you could help, how would i test what is the value of
I suspect it gives me a wrong value.
The text was updated successfully, but these errors were encountered: