Skip to content
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

Add option to remote trigger Dash on non-macOS systems #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion autoload/dash.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,13 @@ function! s:search(term, keywords) "{{{
let activation = ''
endif
let url = 'dash-plugin://' . shellescape(keys . query . activation)
silent execute '!open -g ' . url

if exists('g:dash_remote_domain')
silent execute '!ssh ' . d:dash_remote_domain . ' "open -g' . url . '"'
else
silent execute '!open -g' . url
endif

redraw!
endfunction
"}}}
Expand Down
2 changes: 1 addition & 1 deletion plugin/dash.vim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if exists('loaded_dash') || &compatible || v:version < 700
finish
endif

if !has('unix') " OS X's vim and MacVim have this feature
if !has('unix') && !exists('g:dash_remote_domain') " OS X's vim and MacVim have this feature
finish
endif
let loaded_dash = 1
Expand Down