Allow Powershell to open links in Windows
This commit is contained in:
parent
2941913ccc
commit
bf2039555a
@ -228,7 +228,11 @@ function! vimwiki#base#system_open_link(url) "{{{
|
|||||||
else
|
else
|
||||||
let url = shellescape(a:url, 1)
|
let url = shellescape(a:url, 1)
|
||||||
endif
|
endif
|
||||||
execute 'silent ! start "Title" /B ' . url
|
if &l:shell ==? "powershell"
|
||||||
|
execute 'silent ! start ' . a:url
|
||||||
|
else
|
||||||
|
execute 'silent ! start "Title" /B ' . a:url
|
||||||
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
function! s:macunix_handler(url)
|
function! s:macunix_handler(url)
|
||||||
call system('open ' . shellescape(a:url).' &')
|
call system('open ' . shellescape(a:url).' &')
|
||||||
|
Loading…
Reference in New Issue
Block a user