Skip to content

last

Show the last entry.

Usage

bash
doing last [OPTIONS]

Options

Action Options

FlagDescription
-d, --deleteDelete the last entry
-e, --editorEdit the last entry in your configured editor

View Options

FlagDescription
--config-templateUse the output template from the config file
--durationShow elapsed time on the entry
-o, --output OUTPUTOutput format (html, csv, json, template, timeline)
--sort SORTSort order (asc, desc)
--template TEMPLATEOverride the output template
-t, --timesShow start and end times
--titleShow section title
--totalsShow time totals

Filter Options

FlagDescription
--afterShow entries after a given time
--age AGESort direction by age (newest, oldest)
--beforeShow entries before a given time
--bool BOOL_OPBoolean operator for multiple filters (and, not, or, pattern)
--case CASECase sensitivity for search (sensitive, ignore, smart)
-x, --exactForce exact string matching
--from FROMSearch in a specific section
--notNegate the search filter
--only-timedOnly match entries with elapsed time
--search SEARCHFilter entries by search string
-s, --section SECTIONSearch in a specific section
--tag TAGFilter entries by tag
-u, --unfinishedOnly match unfinished entries
--val VALFilter by tag value

Examples

Show the last entry:

bash
doing last

Show the last entry with elapsed time:

bash
doing last --duration --times

Delete the last entry tagged as a meeting:

bash
doing last -d --tag meeting

Released under the MIT License.