dash.vim icon indicating copy to clipboard operation
dash.vim copied to clipboard

Crossplatform support?

Open nebloc opened this issue 4 years ago • 1 comments

Hey,

Was wondering if you would be open to adding logic along the lines of:

let g:doc_reader = 'zeal' " 
if has('macunix') " Use Mac's open to launch Dash
  let g:doc_reader = 'open -g'
endif

and then change the s:search to

silent execute '!' . g:doc_reader . url

Then the plugin would work with Zeal on Linux (and possibly Windows?).

Happy to submit a PR but my vimscript needs work and although my changes work, I'm sure there is a better way of doing the above! :laughing:

nebloc avatar Mar 31 '20 17:03 nebloc

This might work for windows with velocity - https://github.com/rizzatti/dash.vim/pull/62. Can add code to support zeal on Linux as well.

praveendhawan avatar Aug 03 '20 04:08 praveendhawan