/dash-snippets

My Dash snippets, and a utility for adding all the Emoji as shortcuts

Primary LanguageRubyMIT LicenseMIT

Dash Snippets

Setup

> git clone https://github.com/streeter/dash-snippets.git
> cd dash-snippets
> bundle install
> echo "DASH_SNIPPET_PATH=~/path/to/snippets.dash" > .env
> rake dash:dump

Make sure to setup the DASH_SNIPPET_PATH environment variable.

Installing Snippets

Run the rake task to build all the snippets inside of the Dash database:

> rake dash:build

Emoji

You can create and update the system-wide emoji snippets in Dash using the update_emoji.py script. This script reads the .json file inside of emojilib node installed package , and then exports .toml files that the rake dash:build task reads. npm install and then run update_emoji.py to populate the new emoji.

Credits

Code adopted from @tbpgr's dash_snippets_builder repository.