Skip to content

Commit

Permalink
Support native MacOS Dash docsets
Browse files Browse the repository at this point in the history
Without a Mac it is hard to find out where the docsets live, since it's
not documented anywhere officially. My magic crystalball [0] says that
this is likely the correct path, but we will probably never know if this
actually works.

[0] dash-docs-el/helm-dash#162 (comment)
  • Loading branch information
vimpostor committed Aug 29, 2024
1 parent 79a6de6 commit 92b1ece
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion autoload/clue/dash.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ let s:current_query = ""

func clue#dash#init()
for p in clue#dash#docset_paths()
if !isdirectory(p)
continue
endif
for d in readdir(p)
let dpath = p . '/' . d
let meta = dpath . '/meta.json'
Expand All @@ -27,7 +30,7 @@ func clue#dash#init()
endfunc

func clue#dash#docset_paths()
return [$HOME . '/.local/share/Zeal/Zeal/docsets']
return [$HOME . '/.local/share/Zeal/Zeal/docsets', $HOME . '/Library/Application Support/Dash/DocSets']
endfunc

func clue#dash#sanitize_sqlite_path(s)
Expand Down

0 comments on commit 92b1ece

Please sign in to comment.