doing 1.0.85 → 1.0.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f11196376a7860f14164c80a107ce4151b18399f785cd607ba4f3a27205828fb
4
- data.tar.gz: 1033e528416e1e3660db44ae55973009aa9b766f2566c0ff6e4bb942fdce4c05
3
+ metadata.gz: 2af84d93e54c8366719e285303dc11d966f9b83361ae4ac20ca172536465f4ee
4
+ data.tar.gz: 7fa72f0ec1ba1a18e45d80c1604910cabb00c8dad485b96d05bd8c3e33a5b4ae
5
5
  SHA512:
6
- metadata.gz: db7dc195eedf329ec7aad7e29830cf0d42c57178570a4675ce607e29761f733d2371b390f8c8ea73425a86240a28a91f7e05842ad9b49dd89257affbca12e5e6
7
- data.tar.gz: 2b992ffea5a41c6f81ab7b5b1fb9b244197cca7eb1d7bbbae1eb6f9911db6ee16293b19e32c8c0b31cd03a3e181c4df9f8e1de893cc37c479fa2bdfd4accf6c4
6
+ metadata.gz: 158707f75c6375fb5d684457d0b17c874fb2dc0f9b2e5318a24f055665ed246e69149211fb45487acac2174b2ca9db6ebd62b071af0c283377d5e2fa78f663c2
7
+ data.tar.gz: 80bf8ff4da513c0d911afdf5bbeb2589f6a08bf46eb746c5eb610f5ddac1bdc7d7469f1f3eb399e86c4a671358df704c98596841c2f8964d3f81ebe985de1435
data/README.md CHANGED
@@ -27,7 +27,7 @@ If there's something I want to look at later but doesn't need to be added to a t
27
27
 
28
28
  ## Installation
29
29
 
30
- The current version of `doing` is <!--VER-->1.0.84<!--END VER-->.
30
+ The current version of `doing` is <!--VER-->1.0.85<!--END VER-->.
31
31
 
32
32
  $ [sudo] gem install doing
33
33
 
@@ -92,6 +92,7 @@ A basic configuration looks like this:
92
92
  date_format: '%_I:%M%P'
93
93
  template: '%date > %title%odnote'
94
94
  wrap_width: 50
95
+ count: 10
95
96
  autotag:
96
97
  whitelist:
97
98
  - coding
@@ -239,6 +240,8 @@ and output my recent entries like this:
239
240
 
240
241
  $
241
242
 
243
+ The recent template can include a `count` key to specify the number of entries shown when run without an argument. Default is 10.
244
+
242
245
  ### Custom views
243
246
 
244
247
  You can create your own "views" in the `~/.doingrc` file and view them with `doing view view_name`. Just add a section like this:
data/bin/doing CHANGED
@@ -1097,7 +1097,12 @@ command :recent do |c|
1097
1097
  section = wwid.guess_section(options[:s]) || options[:s].cap_first
1098
1098
 
1099
1099
  unless global_options[:version]
1100
- count = args.empty? ? 10 : args[0].to_i
1100
+ if wwid.config['templates']['recent'].key?('count')
1101
+ config_count = wwid.config['templates']['recent']['count'].to_i
1102
+ else
1103
+ config_count = 10
1104
+ end
1105
+ count = args.empty? ? config_count : args[0].to_i
1101
1106
  options[:t] = true if options[:totals]
1102
1107
  options[:sort_tags] = options[:tag_sort] =~ /^n/i
1103
1108
  tags_color = wwid.config.key?('tags_color') ? wwid.config['tags_color'] : nil
data/lib/doing/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Doing
2
- VERSION = '1.0.85'
2
+ VERSION = '1.0.86'
3
3
  end
data/lib/doing/wwid.rb CHANGED
@@ -124,7 +124,8 @@ class WWID
124
124
  @config['templates']['recent'] ||= {
125
125
  'date_format' => '%_I:%M%P',
126
126
  'template' => '%shortdate: %title (%section)',
127
- 'wrap_width' => 88
127
+ 'wrap_width' => 88,
128
+ 'count' => 10
128
129
  }
129
130
  @config['views'] ||= {
130
131
  'done' => {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.85
4
+ version: 1.0.86
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra