diff --git a/README.md b/README.md index 5c4988b..f3674ed 100644 --- a/README.md +++ b/README.md @@ -4,17 +4,28 @@ A [Timewarrior](https://timewarrior.net/) report script that will help you organ This project was inspired by the venerable Emacs org-mode and its built-in clock tables. The goal is to create some of those features for Timewarrior. +![A screenshot of billable](./screenshot.png) + Requires Nim with Nimble, version 1.6.6 or compatible. Version 0.1.0 ## Contents -1. Getting Started -2. Configuration -3. Example -4. Caveats -5. Contributing +1. Features +2. Getting Started +3. Configuration +4. Example +5. Caveats +6. Contributing + +
+ +## Features + +- Generates nested reports for structured projects/subtasks +- Pretty terminal table output +- CSV export/file dump
diff --git a/billable.nimble b/billable.nimble index 83ede53..f54857e 100644 --- a/billable.nimble +++ b/billable.nimble @@ -1,6 +1,6 @@ # Package -version = "0.2.0" +version = "0.2.1" author = "Trevor Richards " description = "timew-billable" license = "GPL3" @@ -11,5 +11,5 @@ srcDir = "src" requires "nim >= 1.6.6 & < 2.0", "csvtools >= 0.2.1 & < 1.0", "jsony >= 1.1.3 & < 2.0", - "nancy >= 0.1.0 & < 1.0", + "nancy >= 0.1.1 & < 1.0", "termstyle >= 0.1.0 & < 1.0" diff --git a/screenshot.png b/screenshot.png new file mode 100644 index 0000000..7b9ccf2 Binary files /dev/null and b/screenshot.png differ diff --git a/src/billable.nim b/src/billable.nim index 4e3a5b5..f3ff986 100644 --- a/src/billable.nim +++ b/src/billable.nim @@ -158,16 +158,6 @@ proc nestedTerminalRows( ] tt.nestedTerminalRows(row.subtasks, level + 1) -template printSeparator(position: untyped): untyped = - ## Copied from nancy.printSeparator as it is currently not exported. - stdout.write seps.`position Left` - for i, size in sizes: - stdout.write seps.horizontal.repeat(size + 2) - if i != sizes.high: - stdout.write seps.`position Middle` - else: - stdout.write seps.`position Right` & "\n" - proc echoBillableTable( table: TerminalTable, maxSize = terminalWidth(), seps = boxSeps ) =