-
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
File creation based on parent folder #54
Comments
Did you forget the
Do I understand correctly that the files you are referring to are placed like this?
That is, you are not describing issues with using two separate wiki's, but rather with how links work within a single wiki with multiple folder levels. I that right?
Links are generally relative to the path of the current file. So, from
I think this is how it is supposed to work already, and it seems to work like that for me.
Good question. I keep a rather flat structure, but I do agree that it makes sense to keep project specific notes within a project folder. The main drawback is that information may be related to more than a single project or topic. That is, you might end up writing redundant/duplicate notes. But if you are good at organizing this well, I think you could avoid issues like this. |
Thanks for your explanation!
Sorry I forgot to put the
Exactly. This structure is what I want to achieve.
That's right. So if I understand it right, all new notes will be created inside the same folder of current note. Previously I was also trying to find a way to create new notes inside the folder with the same name as its parent folder, e.g.:
Probably this has to be achieved by adding folder prefix. This may also be out of scope of a wiki plugin.
I agree that a project-centric structure does need taking more care on organizing things, but that may pay off in the long run. Thanks for this awesome plugin! |
Good, then I understand correctly. Ok, so: Links are by default relative to the current file. However, you can root them to the wiki root by prepending In this updated example:
Here you would use a link like However, note that the link syntax
I am not quite sure what you mean here. Are you saying that the links are somehow not working as I am explaining? If so, then I think it may be a bug and I'll be happy to try and fix it.
You're welcome, I'm happy you like it! I find it very useful for my own workflow, and it makes me happy to hear that it is useful to others as well. |
Thank you for this hint! Right now it works 100% as I want. Since this issue seems more like questions on usage instead of actual bugs, I will close it now. Thanks for you help. |
Great, happy to hear it! :) |
I am trying to learn how to use
wiki.vim
. Basically I want to create one folder per project and put all project-notes in its corresponding folder. But it seems likewiki.vim
does not expect the folder of current wiki but create all wikis insideg:wiki_root
folder.Here is my wiki.vim settings:
Here is my example
index.md
:Here is an example of
work.md
:Right now, in
work.md
:project1
link,project1.md
will be created in theg:wiki_root
folderproject2
link,project2.md
will be created in theg:wiki_root/work
folderHow can I specify relative path to current note when creating new files?
Here is another example: in both
project1.md
andproject2.md
:This link will link to the same file under
g:wiki_root/2020-02-05.md
Is there any way to make
wiki.vim
respect the folder of current wiki when creating new files? Otherwise I have to make sure to include the parent folder each time when I create a new link.By the way, could you share some insights what is the better way to arrange notes for different projects? Do you put all of them inside the wiki root folder or create a folder to store notes for each projects?
Thanks!
The text was updated successfully, but these errors were encountered: