Repository navigation
Configuration
Doing's main config file is stored in ~/.doingrc, and a skeleton file is created on the first run. Just run doing on its own to create the file.
A basic configuration looks like this:
---
doing_file: /Users/username/Dropbox/doing.taskpaper
current_section: Currently
default_template: '%date: %title%note'
default_date_format: '%Y-%m-%d %H:%M'
marker_tag: flagged
marker_color: yellow
tags_color: boldcyan
default_tags: []
editor_app: TaskPaper
config_editor_app: Sublime Text
paginate: false
:include_notes: true
views:
color:
date_format: '%F %_I:%M%P'
section: Currently
count: 10
wrap_width: 0
template: '%boldblack%date %boldgreen| %boldwhite%title%default%note'
order: desc
templates:
default:
date_format: '%Y-%m-%d %H:%M'
template: '%date | %title%note'
wrap_width: 0
today:
date_format: '%_I:%M%P'
template: '%date: %title%odnote'
wrap_width: 0
last:
date_format: '%_I:%M%P on %a'
template: '%title (at %date)%odnote'
wrap_width: 0
recent:
date_format: '%_I:%M%P'
template: '%date > %title%odnote'
wrap_width: 50
count: 10
autotag:
whitelist:
- coding
- design
synonyms:
brainstorming:
- thinking
- idea
html_template:
haml:
css:
markdown:
timer_format: text
From time to time a new configuration option is added to Doing, either by a plugin, or just a new feature in development. To incorporate keys that have been added since your .doingrc was created, run doing config --update. This will leave existing keys as is, but add any missing keys with their default values (or empty if the option has no default).
Any options found in a .doingrc anywhere in the hierarchy between your current folder and your home folder will be appended to the base configuration, overriding or extending existing options. This allows you to put a .doingrc file into the base of a project and add specific configurations (such as default tags) when working in that project on the command line. These can be cascaded, with the closest .doingrc to your current directory taking precedence, though I'm not sure why you'd want to deal with that.
Possible uses:
- Define custom HTML or Markdown output on a per-project basis using the html_template option for custom templates. Customize time tracking reports based on project or client.
- Define
default_tagsfor a project so that every time youdoing nowfrom within that project directory or its subfolders, it gets tagged with that project automatically.
Any part of the configuration can be copied into these local files and modified. You only need to include the parts you want to change or add.
The one thing you'll probably want to adjust is the file that the notes are stored in. That's the doing_file key:
doing_file: /Users/username/Dropbox/nvALT2.2/?? What was I doing.md
I keep mine in my nvALT folder for quick access and syncing between machines. If desired, you can give it a .taskpaper extension to make it more recognizable to other applications. (If you do that in nvALT, make sure to add taskpaper as a recognized extension in preferences).
You can rename the section that holds your current tasks. By default, this is Currently, but if you have some other bright idea, feel free:
current_section: Currently
The setting editor_app only applies to Mac OS X users. It's the default application that the command doing open will open your WWID file in. Personally, I use editor_app: TaskPaper. If this is blank, it will be opened by whatever the system default is for the doing file extension (default is .md), or you can use -a app_name or -b bundle_id to override.
You can define a separate app to open the config file in when running doing config. The key for this is config_editor_app.
In the case of the doing now -e command, your $EDITOR environment variable will be used to complete the entry text and notes. Set it in your ~/.bash_profile or whatever is appropriate for your system:
export EDITOR="mate -w"
The only requirements are that your editor be launchable from the command line and able to "wait." In the case of Sublime Text and TextMate, just use -w like this: export EDITOR="subl -w".
For commands that provide an HTML or Markdown output option, you can customize the templates used for markup and CSS. The HTML markup uses HAML, and the styles are pure CSS. The Markdown template uses Ruby ERB templating.
To export the default configurations for customization, use doing templates --type=[HAML|CSS|MARKDOWN]. This will output to STDOUT where you can pipe it to a file, e.g. doing templates --type=HAML > my_template.haml. You can modify the markup, the CSS, or both.
Once you have a template file prepared, edit .doingrc and look for the html_template: section. There are three sub-values, haml:, css:, and markdown:. Add the template paths to the appropriate keys. A tilde may be substituted for your home directory, e.g. css: ~/styles/doing.css.
Keywords in your entries can trigger automatic tagging, just to make life easier. There are three tools available: default tags, whitelisting, and synonym tagging.
Default tags are tags that are applied to every entry. You probably don't want to add these in the root configuration, but using a local .doingrc in a project directory that defines default tags for that project allows anything added from that directory to be tagged automatically. A local .doingrc in my Marked development directory might contain:
---
default_tags: [marked,coding]
And anything I enter while in the directory gets tagged with @marked and @coding.
A whitelist is a list of words that should be converted directly into @tags. If my whitelist contains "design" and I type doing now working on site design, that's automatically converted to "working on site @design."
Synonyms allow you to define keywords that will trigger their parent tag. If I have a tag called @design, I can add "typography" as a synonym. Then entering doing now working on site typography will become "working on site typography @design."
White lists and synonyms are defined like this:
autotag:
synonyms:
design:
- typography
- layout
brainstorming
- thinking
- idea
whitelist:
- brainstorming
- coding
Note that you can include a tag with synonyms in the whitelist as well to tag it directly when used.
By default Doing will only page output if you use the --pager global option. You can turn on paging by default (whenever the output is longer than the terminal) with the configuration key:
paginate: true
The key timer_format affects how tag totals are displayed when view commands are given the --totals option. The default is "text", which will display the tag name followed by DD:HH:MM formatted time. If you set it to "human", a nicer ascii display will be output with totals listed in "XXh XXm" format. Other formats include "markdown", "html", and "json", but these are primarily for use in other output formats.
For template formatting, see Templates
To configure custom views with presets, see Custom Views