https://github.com/bfontaine/expd
:paperclip: Expand text snippets on the command-line
https://github.com/bfontaine/expd
cli ruby snippets tool
Last synced: about 1 year ago
JSON representation
:paperclip: Expand text snippets on the command-line
- Host: GitHub
- URL: https://github.com/bfontaine/expd
- Owner: bfontaine
- License: mit
- Created: 2016-02-07T22:12:30.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2019-01-09T16:01:09.000Z (over 7 years ago)
- Last Synced: 2025-04-10T06:20:46.898Z (about 1 year ago)
- Topics: cli, ruby, snippets, tool
- Language: Ruby
- Size: 12.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Expd
[](https://travis-ci.org/bfontaine/expd)
[](http://badge.fury.io/rb/expd)
[](http://inch-ci.org/github/bfontaine/expd)
**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
```sh
# 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.