Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhchabran/csv2alfredsnippets
Convert CSV describing snippets to Alfred snippets format
https://github.com/jhchabran/csv2alfredsnippets
alfred golang snippets
Last synced: 21 days ago
JSON representation
Convert CSV describing snippets to Alfred snippets format
- Host: GitHub
- URL: https://github.com/jhchabran/csv2alfredsnippets
- Owner: jhchabran
- License: mit
- Created: 2019-09-07T12:26:30.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2019-09-08T16:18:04.000Z (about 5 years ago)
- Last Synced: 2023-04-14T22:26:53.049Z (over 1 year ago)
- Topics: alfred, golang, snippets
- Language: Go
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# csv2alfredsnippets
A small script that converts snippets formatted in CSV to Alfred 3 snippets format. Mostly useful to programmatically
generate snippets.## Getting started
### Prerequisites
Go >= 1.11 is installed on your system.
### Installing
```shell
GO111MODULE=off go get -u github.com/jhchabran/csv2alfredsnippets
```### Running
```shell
csv2alfredsnippets snippets.csv snippets.alfredsnippets
```## CSV format
- `name`
- what Alfred will display to describe the snippet
- `keyword`
- what you need to type to trigger the snippet
- `snippet`
- what it will expand to| name | keyword | snippet |
| ---- | ------- | ------- |
| My address | myaddr | 123 somewhere, 4567 Internet |
| Bob weird github | gh:bob | @that_weird_github_handle |:arrow_down: Raw csv
```csv
My address,myaddr,123 somewhere 4567 Internet
Bob weird github,gh:bob,@that_weird_github_handle
```:bulb: _Having the name show somehow the keyword is helpful to learn it overtime_.
## License
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details