todo.rb 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,8 +13,8 @@ elsif ARGV[0] == '-v'
13
13
  require 'todo.rb/version'
14
14
  puts TodoRb::VERSION
15
15
  exit
16
- elsif ARGV[0] == '-h'
17
- puts "The guide is located at\nhttp://danchoi.github.com/todo.rb/"
16
+ elsif ARGV[0] =~ /^--?h/
17
+ require 'todo.rb/help'
18
18
  exit
19
19
  end
20
20
 
@@ -52,6 +52,10 @@ elsif command == 'revert' && args.empty?
52
52
  t.revert
53
53
  elsif command == 'diff' && args.empty?
54
54
  t.diff
55
+ elsif command == 'pri' && args[0] =~ /^\d+$/
56
+ t.ed_command! "#{args[0]}s/$/!/\nm0"
57
+ elsif command == 'depri' && args[0] =~ /^\d+$/
58
+ t.ed_command! "#{args[0]}s/!//"
55
59
  elsif command.nil?
56
60
  t.catn
57
61
  else
@@ -0,0 +1,36 @@
1
+ puts <<END
2
+
3
+ todo.rb
4
+
5
+ The full guide is located at\nhttp://danchoi.github.com/todo.rb/
6
+
7
+ todo.rb operates in the current working directory. It will create a todo.txt
8
+ and done.txt file to store tasks.
9
+
10
+ The following assumes that `alias t=todo.rb` is in effect.
11
+ A [tag] may be a @context or a +project.
12
+
13
+ t [tag] [task text] append a task with tag
14
+ t show tasks
15
+ t done show done tasks
16
+ t do [task number] move a task to the done.txt
17
+ t undo [task number] move a task from done.txt to todo.txt
18
+ t [tag] filter tasks by tag
19
+ t pri [task number] prioritize a task
20
+ t unpri [task number] deprioritize a task
21
+ t ! show high priority tasks
22
+ t ! [tag] show high priority tasks for a tag
23
+ t report show task report
24
+ t all list all incomplete and done tasks
25
+ t all [tag] ditto, but filter by tag
26
+
27
+
28
+ Tag colors can be customized in colors.yml. It may look something like this.
29
+
30
+ priority: fuchsia
31
+ context: FF69B4
32
+ project: FFEBCD
33
+ @harvardsq: DDAA00
34
+
35
+
36
+ END
@@ -1,3 +1,3 @@
1
1
  class TodoRb
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: todo.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
16
- requirement: &70168786588360 !ruby/object:Gem::Requirement
16
+ requirement: &70300453875020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.6.11
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70168786588360
24
+ version_requirements: *70300453875020
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: color-tools
27
- requirement: &70168786587700 !ruby/object:Gem::Requirement
27
+ requirement: &70300453874240 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '1.3'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70168786587700
35
+ version_requirements: *70300453874240
36
36
  description: ed-like todo list manager
37
37
  email:
38
38
  - dhchoi@gmail.com
@@ -53,6 +53,7 @@ files:
53
53
  - lib/colorizer.rb
54
54
  - lib/html.rb
55
55
  - lib/todo.rb.rb
56
+ - lib/todo.rb/help.rb
56
57
  - lib/todo.rb/version.rb
57
58
  - todo.rb.gemspec
58
59
  - todotxt/todo.cfg