-
-
Notifications
You must be signed in to change notification settings - Fork 14
Configuration Reference
RTM CLI has a number of properties that can be configured using a separate JSON
configuration file. The default user configuration file is located at $HOME/.rtm.json
but can be changed using the --config <file>
option.
For convenience, if you want to separate the storage of your account credentials and the RTM CLI configuration properties, the
$HOME/.rtm.config.json
file, if present, will be read and parsed in addition to the$HOME/.rtm.json
file.The RTM account credentials will still be stored in
$HOME/.rtm.json
. You can put your configuration properties in$HOME/.rtm.config.json
.NOTE: If the
--config
flag is used to provide a configuration file, only that configuration file will be used.
The default configuration is as follows:
{
"dateformat": "ddd mmm-dd",
"plannerDateformat": "ddd",
"completed": 7,
"hideDue": false,
"plain": false,
"status": true,
"styles": {
"list": "yellow.underline",
"index": "dim",
"priority": {
"0": "reset",
"1": "red",
"2": "blue",
"3": "cyan"
},
"completed": "dim",
"notes": "reset",
"tags": "magenta",
"due": "green"
},
"iconType": "text",
"aliases": [
{
"name": "overdue",
"description": "Display all tasks that are overdue",
"command": "lsd",
"args": "dueBefore:today AND status:incomplete"
}
],
"plugins": [
"{{HOME}}/.rtm.plugins/"
]
}
Custom meta-commands can be added to your configuration file's aliases
property.
This property is a list of aliased commands that reference an existing command
and can provide pre-defined arguments. This can be used to create a meta-command
that uses one of the existing display commands (such as ls
) and a pre-set
filter string (using RTM's Advanced Search Syntax).
The included overdue
command is a meta-command added to the default configuration.
To create your own meta command, add the aliases
property to your configuration file
(located at $HOME/.rtm.json
by default). The example below creates the important
command listing incomplete tasks with a priority of 1, using the existing ls
command.
{
"aliases": [
{
"name": "important",
"description": "Display incomplete tasks with a priority of 1",
"command": "ls",
"args": "priority:1 AND status:incomplete"
}
]
}
The name
property gives the command name, description
is the command description
given in the help output, command
is the existing command to map the new one to, and
args
provide the arguments (such as the filter string) to the command.
The following is a list of all configuration properties, their descriptions, and default values.
Property | Type | Description | Default | ||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
client |
object |
RTM API Client Information
RTM CLI includes an RTM API client key/secret but you can override these with your own, if you prefer. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||
dateformat |
string |
Date Display Format This property describes how dates will be formatted when displayed in
the task lists generated by the The format is parsed by the |
ddd mmm-dd |
||||||||||||||||||||||||||||||||||||||||||||||||||||
plannerDateformat |
string |
Planner Date Display Format This property describes how dates will be formatted when displayed in the headers of the planner table. The format is parsed by the |
ddd |
||||||||||||||||||||||||||||||||||||||||||||||||||||
completed |
boolean or integer
|
Display Completed Tasks The display of completed tasks can be changed to include all, none or some of the completed tasks with the following values:
This can be overridden using the |
7 |
||||||||||||||||||||||||||||||||||||||||||||||||||||
hideDue |
boolean or integer
|
Hide Tasks Due in Future This property can be configured to hide tasks that have a due
date set more than
This can be overridden using the |
false |
||||||||||||||||||||||||||||||||||||||||||||||||||||
plain |
boolean |
Display Plain Text When set to This can be overridden using the |
false |
||||||||||||||||||||||||||||||||||||||||||||||||||||
status |
boolean |
Display Status Text When set to This can be overridden using the |
true |
||||||||||||||||||||||||||||||||||||||||||||||||||||
styles |
object |
Task Attribute Styles Different attributes of tasks can have different styles applied to them when displayed. Styles are applied using the
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
iconType |
string |
Icon Type Define how to display note and url indicators. The value can be either |
text |
||||||||||||||||||||||||||||||||||||||||||||||||||||
aliases |
object[] |
Command Aliases This configuration property allows you to define your own meta-commands
that map a new command name to an existing command (such as
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||
plugins |
string[] |
This property provides a list of locations for command plugins. The default location is the .rtm.plugins/ directory in the User's Home directory. Values added to this list can include:
|
["{{HOME}}/.rtm.plugins/"] |