-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
gx freezes vim if browser is not already open #2
Comments
Hi, what OS are you using? I'm not able to replicate it with fedora 34. Also, does this also happens when using the default gx implementation (without this plugin press gx over a full url like https://github.com) |
Arch Linux. Native Opening the same website with xdg-open from the terminal works. |
If no firefox window is open and I try to open a website with firefox from the terminal than also firefox doesn't go to the background in the terminal. Basically the terminal 'hangs' with firefox (I don't know the proper terminology) until I press which frees the terminal but also closes the browser. If a firefox-window is already open than the website simply opens up in a new tab in the already existing firefox-window. Can it be that you have some kind of firefox-deamon running in the background? |
hey @astier, you found a solution to your problem? |
No. |
I made hacky solution: let g:gxext#opencmd = '/bin/sh -c "your-browser \"\$1\" & disown" sh' (replace How it works: main thing to make browser starting in background is |
System
Problem
If the browser is not already open and
gx
is used to open a link then the browser opens with the correct site, however vim freezes until the browser is closed. If the browser is already open before executinggx
then it works as expected and vim doesn't freeze.vimrc
Reproduce
Plug 'stsewd/gx-extended.vim'
gx
The text was updated successfully, but these errors were encountered: