Follow external URLS #26
Replies: 4 comments 1 reply
-
This is more a general (n)vim mapping. Usually you just have to do For some reason it does not work on my config (and I am too lazy to find out why), so I have the following explicitely mapped: if vim.fn.has("mac") == 1 then
map(
"n",
"gx",
'<Cmd>call jobstart(["open", expand("<cfile>")], {"detach": v:true})<CR>'
)
elseif vim.fn.has("unix") == 1 then
map(
"n",
"gx",
'<Cmd>call jobstart(["xdg-open", expand("<cfile>")], {"detach": v:true})<CR>'
)
else
map("n", "gx", '<Cmd>lua print("Error: gx is not supported on this OS!")<CR>')
end
|
Beta Was this translation helpful? Give feedback.
-
Awesome! I know about BTW: that error message just shouldn't happen. If a file doesn't exist we should not even try to open it 😄 |
Beta Was this translation helpful? Give feedback.
-
Posting here is fine. As long as it's marked as idea, it's all easy to find 😄 |
Beta Was this translation helpful? Give feedback.
-
One of the things I immediately see when fully replacing vimwiki with telekasten is that I'm not able to follow external URLs, e.g
[Use me to search!](https://google.com)
. Trying to follow external links throws an error:(let me know if these should be issues rather than discussion threads. It seems like all the activity is over here.)
Beta Was this translation helpful? Give feedback.
All reactions