intent 0.1.6 → 0.1.8

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
  SHA1:
3
- metadata.gz: ce0b88fd80778617997ce2f5fad117a7446684a8
4
- data.tar.gz: 51d22691339272b86187ae85938bcf94fb129291
3
+ metadata.gz: d696340aa9aef660a8ab8c1c8f8023d5df0ee9d0
4
+ data.tar.gz: 60963652a95ca8293760041c7774c59b76213803
5
5
  SHA512:
6
- metadata.gz: 3831a0bac8af5cf9eab8e23eb293381067609d5838c5267760525fb6d7f281fb8f9ac8045df7fa090d98872c471e3c259bd97d174549987ffc2e2c2cdf493419
7
- data.tar.gz: 4ef8977e5606a1795e5165b81db9d61a8354bc309b4affa07fdbe845fbe0a26773c6f821fdf642084c1cea9b854439d168b221284ea7172d7900b917c7a6df91
6
+ metadata.gz: b7abd8619a7d59a7d9e6d28343630daafb8005668b7de21c17d748cc6a48261e8a6150f814f926bcea1cd14fa6c092ac7f8e71ddedd1a3dbfcecd158d865eac3
7
+ data.tar.gz: 6ede8e38e565675fd193326dfb3aea81387c5ef2e7fe05236dec0e89b8e4753cfa23a97e65089bf605fb4d13f5dd60cd98128a5a8b6e0489d0ae799b0de73eaa
@@ -18,6 +18,8 @@ module Intent
18
18
  input = STDIN.readline.chop
19
19
  list.unshift(Task.new("#{Date.today} #{input}")) if input
20
20
  list.save!
21
+ when :edit
22
+ exec("#{ENV['EDITOR']} #{ENV['TODO_TXT']}")
21
23
  when :list
22
24
  filtered_list = list.by_not_done
23
25
 
@@ -55,6 +57,10 @@ module Intent
55
57
  puts "No tasks found."
56
58
  end
57
59
  end
60
+ when :projects
61
+ puts list.inject([]) { |p, t| p.concat t.projects }.uniq
62
+ when :contexts
63
+ puts list.inject([]) { |c, t| c.concat t.contexts }.uniq
58
64
  when :archive
59
65
  archive_path = File.dirname(ENV['TODO_TXT'])
60
66
  done_file = "#{archive_path}/__done__.txt"
@@ -94,6 +100,8 @@ module Intent
94
100
  puts "todo list - list all items in the list"
95
101
  puts "todo add - add a new task to the list"
96
102
  puts "todo focus - find focus by randomly selecting a task"
103
+ puts "todo projects - list all project tags in the list"
104
+ puts "todo contexts - list all context tags in the list"
97
105
  puts "todo archive - archive completed tasks in the nearest `done.txt`"
98
106
  end
99
107
  end
@@ -1,3 +1,3 @@
1
1
  module Intent
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: intent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Rickerby
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-22 00:00:00.000000000 Z
11
+ date: 2016-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: todo-txt