-
Notifications
You must be signed in to change notification settings - Fork 620
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
multiple url link opening #763
Comments
|
|
It is strange that it works for a different browser. If you can try do do some debugging and add any more info here that would be helpful. You can take a look at this link about debugging or you can edit the source code to add print statements and then restart vim/vimwiki so the changes are loaded. |
I tried looking into it and I myself found that function as well...after doing so I concluded it has to be qutebrowser issue that somehow randomly happens only here :D ...I will definitelly search deeper and give an update, but for now I simply press X (close) twice ...thanks for tutorial, will check it out |
Same issue here |
Lets recapitulate what we know. There are 3 pieces that might be faulty here:
I will have to leave this for someone more competent in this project to figure out or throw us to qutebrowser issues. Is there a possible reason that could run that function multiple times ...maybe on faulty exit codes that somehow only happen with qutebrowser? |
It works fine for me (opens a single tab in Firefox), but
I sprinkled a copy of the script with
For me, line 719 is attempting to run the Line 781 is where the script attempts to execute entries from the
The three attempts is just a coincidence in my case, but it does make me wonder if this is an exit code problem. Perhaps the script is actually trying (and succeeding) three times? |
It looks like @ratfactor is probably right that
At this point the differences appear:
I guess the next thing to do is figure out why qutebrowser is sometimes returning |
Investigating this further with You can demonstrate this exit code in a similar fashion outside of Vim with this (bash) command line: python -c 'import time; time.sleep(1); print("test")' 2>&1 | false ; echo ${PIPESTATUS[0]} This problem can therefore be worked around by redirecting output (which wasn't captured anyway) to Fails: :call system('xdg-open '.shellescape('https://vimwiki.github.io/').' &') Works: :call system('xdg-open '.shellescape('https://vimwiki.github.io/').' >/dev/null 2>&1 &') I've opened a PR to address this, but I would welcome feedback from the maintainers as to whether discarding output like this is appropriate or if another behavior is desired. Either way though, the problem occurs because the |
Thanks for the detailed investigation. I think this is pretty reasonable for our use case, and I've gone ahead and merged your PR. That said, when I'm more awake than I am now I'm going to double-check and make sure there's not a case where |
I just ran into this issue and managed to resolve it by removing the ampersand from the line that invokes I think the problem is likely that I use fish as my default shell. Fish probably returns a different value when launching a process in the background (vs bash). Is there any specific reason why the command is being launched in the background? |
When opening url link (in format
[[http://google.com |google]]
) with<CR>
it opens 3 tabs (copies) in my browser. My xdg-open is set to qutebrowser, but simplexdg-open "https://google.com"
opens just one. I can only conclude that it is not issue of xdg-open as well as my browser. I assume that if this was a bug it would be reported instantly so I guess i m doing something wrong...if anyone had the same issue, would appreciate some help. If i override link handler it works but i will loose link handling of normal vimwiki links, so I cant figure what to do :/Vimwiki: 2.4.1
Neovim: 0.2.2
The text was updated successfully, but these errors were encountered: