Skip to content

Latest commit

 

History

History
502 lines (233 loc) · 6.51 KB

doing.rdoc

File metadata and controls

502 lines (233 loc) · 6.51 KB

doing - A CLI for a What Was I Doing system

v0.2.6pre

Global Options

-f|–doing_file arg

Specify a different doing_file

Default Value

None

–help

Show this message

–[no-]notes

Output notes if included in the template

–version

Display the program version

Commands

Command: add_section section_name

Add a new section to the “doing” file

Command: archive section

Move entries in between sections

Options
-b|–bool arg

Tag boolean

Default Value

AND

-k|–keep arg

Count to keep (ignored if archiving by tag)

Default Value

5

Must Match

(?-mix:^d+$)

-t|–to arg

Move entries to

Default Value

Archive

Command: choose

Select a section to display from a menu

Command: config

Edit the configuration file

Options
-e|–editor arg

Editor to use

Default Value

None

Command: done entry

Add a completed item with @done(date). No argument finishes last entry.

Options
-b|–back arg

Backdate start date to date string [4pm|20m|2h|yesterday noon]

Default Value

None

-s|–section arg

Section

Default Value

Currently

-t|–took arg

Set completion date to start date plus XX or [HH:MM]

Default Value

None

-a|–archive

Immediately archive the entry

Include date

-e|–editor

Edit entry with /Users/ttscoff/scripts/editor.sh

-r|–remove

Remove @done tag

Command: finish count

Mark last X entries as @done

Marks the last X entries with a @done tag and current date. Does not alter already completed entries.

Options
-b|–back arg

Backdate completed date to date string [4pm|20m|2h|yesterday noon]

Default Value

None

-s|–section arg

Section

Default Value

Currently

-t|–took arg

Set the completed date to the start date plus XX

Default Value

None

-a|–archive

Archive entries

–auto

Auto-generate finish dates from next entry’s start time

Automatically generate completion dates 1 minute before next start date. –auto overrides the –date and –back parameters.

Include date

Command: help command

Shows a list of commands or help for one command

Gets help for the application or its commands. Can also list the commands in a way helpful to creating a bash-style completion function

Options

List commands one per line, to assist with shell completion

Command: last

Show the last entry

Command: later entry

Add an item to the Later section

Options
-a|–app editor_app

Edit entry with specified app

Default Value

Sublime Text

–back arg

Backdate start time to date string [4pm|20m|2h|yesterday noon]

Default Value

None

-e|–editor

Edit entry with /Users/ttscoff/scripts/editor.sh

Command: mark

Mark last entry as highlighted

Options
-s|–section arg

Section

Default Value

Currently

-r|–remove

Remove mark

Command: meanwhile entry

Finish any running @meanwhile tasks and optionally create a new one

Options
–back arg

Backdate start date for new entry to date string [4pm|20m|2h|yesterday noon]

Default Value

None

-s|–section section_name

Section

Default Value

Currently

-a|–archive

Archive previous @meanwhile entry

-e|–editor

Edit entry with /Users/ttscoff/scripts/editor.sh

Command: now entry

Add an entry

Options
–back arg

Backdate start time [4pm|20m|2h|yesterday noon]

Default Value

None

-s|–section section_name

Section

Default Value

Currently

-e|–editor

Edit entry with /Users/ttscoff/scripts/editor.sh

-f|–finish_last

Timed entry, marks last entry in section as @done

Command: open

Open the “doing” file in an editor

Options
-a app_name

open with app name

Default Value

None

-b bundle_id

open with app bundle id

Default Value

None

open with $EDITOR

Command: recent count

List recent entries

Options
-s|–section arg

Section

Default Value

Currently

-t|–times

Show time intervals on @done tasks

–[no-]totals

Show intervals with totals at the end of output

Command: sections

List sections

Command: show section [tags]

List all entries

Options
-a|–age arg

Age (oldest/newest)

Default Value

newest

-b|–boolean arg

Tag boolean (AND,OR,NONE)

Default Value

OR

-c|–count arg

Max count to show

Default Value

0

-o|–output arg

Output to export format (csv|html)

Default Value

None

-s|–sort arg

Sort order (asc/desc)

Default Value

asc

-t|–times

Show time intervals on @done tasks

–[no-]totals

Show intervals with totals at the end of output

Command: tag tag1 [tag2...]

Tag last entry

Options
-c|–count arg

How many recent entries to tag

Default Value

1

-s|–section arg

Section

Default Value

Currently

-d|–date

Include current date/time with tag

-r|–remove

Remove given tag(s)

Command: today

List entries from today

Options
-o|–output arg

Output to export format (csv|html)

Default Value

None

-t|–times

Show time intervals on @done tasks

–[no-]totals

Show time totals at the end of output

Command: undo

Undo the last change to the doing_file

Options
-f|–file arg

Specify alternate doing file

Default Value

None

Command: view view_name

Display a user-created view

Options
-c|–count arg

Count to display (override view settings)

Default Value

None

Must Match

(?-mix:^d+$)

-o|–output arg

Output to export format (csv|html)

Default Value

None

-s|–section arg

Section (override view settings)

Default Value

None

-t|–times

Show time intervals on @done tasks

–[no-]totals

Show intervals with totals at the end of output

Command: views

List available custom views

Command: yesterday section

List entries from yesterday

Options
-o|–output arg

Output to export format (csv|html)

Default Value

None

-t|–times

Show time intervals on @done tasks

–[no-]totals

Show time totals at the end of output

Default Command

recent