kdheepak / taskwarrior-tui

`taskwarrior-tui`: A terminal user interface for taskwarrior
https://kdheepak.com/taskwarrior-tui
MIT License
1.48k stars 68 forks source link

Macro support #555

Open MaciejWieczor opened 5 months ago

MaciejWieczor commented 5 months ago

Description

I'd love to just press a key combination and call a specific report filter instead of typing the whole thing down.

Solution

Maybe adding a system of mapping keys to ":TEXT" style macros? For example (in a config file):

map rh ":(status pending and project:Home)"

Additional context

I've been using "vit" but I find taskwarrior-tui a bit prettier. I just don't know any rust to implement something like this. In "vit" the macro configuration look like this (look under [keybinding] and the look for macros):

https://github.com/vit-project/vit/blob/2.x/vit/config/config.sample.ini

kdheepak commented 4 months ago

Thanks for opening an issue and suggesting this feature! I think it's a cool idea. I'll have to think about how to go about implementing it.

Realistically it won't happen until after the #521 and after I have sorted some stuff out some irl events :)

kaytrance commented 3 months ago

any update on this one? I was desperately googling to find out how can I remap "1" to show completed items by applying my filter (that show not all completed items, but items completed in last 24h) but it seems that currently it is not possible, right?