sunaku / vim-dasht

:information_desk_person: (Neo)Vim plugin for dasht integration
https://github.com/sunaku/dasht
133 stars 4 forks source link

specify docset to search #15

Open laoshaw opened 4 years ago

laoshaw commented 4 years ago

I use markdown with many code snippets in the code block, can I do something like what dasht command line or zeal can do under vim:

Dasht atoi C for atoi in C, or Dasht delete Javascript for delete in JS while I'm editing a markdown file?

sunaku commented 4 years ago

The simplest way is to use the :Dasht! command (with a bang !) to search all of your installed docsets. Or if you only want to search specific docsets, you can call the dasht#search() function:

call dasht#search('atoi', '^c$')
call dasht#search('delete', 'javascript')
call dasht#search('integer', ['javascript', '^c$'])