Arroon / vimwiki

Automatically exported from code.google.com/p/vimwiki
0 stars 1 forks source link

xdg-open hyperlinks does not work in gvim #401

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Load wiki with external hyperlinks into linux gvim
2. follow hyperlink
3. nothing happens

What is the expected output? What do you see instead?
i'd like to see url opened in my browser.

What version of the product are you using? On what operating system?
vimwiki 2.0.1, gui vim 7.3, linux mint 14

Please provide any additional information below.

It can be fixed easily by changing linux_handler in base.vim to run xdg-open in 
background:

  function! s:linux_handler(url)
    execute 'silent !xdg-open ' . shellescape(a:url, 1) . '>&/dev/null &'
  endfunction

Original issue reported on code.google.com by andv...@gmail.com on 2 Mar 2013 at 4:35

GoogleCodeExporter commented 8 years ago
Thanks! I believe this is fixed in the current vimwiki... Looks very like the 
Issue 381. Could you check it?

Original comment by habamax on 3 Mar 2013 at 5:29

GoogleCodeExporter commented 8 years ago
oh, sorry, missed it because I use vim-scripts repository version. It works 
fine, thanks. But I guess redirecting stdout and stderr to /dev/null wouldn't 
hurt though.

Original comment by andv...@gmail.com on 3 Mar 2013 at 1:18