Scripts to generate timedot files for time tracking for use with hledger for reporting and budgeting.
Find a file
2023-04-12 11:13:09 +02:00
generate-week.sh chore: revamp to fit new standard 2023-04-11 17:23:26 +02:00
generate-year.sh chore: revamp to fit new standard 2023-04-11 17:23:26 +02:00
README.md docs: update readme 2023-04-12 11:13:09 +02:00

log-time

asciicast

generate-year.sh

Generate timedot file with dates for current (or given) year, e.g. 2023.timedot.

A user alias to open vim on the current, or given, date is used to log time and modify older entries.

usage:
    ./generate-year [year]

parameter [year] is optional, omit to use current year

user alias:

function te {
    local date=${1:-$(date -I)}
    local year=$(date -d $date +%Y)

    local timedir="$HOME/plan/time"
    local archivedir="$timedir/archive"

    if [[ $year < $(date +%Y) ]]; then
        vim -c "/$date" $archivedir/$year.timedot
    fi

    vim -c "/$date" $timedir/$year.timedot
}

generate-week.sh

Generate timedot file with dates for current week, e.g. 2022-13.timedot.