Project

expd

0.0
No commit activity in last 3 years
No release in over 3 years
Expand text snippet from simple shortcuts on the command-line
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.8
~> 10.5
~> 0.11
~> 2.5

Runtime

~> 2.1
 Project Readme

Expd

Build Status Gem Version Inline docs

Expd is a command-line text expander tool.

It lets you associate short words with arbitrarily long texts, and expand them in your clipboard (use --no-copy if you don’t want that).

Install

gem install expd

Usage

# add a snippet
echo "This is my long text" | expd -a txt

# use it
expd txt

Use expd -h for more info.

Support

Only Linux and OS X are supported for now; feel free to open a pull-request if you want to add Windows support!

This is tested on Ruby 1.9.3+.

Configuration

Snippets are stored in a YAML file located at ~/.expd_snippets. You can edit it yourself if you need to. The snippets are stored in a hash under the :snippets key. Each key in the hash is a word and its value the expanded text.