Skip to content

Commit

Permalink
Use the shortform dash-plugin URI scheme
Browse files Browse the repository at this point in the history
This works around some URL scheme parsing bug in KDE Plasma [0], where
using "dash://" or "dash-plugin://" fails. To workaround this bug, we
now instead opt for "dash-plugin:".

Additionally this also allows to optionally suppress activation in the
future [1].

[0] zealdocs/zeal#471
[1] KabbAmine/zeavim.vim#32
  • Loading branch information
vimpostor committed Aug 24, 2024
1 parent 2030f2b commit 9ffb90c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/clue/dash.vim
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ endfunc

func clue#dash#query_external(s)
" TODO: URI encode s
call system(printf("xdg-open dash://%s", a:s))
call system(printf("xdg-open 'dash-plugin:query=%s'", a:s))
endfunc

func clue#dash#open_external(doc, query)
Expand Down

0 comments on commit 9ffb90c

Please sign in to comment.