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

Make folder links resolve to the index.wiki file #3

Closed
jgilchrist opened this issue Jan 8, 2018 · 3 comments
Closed

Make folder links resolve to the index.wiki file #3

jgilchrist opened this issue Jan 8, 2018 · 3 comments

Comments

@jgilchrist
Copy link
Contributor

jgilchrist commented Jan 8, 2018

Description

Given the following folder structure:

~/wiki
├── index.wiki
└── subfolder
    └── index.wiki

With the top-level index.wiki:

[[subfolder/]]

Navigating through this link goes to ~/wiki/subfolder/.wiki. However, it seems like the intention is that it should navigate to ~/wiki/subfolder/index.wiki.

My current workaround is to have the link read: [[Refactoring/index|Refactoring/]].

@lervag lervag closed this as completed in 8b3099f Jan 8, 2018
@lervag
Copy link
Owner

lervag commented Jan 8, 2018

Thanks! I've fixed this now. I also removed the warning about directories not existing and instead use mkdir() to create missing directories. I think it should be safe, as wiki links should always be "internal" to the wiki.

@jgilchrist
Copy link
Contributor Author

jgilchrist commented Jan 8, 2018

Hi @lervag, thanks so much for such a quick response! The links are working great now (and I can clean up my index page 🙂) - the only thing I noticed is that the top-level index of the wiki is now preceded by two forward slashes after I navigate to it with <leader>ww, e.g.

~/.vim/wiki//index.wiki

@lervag
Copy link
Owner

lervag commented Jan 9, 2018

No problem! I'm happy to see someone else is using the plugin. :)

I don't see how to reproduce the issue with <leader>ww. Could you explain what you do to see the issue?

Btw: I have not really used subfolders myself, thus I can't guarantee that everything works as expected with subfolders. Feel free to open issues if you should find more problems related to this.

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

2 participants