Jump to content
dhoulb

Generate snippets from a spreadsheet

Recommended Posts

Hi everyone! I built something and wanted to let you know :D 

 

I wanted to make some snippets for HTML entities (I know there are some databases available, but I wanted to customise some of the keywords to my own liking).

 

I searched online for something that would let me maintain a spreadsheet and convert that into the .alfredsnippet format. Found a few Python scripts but I wanted something simpler, so I built a quick in-browser that lets you copy a bunch of spreadsheet cells (copied cells are in TSV format), paste it into a big ol' textarea, and it'll generate/download the .alfredsnippets file for you :)

 

The tool itself is here:

https://rawgit.com/dhoulb/alfred-snippet-generator/master/index.html

 

The source code etc is here if you're that kinda gal:

https://github.com/dhoulb/alfred-snippet-generator

 

Let me know if you find it useful. Should make it tonnes easier to build/maintain large sets of snippets. I'm thinking a full set of Emoji snippets (should be easy enough to pull from this database), and a full set of character entity characters.

 

In addition because TextExpander can export as CSV, this will make it easy to convert those to Alfred instead (no need to run a script, just copy/paste).

 

Dave

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...