doing 1.0.15 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d658fa240a206835bbdb13600f7b470e22038a82a73c6cd2c40b8b7f42fc92e9
4
- data.tar.gz: 1f5b03374c80f4a7c3e7a68d29ef4efdf4a77644d1ec9fa18ee464879ec7af2f
3
+ metadata.gz: 8488b18e8f56269941a0179b2c0c9699b63b0e9704d379add7a0b474c0c5b032
4
+ data.tar.gz: f94eaf8652cc1e0c0436620aee40654d9e01c10f147ccf842430416f48f73a51
5
5
  SHA512:
6
- metadata.gz: cc284a5b43cbb5442377c6595dc43dd0c25658a57d65a7239871ad01e7156b424260aee9983c3b8dee7d42fadfc57695072a53f73997841b23914d56766c513f
7
- data.tar.gz: 0c7763c8f715faa148bb7a5a5e2608d12f98497c0536cc21c633027215037fc8e08725eda301dbab3bd2d408a0bdcc727e40168208336239d3d5773971b86550
6
+ metadata.gz: b441df20808e3f6e0822236acc873032cfffe6b4c6c083f8781a714ca502442e73f8abcb6b1e1da1e912e9985016d20c2aca1c0abd1780d68f28d3718c769e53
7
+ data.tar.gz: 59e911790a16a38f98da04ab502376eef8e41232ce74456d7db2ba1fff8b9e474702d85743b76e5788b470c4a9128254990dc428d4ba60f74eb9908cccc0e9d3
data/README.md CHANGED
@@ -433,36 +433,22 @@ Example: Archive all Currently items for `@client` that are marked `@done`
433
433
 
434
434
  ## Extras
435
435
 
436
- ### Bash completion
436
+ ### Shell completion
437
437
 
