Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (91 sloc) 3.75 KB
###
TODO:
- task lists (with pending threads or a copy of multi inbox queries)
- multi inbox queries as V/ labels
- copy all projects as references (!!!???)
###
module.exports.config =
debug: false
# TODO replaces status map
auto_labels: [
# symbol, shortcut, label, create
{ symbol: '!', shortcut: 'na', label: 'Next Action', prefix: 'S/' },
{ symbol: '!', shortcut: 'a', label: 'Action', prefix: 'S/' },
{ symbol: '!', shortcut: 'p', label: 'Pending', prefix: 'S/' },
{ symbol: '!', shortcut: 'sd', label: 'Some day', prefix: 'S/' },
{ symbol: '!', shortcut: 'e', label: 'Expired', prefix: 'S/' },
{ symbol: '!', shortcut: 'c', label: 'Current', prefix: 'S/' },
{ symbol: '##', prefix: 'RP/', create: ok },
{ symbol: '#', prefix: 'P/', create: ok },
{ symbol: '^', prefix: 'R/', create: ok },
{ symbol: '*', prefix: 'L/' },
]
# TODO keep shortcuts for inbox parsing here
# TODO replaced by autolabels, but allow extending here too
status_labels: [
'S/Next action'
'S/Action'
'S/Pending'
'S/Some day'
'S/Expired'
]
# query: add_label[], remove_label[]
# TODO rename to query_labels
label_queries:
# unmark new mails as finished or pending
'label:inbox': [ [], [ 'S/Finished', 'S/Pending' ] ]
# VIEW
# mark current emails using v-now label for an easy access
'label:inbox OR label:s-next-action -label:s-finished -label:s-expired -label:s-pending': [ [ 'V/now' ] ]
# VIEW
# TODO projects without a status
# 'label:p-* -label:s-*': [ [ 'V/no-status' ] ]
# finished, expired or pending emails are archived
# TODO??? conflicts with 1st rule, check it
'label:v-now ( label:s-finished OR label:s-expired OR label:s-pending )' : [ [], [ 'V/now', 'Inbox' ] ]
# Current status removes any other status
'label:s-current ( label:s-finished OR label:s-next-action OR label:s-action OR label:s-pending )' :
[ [], [ 'S/Action', 'S/Next action', 'S/Pending', 'S/Finished', 'S/Expired' ] ]
# Finished status removes any other status besides current
'label:s-finished ( label:s-next-action OR label:s-action OR label:s-pending )' : [ [], [ 'S/Action', 'S/Next action', 'S/Pending' ] ]
# Expired status removes any other status
'label:s-expired ( label:s-next-action OR label:s-action OR label:s-pending )' : [ [], [ 'S/Action', 'S/Next action', 'S/Pending' ] ]
# some day status removes next action and action statuses
'label:s-someday': [ [], ['S/Next Action', 'S/Action'] ]
# next action status removes action status
'label:s-next-action': [ [], ['S/Action'] ]
# pending status removes next action status
'label:s-pending': [ [], ['S/Next Action'] ]
# remove msg from inbox when status present
'label:inbox label:s-next-action OR label:s-action OR label:s-pending OR label:s-expired': [ [], ['Inbox'] ]
# remove v-now when not in inbox and status not present
'label:v-now -label:inbox -label:s-next-action -label:s-action -label:s-pending -label:s-expired': [ [], ['V/now'] ]
status_map:
na: 'S/Next action'
a: 'S/Action'
p: 'S/Pending'
sd: 'S/Some day'
ex: 'S/Expired'
# tasks
tasks:
# null: no change, 1: prepend missing, 2: append missing, 3: append all, 4: prepend all
labels_in_title: 3
queries:
labels_defaults:
email_unmatched: ['s-finished']
new_task: ['r-task']
task_completed: add: ['s-finished'], remove: []
'GTD Inbox':
query: 'label:inbox -label:s-action -label:s-next-action -label:s-pending'
'GTD Next Actions':
query: 'label:s-next-action'
labels_new_task: ['s-next-action']
task_completed: remove: ['s-next-action']
'GTD Actions':
query: 'label:s-action -(label:s-pending)'
labels_new_task: ['s-action']
task_completed: remove: ['s-action']
'GTD Pending':
query: 'label:s-pending'
labels_new_task: ['s-pending']
task_completed: remove: ['s-pending']