Skip to content

Commit

Permalink
expand on features
Browse files Browse the repository at this point in the history
update nancy target and remove copied template

update screenshot
  • Loading branch information
trev-dev committed Nov 4, 2022
1 parent cb5e508 commit 58cbee6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 17 deletions.
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. <a href="#start">Getting Started</a>
2. <a href="#config">Configuration</a>
3. <a href="#example">Example</a>
4. <a href="#caveats">Caveats</a>
5. <a href="#contrib">Contributing</a>
1. <a href="#features">Features</a>
2. <a href="#start">Getting Started</a>
3. <a href="#config">Configuration</a>
4. <a href="#example">Example</a>
5. <a href="#caveats">Caveats</a>
6. <a href="#contrib">Contributing</a>

<div id="features"></div>

## Features

- Generates nested reports for structured projects/subtasks
- Pretty terminal table output
- CSV export/file dump

<div id="start"></div>

Expand Down
4 changes: 2 additions & 2 deletions billable.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.2.0"
version = "0.2.1"
author = "Trevor Richards <[email protected]>"
description = "timew-billable"
license = "GPL3"
Expand All @@ -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"
Binary file added screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 0 additions & 10 deletions src/billable.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
) =
Expand Down

0 comments on commit 58cbee6

Please sign in to comment.