This repository has been archived by the owner on Nov 19, 2017. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Harvestime | ||
========== | ||
|
||
This library is a very lightweight time calculator for time-tracking in | ||
plain-text. The library expects a very specific format for tracking time: | ||
|
||
``` | ||
Monday August 8, 2011 | ||
===================== | ||
09:00 - 09:08 0:08 Description of task | ||
14:23 - 15:33 1:10 Another task | ||
``` | ||
|
||
Each log entry has the the following format: | ||
|
||
``` | ||
HH:MM - HH:MM HH:MM Description | ||
``` | ||
|
||
Where the first time is the start time, the second is the end time, and | ||
the third is the total amount of time spent (the difference between the | ||
two). Time is kept using a 24-hour clock. Descriptions can be anything | ||
you want. The time difference is space-padded instead of 0-padded. Thus, | ||
the columns should *always* line up. | ||
|
||
Vim integration | ||
--------------- | ||
|
||
To aid with time-tracking this library provides a small vim plugin. To | ||
install, use pathogen and clone this repository into your vim bundle | ||
directory. | ||
|
||
The default mapping is \<leader>t. On a blank line in normal mode, type | ||
\<leader>t and the current timestamp will be inserted. When you are done | ||
with a task, type \<leader>t again. This will insert the timestamp again. | ||
|
||
A third invocation of the plugin will calculate the time difference | ||
between the start and end times and insert it after the time range. | ||
|
||
The plugin is simple, but it will allow you to have a description on the | ||
line at any phase, and should leave it intact when inserting timestamps. |