Home

Awesome

This project has evolved and is now known as

TimeSampler

Here's how it looks now (scroll down for the original README)

TimeSampler screenshot


TimeTap

Build Status Code Climate

TimeTap helps you track the time you spend coding on each project while in TextMate.

Once it's launched you don't have to bother anymore starting/stopping timers or inventing some arbitrary amount of time to fill your fancy time tracker.

<img src="http://f.cl.ly/items/17025fecf7189518cf07/timetap-project-list.png"/> <img src="http://f.cl.ly/items/7b96ad2f7b49a95fdfd0/timetap-project-page.png"/>

Installing

gem install time_tap

timetap --install

… and visit localhost:1111

Installing from source

How it works

TimeTap keeps an eye on the modification time of the frontmost file in TextMate and tells you how much time you spent on each project.

If you stop coding for a while while squeezing your brains TimeTap understands. TimeTap will consider "coding time" pauses to up to 30 minutes between to saves in the same project.

Technically it saves a timestamp+path of the frontmost file in TextMate every 30 seconds, then it digests all this information in a nice Sinatra webapp.

The server will respond on http://0.0.0.0:1111/.

Assumptions

Editors

TimeTap works with TextMate, TextMate2 and SublimeText2. For TM2 and ST2 you need to install specific bundles (in the vendor/ folder).

TextMate

Need to install rb-appscript: gem install rb-appscript

TextMate 2

You need to install the bundle in vendor/SublimeText2

SublimeText

You need to install the package in vendor/SublimeText2

Configuring

TimeTap uses a config file to control where projects are kept, etc. the path is:

~/.timetap.config

Which can look like this:

port: 1111
# the port on localhost for the web interface

# These are used to identify project root folders
code_folders:
  - ~/Code/MyCompany
  - ~/Code

# It's highly recomended to use 1.9.3
ruby: /Users/elia/.rvm/bin/ruby-1.9.3-p286

About "nested project layers"

TimeTap assumes you keep your projects inside a specific folder, like this:

~/Code/
  tap/
  tik_tak/
  tk-win/
  AcmeCorp/
    website/
    intranet/

But if you keep your projects grouped in subfolders like this:

~/Code/
  Clients/
    AcmeCorp/
      website/
      intranet/
    BetaCorp/
      skunkworks/
  OpenSource/
    project_one/
    timetap/

then, the nested_project_layers key tells TimeTap how deep to look for project names inside a hierarchy (in the example a value of 2 will catch AcmeCorp, BetaCorp, project_one and timetap).

How to Contribute

Use it, love it, then...

TODO

Credits

Related Projects

Copyright

Copyright © 2009-2012 Elia Schito. See LICENSE for details.