samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 116 forks source link

Add nested_dotfiles auto sheet #117

Closed emarref closed 8 years ago

emarref commented 8 years ago

This pull request adds a new autosheet that looks for the .timetrap-sheet file up the dir heirarchy.

.
|-- Clients
|   |-- .timetrap-sheet
|   |-- Client A
|   |   |-- .timetrap-sheet
|   |   |-- Project 1
|   |   |-- Project 2
|   |-- Client B
|   |   |-- Project 3
|   |   |-- Project 4
|-- Other dir

In the Project 1 and Project 2 dirs, the sheet will be loaded from Clients/Client A/.timetrap-sheet. In the Project 3 and Project 4 dirs, the sheet will be loaded from Clients/.timetrap-sheet. Any other dir, e.g. Other dir will fall back to the default timetrap configured sheet.

samg commented 8 years ago

Looks cool. It will probably take me a few days before I'm able to take a closer look and work on getting this merged/released. Thanks for the contribution!

jostber commented 8 years ago

This looks very useful. Will this be merged?

samg commented 8 years ago

Looks good. Thanks!

samg commented 8 years ago

released in https://rubygems.org/gems/timetrap/versions/1.10.0