Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

A small script to convert text replacement plists to .alfredsnippets files

License

Notifications You must be signed in to change notification settings

lumaxis/plist-to-alfredsnippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This has been replaced by Macmoji's Alfred support


In case you're lazy, simply download a pre-built version from here.

I recently stumbled upon Macmoji which provides a .plist file that you can use to import text replacement snippets into macOS's settings that give you Slack-style emoji usage across your Mac. Since I'm not a big fan of the default text replacement system and use Alfred's Snippets and Text Expansion feature instead.

This Ruby script allows to convert a plist like the one provided on Macmoji to be converted to a .alfredsnippets file which can then be imported into Alfred 🚀

Finished result in Alfred

Usage

To always use the latest and greatest .plist from simply run this command:

ruby plist-to-alfredsnippets.rb -p https://raw.githubusercontent.com/warpling/Macmoji/master/emoji%20substitutions.plist

Alternatively, you can use the -p option to specify any location for the .plist you want:

ruby plist-to-alfredsnippets.rb -u samples/emoji\ substitutions.plist

This script currently does no error handling at all and only handles only my specific use case well. Feel free to improve it, PRs welcome!

About

A small script to convert text replacement plists to .alfredsnippets files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages