forked from DanielVF/d-time-tracker
-
Notifications
You must be signed in to change notification settings - Fork 4
/
todo
41 lines (30 loc) · 1.21 KB
/
todo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
make quotes optional
$ t
You're not working on anything.
You finished "#{last_task}" at 3:23pm (12 minutes ago)
add filtering:
-e PATTERN, --regexp=PATTERN
t --list --from "one week ago" -e "@work"
items that start in one day and end in another are logged with a date string and stored in the file they started in => solution: store full date string in CSV (timezones and everything)
t --list should show the current task (with an indicator that it's ongoing)
~/Downloads% t
You're not working on anything
~/Downloads% t -s
/Users/cgenco/.rvm/gems/ruby-1.9.3-p0/gems/t_time_tracker-0.0.0/bin/t_time_tracker:133:in `finish_current_task': undefined method `[]=' for nil:NilClass (NoMethodError)
Dropbox/Projects/t_time_tracker[master*]% t nap -f "10am" -t "11:50"
Started: nap (at 10:00am)
(should print out "finished")
$ t working
Started: working (1:00pm)
$ t /generating report for John
Continuing: working (2:00)
Started: generating report for John (2:00pm)
$ t /making
update readme to be more marketable:
* to-done list
* a log file for your life
* "where did my day go?"
Mobile app? (json input?)
test run with:
ruby -Ilib ./bin/t_time_tracker
gem build t_time_tracker.gemspec && gem install ./t_time_tracker-0.0.0.gem