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
Opening OneNote links from Vimwiki #818
Comments
|
Thanks, when running vimwiki in the WSL bash terminal the command above does not work because then you have to escape the ampersands. I use the following command in this case: When running vimwiki in termux on Android you can use termux-open: |
|
@bousch Looks good! Would you mind sharing the full function as defined for WSL bash and/or termux? I tried for 10 minutes and did not get it to work. |
|
This is the complete function I use atm. Note I currently only use vim in WSL or Termux so I removed the original command. For WSL I had to add the error redirection to /dev/null to suppress some output in vim. (edit: And I did not implement anything for the local links on termux or wsl. I have no need for that yet.) |
|
BTW I define uname in the beginning of my vimrc (looks a little messy, this could be improved I guess): |
|
Links need to be surrounded by square brackets but I just noticed that not all links work. Not sure why yet. |
|
@bousch Thanks a lot! Which emulator do you use for WSL? I use Also, I added one line to your conditionals to make sure Lastly, I cannot reproduce your quote as below:
Per my Vimwiki setup, I used Markdown syntax and the following links in Vimwiki are all running smoothly: Both are pointing to a OneNote page named |


Thanks to severoraz's post in Issue #71, I added one more condition to help with opening OneNote links on Windows 10 machines.
The function above helps Vimwiki to recognize links with
onenote:prefix, produced by OneNote (or OneNote 2016) when one right-click a page for its link.One caveat is that the following warning message will raise every time when I "followed" the

onenote:link. I did not find a good way to deal wit it. The command,start "" "onenote:https://d.docs.live.net/...", runs flawlessly when supplied to Command Prompt.Please help if you know how to suppress such a warning message for OneNote 2016. (I opted to use it as the default for Windows 10,
URL:OneNote Protocol. The other OneNote App does not respond to perfectly to thisonenote:file link per my testing.)The text was updated successfully, but these errors were encountered: