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 +4 -4
- data/lib/intent/todo/manager.rb +8 -0
- data/lib/intent/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d696340aa9aef660a8ab8c1c8f8023d5df0ee9d0
|
4
|
+
data.tar.gz: 60963652a95ca8293760041c7774c59b76213803
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7abd8619a7d59a7d9e6d28343630daafb8005668b7de21c17d748cc6a48261e8a6150f814f926bcea1cd14fa6c092ac7f8e71ddedd1a3dbfcecd158d865eac3
|
7
|
+
data.tar.gz: 6ede8e38e565675fd193326dfb3aea81387c5ef2e7fe05236dec0e89b8e4753cfa23a97e65089bf605fb4d13f5dd60cd98128a5a8b6e0489d0ae799b0de73eaa
|
data/lib/intent/todo/manager.rb
CHANGED
@@ -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
|
data/lib/intent/version.rb
CHANGED
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.
|
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
|
11
|
+
date: 2016-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: todo-txt
|