Skip to content
jd2504Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

org-run

A running log and training tracker built on org-mode. All workout data lives in a single org file as structured entries with properties drawers. A companion plan file lets you compare planned training against actual execution.

Requirements

  • Emacs 28.1+
  • Org-mode 9.5+

Installation

Add the org-run directory to your load-path and call the setup function:

(add-to-list 'load-path "/path/to/org-run")
(require 'org-run)
(org-run-setup)

Config

VariableDefaultDescription
org-run-log-file~/org/running-log.orgPath to the workout log file
org-run-plan-file~/org/running-plan.orgPath to the training plan file
org-run-default-unitsmilesDistance units (miles or km)
org-run-elevation-unitsfeetElevation units (feet or meters)
org-run-week-start-daymondayFirst day of the training week

Data

Runs are stored as level-3 org headings with a properties drawer:

*** Run [2025-06-15 Sun]
    :PROPERTIES:
    :DATE:      2025-06-15
    :MILES:     5.2
    :DURATION:  42:30
    :INTENSITY: easy
    :ELEVATION: 350
    :NOTES:     felt good, warm morning
    :END:

Entries are organized under year (level 1) and ISO week (level 2) headings, created automatically on capture.

Valid intensity types: recovery, easy, tempo, vo2, long.

Usage

After calling org-run-setup, all commands are available under the C-c r prefix:

KeyCommandDescription
C-c r rorg-run-capture-runLog a new run interactively
C-c r Porg-run-plan-weekPlan a week of training
C-c r worg-run-weekly-summaryWeekly summary table
C-c r morg-run-monthly-summaryMonthly summary table
C-c r iorg-run-intensity-distributionIntensity distribution breakdown
C-c r porg-run-compare-planCompare planned vs. actual training
C-c r eorg-run-elevation-reportElevation statistics and weekly breakdown
C-c r xorg-run-export-tableExport entries as a raw Org table

Capture

org-run-capture-run prompts for date, distance, duration, intensity, elevation, and notes, then inserts the entry under the correct year/week heading. It also registers an org-capture template for use with org-capture.

Planning

org-run-plan-week opens a 7-day template buffer. Fill in miles, duration, and intensity for each planned run day, then confirm with C-c C-c (or cancel with C-c C-k). Plans are written to the plan file.

Reports

All reports accept optional :start and :end keyword arguments (ISO date strings) for filtering. Output is displayed in the *org-run-report* buffer as formatted Org tables.

License

GPL-3.0-or-later

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages