Download Latest v0.3 | HackerNews | Bugs & Suggestions
A utility to log time on the terminal.
It's like a task list that can be saved.
Has a calculator built-in.
Marks current time automatically, has some editing features.
Plays nice with terminal themes.
Integrates with user (meaning Your's) status-line scripts. Please post your own screenshots.
This script depends on the FISH shell, as well as a decent date
command.
The ANSI-colors stripping requires a sed
command.
To use it copy time-log.fish
anywhere in your PATH
and chmod +x
the script.
Run it, optionally followed by a HEADING.
If you want to use your own scripts for STATUS or TITLE you can do so:
STATUS='df -h / |tail -1 |cut -d" " -f13' \
TITLE=date\ +%Y/%d/%m \
time-log.fish HEADING
Time Log Fish can write to a file with the !w
command.
This file has all the movement and colors.
If you'd like to see the file use cat FILE
.
The colors can be removed with cat FILE | time-log.fish -
Every line in Time Log Fish is time-stamped by default.
Use /
to see the difference between last time-stamp and current time.
Enter an empty line to refresh current time, and show STATUS
below.
To keep note of this status line enter ++
(this does not update last time-stamp).
To enter a note without updating last time-stamp start the line with +
,
or with -
to replace the contents of the line above.
Lines can be deleted and edited with --
, and auto-stamped with -+
Simple math expressions =1+1
→ = 2
are available
help math
To use the last result in a new expression start the line with .
instead of =
Going back to the result before last is done with ..
Use ?
to summon a HELP cheat-sheet.
<Enter> to refresh the time
⋯ type anything and TIME stays
-- edit last line, replacing it
+⋯ add a NOTE (default: empty line)
-⋯ replace last NOTE (default: delete last note)
-+ prepend current TIME to the last line (+- too)
/ append time difference to the last line (* also)
++ insert weekday & STATUS (default: HH:MM.)
=⋯ calculate and note down the result (default: 0)
.⋯ use last result (default: show it)
.. discard last result, use one before (or 0 if none)
!w (over)write to file (default: DATE HH:MM.plog)
to strip ANSI coloring use `cat FILE | time-log -`
tag: note
mark:specific.time
* calculator changed to use = instead of :
+ see the time difference with just /
* status adding changed from just + to ++
* a + adds an empty line
+ added facility to strip ANSI colors (keeps motions tho)
+ previous line can now be time-stamped with -+
+ previous line can now be edited with --
+ calculate using last calc result with ./3
+ zero out last result with just :
+ TITLE env variable for custom command hooks
+ setting STATUS command, and ovrerriding it with ARGV
+ deleting and replacing lines interactively
+ adding lines interactively
+ refreshing TIME in prompt with Enter, runs STATUS below
+ adding STATUS as a line with just +
+ adding empty lines with +SPACE
+ writing ANSI file with !w (use cat to view)
+ tagging a line
+ back-dating HH:MM. lines
+ calculate math with :5/13
+ exit with Ctrl-C or Ctrl-D
License MIT, free to do whatever. Yours to fuck up.
USAGE demo (old by now)
- FIXME: use manually backdated items for time diff calc when refreshing with /
- accept filename for !w
- FIXME: lines after ? are not lines in the PLOG, don't delete when deleting or whatever
License MIT, free to do whatever. Yours to fuck up.
asciinema.org/a/447537