Skip to content
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

Zettels are not created in the current subfolder. #140

Open
vacuumbeef opened this issue Dec 7, 2023 · 7 comments
Open

Zettels are not created in the current subfolder. #140

vacuumbeef opened this issue Dec 7, 2023 · 7 comments

Comments

@vacuumbeef
Copy link

vacuumbeef commented Dec 7, 2023

Maybe I'm not understanding #139 correctly, but

If I'm in ~/wiki1/testpath/index.md -
:ZettelNew creates ~/wiki1/zettelname.md

But that pull request made me think it should create ~/wiki1/testpath/zettelname.md

I'm testing it with the configuration mentioned in that PR:

let g:vimwiki_list = [{"path": "~/wiki1"},{"path":"~/wiki2"}]
let g:zettel_options = [{},{'rel_path': 'zettel/'}]

Am I wrong?

@vacuumbeef vacuumbeef changed the title Zettels are not getting created in the current subfolder. Zettels are not created in the current subfolder. Dec 7, 2023
@michal-h21
Copy link
Owner

It obviously doesn't work. And also, if you are in a note in the subdirectory, and link to a note in the parent directory, it doesn't insert correct link, which I think worked at some point. @ferdinandyb

@vacuumbeef
Copy link
Author

Looks like I got all of it wrong, sorry. Closing?

@michal-h21
Copy link
Owner

I think there is still the problem that you will get a wrong link when you link from subdir to the parent dir. So there is a still a lot of issues to be solved regarding subdirs. I think this can be left open.

@ferdinandyb
Copy link
Contributor

ferdinandyb commented Dec 10, 2023 via email

@ferdinandyb
Copy link
Contributor

@vacuumbeef given your config, when you are in wiki1 the correct zettel path is the root of the wiki, so it seems to work as intended. To get the behaviour you want you need to set the rel_path for wiki1 as well:

let g:vimwiki_list = [{"path": "~/wiki1"},{"path":"~/wiki2"}]
let g:zettel_options = [{'rel_path': 'zettel/'},{'rel_path': 'zettel/'}]

@michal-h21 I think currently vim-zettel still assumes that the zettel itself is flat, so all the notes are flat where rel_path points. How did you want to insert a link? I think if you want to insert a link to something outside of the zettel you might need to use Vimwiki's linking directly? Or maybe it's just broken. Can you tell me how to repro?

@michal-h21
Copy link
Owner

@ferdinandyb I think the issue here is the same as this one. @rfhlmn offered help, so hopefully, he will succeed.

@ferdinandyb
Copy link
Contributor

Sounds good :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants