Commit Graph

170 Commits

Author SHA1 Message Date
Abraham Toriz 28f041831b
set columns in t list 2021-07-15 11:48:33 -05:00
Abraham Toriz e703db5189
fix a display test 2021-07-15 11:17:50 -05:00
Abraham Toriz 7007a58df0
formatters::text now uses module tabulate 2021-07-15 11:16:17 -05:00
Abraham Toriz 676dd5f638
finish the tabulate module 2021-07-15 10:33:02 -05:00
Abraham Toriz f04bf6bb1f
support data with line breaks 2021-07-15 09:40:37 -05:00
Abraham Toriz c83552af61
adequate tabulate tests 2021-07-15 00:33:58 -05:00
Abraham Toriz 4116e77a68
abstracting a tabulate module 2021-07-15 00:22:38 -05:00
Abraham Toriz bd6ef57b56
begin with the list command 2021-07-14 12:37:45 -05:00
Abraham Toriz 067aeae0fe
solve some warnings in sheet 2021-07-14 12:37:08 -05:00
Abraham Toriz b20b138ea5
fix an introduced bug 2021-07-13 17:54:20 -05:00
Abraham Toriz 74e9b164c5
give a more detailed error in this case 2021-07-13 17:53:48 -05:00
Abraham Toriz faef02d0a9
handle the error of the malformed time in database 2021-07-13 17:07:07 -05:00
Abraham Toriz 9d6a17b622
replace command with subcommand 2021-07-13 09:11:51 -05:00
Abraham Toriz bcdad1e138
remove a name 2021-07-13 09:11:29 -05:00
Abraham Toriz c3e96a8096
manage t w for begining of week different than monday 2021-07-10 19:08:16 -05:00
Abraham Toriz 0f8ff24d44
add mock subcommand resume 2021-07-10 14:17:59 -05:00
Abraham Toriz 3e67ea0a44
month command accepts current as month 2021-07-10 14:17:20 -05:00
Abraham Toriz 4e0decfd35
a test for later 2021-07-10 13:21:15 -05:00
Abraham Toriz 5ce3de7b6b
implement the month command 2021-07-10 13:20:42 -05:00
Abraham Toriz f5f6a44a4e
implement month command 2021-07-07 13:52:40 -05:00
Abraham Toriz 4154b59310
implement week command 2021-07-07 13:44:19 -05:00
Abraham Toriz 274152932f
add as tests some missing things 2021-07-07 13:43:42 -05:00
Abraham Toriz 763049e7a9
update cli on defining custom formats 2021-07-07 12:12:42 -05:00
Abraham Toriz 99888248e9
refactor main.rs to make it easier to read and extend 2021-07-07 12:10:57 -05:00
Abraham Toriz 07fa6d4f05
a better way of converting between timezones 2021-07-07 11:58:28 -05:00
Abraham Toriz c512e43c96
add yesterday command 2021-07-07 11:58:13 -05:00
Abraham Toriz 72b586d04d
add database tests and solve like 5 bugs 2021-07-07 11:54:18 -05:00
Abraham Toriz 91b98ed6e5
add support for --grep 2021-07-07 10:49:29 -05:00
Abraham Toriz 1bcf09c1f9
namestpace this functions inside display command 2021-07-07 07:19:55 -05:00
Abraham Toriz 1e33117660
today command and refactoring 2021-07-06 22:52:20 -05:00
Abraham Toriz f0e6a2b47d
finish human time parsing 2021-07-05 12:14:09 -05:00
Abraham Toriz 1b34ab89af
remove debug line 2021-07-03 18:20:35 -05:00
Abraham Toriz 7ef5c7be95
create config file and database if they dont exist 2021-07-03 18:17:26 -05:00
Abraham Toriz 1170b39893
abbreviated times 2021-07-03 15:53:56 -05:00
Abraham Toriz 94443e1656
a handful of human formats 2021-07-02 20:40:06 -05:00
Abraham Toriz 253aa0ed99
parse dates and times precisely 2021-07-02 18:34:34 -05:00
Abraham Toriz a56df91b58
some date parsing magic 2021-07-02 10:07:07 -05:00
Abraham Toriz 4980b3df67
simpler syntax 2021-07-01 23:44:54 -05:00
Abraham Toriz 4007983cba
start with the sheet command 2021-07-01 23:44:38 -05:00
Abraham Toriz 3dfefedb75
introducing the timeparse module 2021-07-01 23:44:09 -05:00
Abraham Toriz 9112e7f3cf
properly display notes with accents 2021-07-01 11:45:04 -05:00
Abraham Toriz 52c70d6f66
correctly identify when format is csv 2021-06-30 19:36:08 -05:00
Abraham Toriz fdc45cea3f
allow to filter by start and end 2021-06-30 19:20:10 -05:00
Abraham Toriz 5062a7b699
add csv formatter 2021-06-30 18:51:34 -05:00
Abraham Toriz 91a99ed5ea
database adjustments and migrations 2021-06-30 18:51:02 -05:00
Abraham Toriz 3505ee396c
ignore some tests for now 2021-06-30 13:31:38 -05:00
Abraham Toriz 6d6eeead55
organize formatters into their own files 2021-06-30 13:27:42 -05:00
Abraham Toriz af2a18c8db
local timezone and timetrap database management 2021-06-29 18:20:51 -05:00
Abraham Toriz bd10e8582a
test display with old databases 2021-06-29 12:04:54 -05:00
Abraham Toriz 2e06994314
something else to test for command::in 2021-06-29 12:03:25 -05:00
Abraham Toriz c7de36e3f8
pass stderr to commands 2021-06-29 12:02:33 -05:00
Abraham Toriz d8cd301888
extract pretty string to a module 2021-06-29 12:01:51 -05:00
Abraham Toriz cfcc514fa3
dont issue trailing whitespaces 2021-06-29 07:20:52 -05:00
Abraham Toriz 5d3b50d552
get the actual terminal width 2021-06-28 23:40:41 -05:00
Abraham Toriz e59211f1f9
display the text of long notes nicely 2021-06-28 19:32:29 -05:00
Abraham Toriz 2ebe0a40a4
ids can be show 2021-06-25 14:05:35 -05:00
Abraham Toriz caf7f900f8
adjustments for the other format cases 2021-06-25 13:56:48 -05:00
Abraham Toriz 950adfbe44
correctly format long durations and long dates 2021-06-25 13:44:40 -05:00
Abraham Toriz fc5698dcfd
set the time format 2021-06-25 11:28:15 -05:00
Abraham Toriz 3e71413815
handle millis in output 2021-06-24 09:02:28 -05:00
Abraham Toriz be406d9211
pass first output test 2021-06-24 00:28:10 -05:00
Abraham Toriz 4d48386777
give up own time module, progress on display command 2021-06-24 00:07:52 -05:00
Abraham Toriz 464925a8b6
move time to its own module 2021-06-22 11:30:41 -05:00
Abraham Toriz 06ed433e15
use itertools to group entries by sheet 2021-06-22 11:28:01 -05:00
Abraham Toriz 79afcaed89
use a pretty assertion 2021-06-22 10:20:43 -05:00
Abraham Toriz 62efba19b9
get entries sorted by date 2021-06-22 10:17:15 -05:00
Abraham Toriz bfe80c10e1
display all, full, sheet and current active 2021-06-21 19:54:10 -05:00
Abraham Toriz a29c3c40ab
be able to query entries 2021-06-21 17:38:51 -05:00
Abraham Toriz 47f4086c59
progress in database management 2021-06-21 11:12:30 -05:00
Abraham Toriz 1655803076
a good start for this project 2021-06-18 11:27:19 -05:00