README.md in pinpress-1.5.0 vs README.md in pinpress-1.5.1
- old
+ new
@@ -40,11 +40,11 @@
SYNOPSIS
pinpress [global options] command [command options] [arguments...]
VERSION
- 1.4.2
+ 1.5.1
GLOBAL OPTIONS
--help - Show this message
--version - Display the program version
@@ -376,33 +376,47 @@
link-mash (15),app (2),ios (3),productivity (1),launch-center-pro (1),drafts (2),
```
# Other Configuration Options
+## Global Keys
+
You can place special keys in the `pinpress` section of `~/.pinpress` to
automate some actions:
```yaml
pinpress:
# ...other keys...
- # The default `pins` template to use
+ # The default pins template to use
default_pin_template
- # The default `tags` template to use
+ # The default tags template to use
default_tag_template
- # The default tags to be used when running `pinpress pins`
- default_tags: ['tag1', 'tag2']
+ # ...other keys...
+```
- # The tags to that are removed from the results when running `pinpress tags`
- ignored_tags: ['bad-tag', 'bad-tag2']
+## Template Keys
- # The default number of results to return
- default_num_results: 5
+Individual templates can carry some special keys, too:
- # ...other keys...
+```yaml
+pin_templates:
+ - template_name:
+ # ...other keys...
+
+ # The default tags to be used when running `pinpress pins`
+ default_tags: ['tag1', 'tag2']
+
+ # The tags to that are removed from the results when running `pinpress tags`
+ ignored_tags: ['bad-tag', 'bad-tag2']
+
+ # The default number of results to return
+ default_num_results: 5
+
+ # ...other keys...
```
Do note:
* The `default_tags` key is overridden by the `-t` flag.
@@ -417,41 +431,29 @@
---
pinpress:
config_location: "/Users/abach/.pinpress"
default_pin_template: pinpress_default
default_tag_template: pinpress_default
- default_tags: ['link-mash']
- ignored_tags: ['buffer']
log_level: WARN
- version: 1.4.0
+ version: 1.5.0
api_token: bachya:1234567890987654321
pin_templates:
- pinpress_default
- opener: >
- <em>The weekly Link Mash is a curated selection of tools, stories, and
- other links that I found during my travels on the web. All of my curated
- links can be found on <a title="Bachya's Pinboard: Link Mash"
- href="https://pinboard.in/u:bachya/t:link-mash/" target="_blank">
- my Pinboard</a>; you can also find the Link Mash archives <a
- href="http://www.bachyaproductions.com/tag/link-mash/">here</a>.
- </em>
- <ul>
- item: >
- <li>
- <b><a title="<%= description %>" href="<%= href %>" target="_blank">
- <%= description %></a>.</b>
- <%= extended %>
- </li>
- closer: >
- </ul>
- <hr/>
- <em>This Link Mash was generated by <a title="PinPress"
- href="https://github.com/bachya/pinpress" target="_blank">PinPress</a>,
- a simple tool to generate text templates from <a title="Pinboard"
- href="https://pinboard.in" target="_blank">Pinboard</a> data.</em>"
+- pinpress_default:
+ opener: |
+ <em>The weekly Link Mash is a curated selection of tools, stories, and other links that I found during my travels on the web. All of my links can be found on <a title="Bachya's Pinboard: Link Mash" href="https://pinboard.in/u:bachya/t:link-mash/" target="_blank">my Pinboard</a>; you can also find the Link Mash archives <a href="http://www.bachyaproductions.com/tag/link-mash/">here</a>.</em><ul>
+ item: |
+ <li><b><a title="<%= description %>" href="<%= href %>" target="_blank"><%= description %></a>.</b> <%= extended %></li>
+ closer: |
+ </ul><hr/><em>This Link Mash was generated by <a title="PinPress" href="https://github.com/bachya/pinpress" target="_blank">PinPress</a>, a simple tool to generate text templates from <a title="Pinboard" href="https://pinboard.in" target="_blank">Pinboard</a> data.</em>
+ last_run: '2014-05-20T15:22:10Z'
+ default_tags:
+ - link-mash
+ ignored_tags:
+ - buffer
tag_templates:
- pinpress_default
+- pinpress_default:
item: "<%= tag %>,"
+ last_run: '2014-05-20T15:22:10Z'
```
# Known Issues & Future Releases
Check out the Pinpress roadmap via the