-
-
Notifications
You must be signed in to change notification settings - Fork 225
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
feat(hop): wiki links #1679
base: main
Are you sure you want to change the base?
feat(hop): wiki links #1679
Conversation
Given the above content, when I press enter over the wiki link, I get the following errors after pressing the related keys:
{
"benlubas/neorg",
branch = "push-yzmnmvtuuuon",
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
version = "*", -- Pin Neorg to the latest stable release
dependencies = {
{ "pysan3/neorg-templates", dependencies = { "L3MON4D3/LuaSnip" } },
},
-- ...
} I've got the above as part of my config, so if there's something else here that might be giving me these results, let me know and I can test again. |
https://github.com/nvim-neorg/norg-specs/blob/main/1.0-specification.norg#L1467 That said, this definitely shouldn't error. I'll take a look at that, ty |
Actually, now that I actually go to look at this, you're not correctly loading this PR. You've loaded an old version because you have |
Ah, I see. Sorry about that. I misunderstood the conversation we had in Discord. I was talking about creating links to files rather than to headings in any file in the workspace. When the wiki link destination is spelled correctly, it jumps to the file, but it's throwing an error saying:
Which doesn't make sense since the line definitely exists. Given that, here are the new results I'm seeing when there is an incorrectly typed wiki link destination:
{
-- "nvim-neorg/neorg",
"benlubas/neorg",
branch = "push-yzmnmvtuuuon",
lazy = false, -- Disable lazy loading as some `lazy.nvim` distributions set `lazy = true` by default
-- version = "*", -- Pin Neorg to the latest stable release
dependencies = {
{ "pysan3/neorg-templates", dependencies = { "L3MON4D3/LuaSnip" } },
},
} |
ef345b6
to
2e1d1cf
Compare
2e1d1cf
to
8e40697
Compare
I've fixed these errors, I never think to check the link fixer, I never use it. The line number warning I must have just missed somehow. Noice hiding errors away in the corner of the screen I guess. I was passing a string line number instead of converting it a number.
I appreciate the thorough testing and detailed issues! |
I'm not seeing any other issues. The only thing is the auto-matching when the wiki link destination is misspelled, though this is probably a feature enhancement on top of this functionality. |
Ability to follow wiki links. No auto-completion for wiki links in this PR