1 |
Am 08.03.2012 20:00, schrieb Stefan G. Weichinger: |
2 |
|
3 |
> oh, sorry, vi(m) here :-P |
4 |
|
5 |
I'm using a plain text file (ok |-separated values) for this and a |
6 |
single macro: |
7 |
|
8 |
imap <localleader>m <SPACE>\| <ESC>"=strftime("%Y-%m-%d %H:%M")<CR>pa¶ |
9 |
|
10 |
Then, in insert mode \m appends " | <now>" after the cursor, |
11 |
and you have just fixed the start or stop time for the entry. |
12 |
|
13 |
My work log looks like this: |
14 |
|
15 |
client | item | start | stop |
16 |
|
17 |
and once it's been run through my billing script, the billed items |
18 |
are tagged |
19 |
|
20 |
client | item | start | stop | billed |
21 |
|
22 |
s. |