Some Quick Tips for Using Dash
I love dash. It allows me easy access to documentation to different programming languages and frameworks, without needing to be online. And it allows me to easily search for the documentation. This means I can work anytime, anywhere on most of my projects.
This is a quick post about the things I use dash for on an everyday basis.
Built in snippet manager
I have a couple of snippets I use again and again. The most commonly used is my userstory snippet. I start it by writing the word Userstory in any text application - and opens a little box for me.
This makes it easy for me to type in userstories that adhere to the rules. “As a website visitor I want more to know more about dash so that I also can be awesome”
A word of warning though - if you have a snippet for something and its abbreviation is something too common - it will expand everytime you write that string. (So prefix something like that, with something very uncommon like a backtick or a double comma)
Any hardcore users of dash will at some point run into that they have too many docsets for it to be useful when searching across all docsets. (If you prefix your searches with keywords all the time, fair enough … However I find that this is too much typing for most cases).
Vim plugin code
His original code would search dash for the word under the cursor when you typed leader+d. I decided to have a bit more context, so I added the current filetype as a prefix. For most of the things I work on - that will narrow the search down to one docset - one some things I have made my own prefixes - to get a bit more results (e.g. html includes bootstrap and foundation, and most templating languages are mapped to that same set of docsets)
Add this to your .vimrc for instant dash searching from vim.