-
-
Notifications
You must be signed in to change notification settings - Fork 142
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 links with targets #281
Comments
Those cases are not supported, but you can create link to headline by title, or by
|
Hi kristijan,
And this is what I have in my "progetti.org" file:
Still, when using the shortcut it doesn't work. If I remove the "targets" it works fine. |
Did you give it a try with minimal configuration? |
Just tried with a minimal config, keeping just treesitter and org. I've only set the leader key and the "conceallevel" and "concealcursor" options as intended by this plugin. OS: Windows 10 nvim --version:
|
I've troubleshooted the problem and found out the "solution". The problem becomes clear here: orgmode/lua/orgmode/org/hyperlinks.lua Line 25 in b9de38e
After this line, the returned file path has mixed backslashes and forward slashes on windows. One way that a user can solve it, is to set the following option in init.lua on the windows machine:
This way, expanding using the fnamemodify function will always return forward slashes. Fixing this in the plugin seems trivial, but I'm not exactly sure what would be the best way to do it. Hope that I was of some help :) |
Thanks for figuring it out!
I agree, but maybe not everyone wants this behavior. |
Yes, indeed it seems like a good idea. |
Troubleshoot section added: https://github.com/nvim-orgmode/orgmode#jumping-to-file-path-is-not-working-for-paths-with-forward-slash Thanks for our help! |
I'm sorry to open this again. I just wanted to give a warning: after setting the "shellslash" option, Packer.nvim stopped working correctly. I currently opened an Issue on their github repo to address this, but up until then, if someone is using packer, it's probably better not to set that variable. |
I've fixed the issue on packer.nvim and created a pullrequest, for anyone who might have this issue |
I'm not an expert on org mode, but from some searches I've made it looks like you can create a link to a specific part of a page with a syntax similar to this one:
I've tried both this syntax using this plugin, but it doesn't seem to work. The only thing I could do was pointing to a specific file, which works correctly.
Is this supported?
The text was updated successfully, but these errors were encountered: