Open alichtman opened 2 years ago
same here!
I think its a neovim problem:
:call system('xdg-open http://firefox.com')
https://github.com/neovim/neovim/wiki/FAQ#-and-system-do-weird-things-with-interactive-processes
Im not neovim expert but should be other way to call xdg-open without system.
temporal solution, because I use a lot this plugin:
add the setting let g:gh_trace=1
to your vimrc then you will at least see the URL on the statusline
@alichtman check prev message!
@zodman Yup, I agree with your analysis (and thumbs'd up your comment the day you posted it 😃)
Leaving the issue open, as there's no proper fix
As mentioned here, you can use jobstart
instead of system
(works on Ubuntu 22.04, NVIM v0.9.0-dev-342+g282cbc235).
@sebastian-palma PR please please!
I found out that vim-fugitive
has this functionality baked in, so I added these two remappings and dropped the vim-gh-line
plugin from my config.
" Open selection on github
nnoremap go :.GBrowse<CR>
vnoremap go :'<,'>.GBrowse<CR>
I think the proposed jobstart
patch would fix this issue (and I would put up a PR if I hadn't already fixed my workflow).
@zodman see this, this is the only change I needed to make it work.
When I trigger the plugin, I see
but the page never opens in Firefox. Running that command manually in a terminal does open the page.
Env
nvim health check