jschlatow / taskopen

Tool for taking notes and open urls with taskwarrior
GNU General Public License v2.0
368 stars 32 forks source link

RFE: taskopen -c #28

Closed linuxcaffe closed 11 years ago

linuxcaffe commented 11 years ago

-c as in color

ideally drawn from the active theme in ~/.taskrc, but not using taskwarriors color rules. Each field can be mapped to the taskwarrior color.theme, with key=values in .taskopenrc, like

PROMPT=color.header HELP=color.footnote DEBUG=color.debug LIST_BG=color.alternate ANNOT=color.recurring UUID=color.overdue ID=color.due.today FILE=color.due LABEL=color.active DESC=color.pri.none PRI=color.pri.H TAG=color.tagged DATE=color.blocked PROJECT=color.project.none

That way task users will be right at home with the taskopen colors, and changing themes in .taskrc will change the colors for taskopen automatically.

jschlatow commented 11 years ago

I'm not sure whether it's achievable to get taskwarrior's colour theme but colouring in general is a great idea. Would be great if taskwarrior could provide extension scripts with some colour code and mapping information, e.g. by 'task _colors'.

linuxcaffe commented 11 years ago

It can't be a 1:1 mapping with taskwarrior colors, and it shouldn't have any fancy color rules applied, a taskopen color.theme just maps colors to fields. Following the task convention of !including a color.theme from the rc would be smart. so taskwarrior themers could make a matching one for taskopen too.

On 1 February 2013 01:52, Johannes S. notifications@github.com wrote:

I'm not sure whether it's achievable to get taskwarrior's colour theme but colouring in general is a great idea. Would be great if taskwarrior could provide extension scripts with some colour code and mapping information, e.g. by 'task _colors'.

— Reply to this email directly or view it on GitHubhttps://github.com/ValiValpas/taskopen/issues/28#issuecomment-12982924.

jschlatow commented 11 years ago

Coloring can be achieved by

taskopen -p clog
linuxcaffe commented 11 years ago

closing this issue. Documentation on using clog needed.