438
- See the file `doing.completion.bash` in the git repository for full bash completion. Thanks to [fcrespo82](https://github.com/fcrespo82) for getting it [started](https://gist.github.com/fcrespo82/9609318).
438
+ __Bash:__ See the file [`doing.completion.bash`](https://github.com/ttscoff/doing/blob/master/doing.completion.bash) in the git repository for full bash completion. Thanks to [fcrespo82](https://github.com/fcrespo82) for getting it [started](https://gist.github.com/fcrespo82/9609318).
439
439
 
440
- ### Zsh completion
441
440
 
442
- See the file `doing.completion.zsh` in the git repository for zsh completion.
441
+ __Zsh:__ See the file [`doing.completion.zsh`](https://github.com/ttscoff/doing/blob/master/doing.completion.zsh) in the git repository for zsh completion. Courtesy of [Gabe Anzelini](https://github.com/gabeanzelini).
443
442
 
444
- ### Launchbar
443
+ __Fish:__ See the file [`doing.fish`](https://github.com/ttscoff/doing/blob/master/doing.fish) in the git repository for Fish completion. This is the least complete of all of the completions, but it will autocomplete the first level of subcommands, and your custom sections and views for the `doing show` and `doing view` commands.
445
444
 
446
- The previous incarnation of `doing` had a [LaunchBar](http://obdev.at/launchbar/) action that I used frequently. The Day One popup has mostly replaced that for me, but only because I have a system that connects it to my WWID file. However, I've still found a place for adding WWID entries without including them in my journal, and LaunchBar is the perfect way to do that for me.
445
+ ### Launchbar/Alfred
447
446
 
448
- All you need is an AppleScript saved at `~/Library/Application Support/LaunchBar/Actions/Doing.scpt`. It should look like this:
447
+ The LaunchBar action requires that `doing` be available in `/usr/local/bin/doing`. If it's not (because you're using RVM or similar), you'll need to symlink it there. Running the action with Return will show the latest 9 items from Currently, along with any time intervals recorded, and includes a submenu of Timers for each tag.
449
448
 
449
+ {% download 117 %}
450
450
 
451
- on handle_string(message)
452
- -- get the input from LaunchBar
453
- if message is "?" then
454
- -- if the input is just "?" display the last three entries
455
- set _doing to do shell script "/usr/bin/doing recent 3"
456
- tell application "LaunchBar" to display in large type _doing
457
- else
458
- -- otherwise, create a new entry using the input
459
- do shell script "/usr/bin/doing now " & quoted form of message
460
- end if
461
-
462
- end handle_string
463
-
464
-
465
- Evan Lovely has [converted this to an Alfred workflow as well](http://www.evanlovely.com/blog/technology/alfred-for-terpstras-doing/).
451
+ Evan Lovely has [created an Alfred workflow as well](http://www.evanlovely.com/blog/technology/alfred-for-terpstras-doing/).
466
452
 
467
453
  ## Troubleshooting
468
454
 
@@ -504,6 +490,14 @@ I'll try to document some of the code structure as I flesh it out. I'm currently
504
490
 
505
491
  ## Changelog
506
492
 
493
+ #### 1.0.17
494
+
495
+ - Add `--stdout` global option to send reporting to STDOUT instead of STDERR (for use with LaunchBar et al)
496
+
497
+ #### 1.0.16
498
+
499
+ - Fixes overzealous color resetting
500
+
507
501
  #### 1.0.15
508
502
 
509
503
  - CLI/text totals block was outputting when HTML output was selected
data/bin/doing CHANGED
@@ -34,6 +34,10 @@ desc 'Output notes if included in the template'
34
34
  default_value true
35
35
  switch [:notes], :default_value => true, :negatable => true
36
36
 
37
+ desc 'Send results report to STDOUT instead of STDERR'
38
+ default_value false
39
+ switch [:stdout], :default_value => false, :negatable => false
40
+
37
41
  # desc 'Wrap notes at X chars (0 for no wrap)'
38
42
  # flag [:w,:wrapwidth], :must_match => /^\d+$/, :type => Integer
39
43
 
@@ -1076,7 +1080,11 @@ end
1076
1080
  post do |global,command,options,args|
1077
1081
  # Use skips_post before a command to skip this
1078
1082
  # block on that command only
1079
- $stderr.puts wwid.results.join("\n")
1083
+ if global[:stdout]
1084
+ $stdout.print wwid.results.join("\n")
1085
+ else
1086
+ $stderr.puts wwid.results.join("\n")
1087
+ end
1080
1088
  end
1081
1089
 
1082
1090
  on_error do |exception|
@@ -1,3 +1,3 @@
1
1
  module Doing
2
- VERSION = '1.0.15'
2
+ VERSION = '1.0.17'
3
3
  end
@@ -1176,14 +1176,14 @@ EOT
1176
1176
  color['magenta'] = "\033[0;0;35m"
1177
1177
  color['cyan'] = "\033[0;0;36m"
1178
1178
  color['white'] = "\033[0;0;37m"
1179
- color['bgblack'] = "\033[0;0;40m"
1180
- color['bgred'] = "\033[0;0;41m"
1181
- color['bggreen'] = "\033[0;0;42m"
1182
- color['bgyellow'] = "\033[0;0;43m"
1183
- color['bgblue'] = "\033[0;0;44m"
1184
- color['bgmagenta'] = "\033[0;0;45m"
1185
- color['bgcyan'] = "\033[0;0;46m"
1186
- color['bgwhite'] = "\033[0;0;47m"
1179
+ color['bgblack'] = "\033[0;40m"
1180
+ color['bgred'] = "\033[0;41m"
1181
+ color['bggreen'] = "\033[0;42m"
1182
+ color['bgyellow'] = "\033[0;43m"
1183
+ color['bgblue'] = "\033[0;44m"
1184
+ color['bgmagenta'] = "\033[0;45m"
1185
+ color['bgcyan'] = "\033[0;46m"
1186
+ color['bgwhite'] = "\033[0;47m"
1187
1187
  color['boldblack'] = "\033[1;30m"
1188
1188
  color['boldred'] = "\033[1;31m"
1189
1189
  color['boldgreen'] = "\033[0;1;32m"
@@ -1192,14 +1192,14 @@ EOT
1192
1192
  color['boldmagenta'] = "\033[0;1;35m"
1193
1193
  color['boldcyan'] = "\033[0;1;36m"
1194
1194
  color['boldwhite'] = "\033[0;1;37m"
1195
- color['boldbgblack'] = "\033[0;1;40m"
1196
- color['boldbgred'] = "\033[0;1;41m"
1197
- color['boldbggreen'] = "\033[0;1;42m"
1198
- color['boldbgyellow'] = "\033[0;1;43m"
1199
- color['boldbgblue'] = "\033[0;1;44m"
1200
- color['boldbgmagenta'] = "\033[0;1;45m"
1201
- color['boldbgcyan'] = "\033[0;1;46m"
1202
- color['boldbgwhite'] = "\033[0;1;47m"
1195
+ color['boldbgblack'] = "\033[1;40m"
1196
+ color['boldbgred'] = "\033[1;41m"
1197
+ color['boldbggreen'] = "\033[1;42m"
1198
+ color['boldbgyellow'] = "\033[1;43m"
1199
+ color['boldbgblue'] = "\033[1;44m"
1200
+ color['boldbgmagenta'] = "\033[1;45m"
1201
+ color['boldbgcyan'] = "\033[1;46m"
1202
+ color['boldbgwhite'] = "\033[1;47m"
1203
1203
  color['softpurple'] = "\033[0;35;40m"
1204
1204
  color['hotpants'] = "\033[7;34;40m"
1205
1205
  color['knightrider'] = "\033[7;30;40m"
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.15
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brett Terpstra