I configured vit to sort my tasks according to filters corresponding to contexts (projects++). I.e., on , vit shows me project:work tasks, on it shows me project:home tasks, etc. When I am using some filter and I add a new task, most of the time, I want to add a task so that it matches that particular filter. I.e., on pressing "a", it would be nice to have the task adding prompt pre-configured with project:x possibly even +sometag. Of course this is not for everybody and not always a user want to have things this way. One way to achieve such a functionality would be to be able to instruct vit to use a pre-configured task adding template.
To implement this feature, we would need a variable (vit.add.template='...'). By default it should be set to empty string ''. Pressing "a" (or "A") should add that template to the prompt and position cursor at the end of the line.
To add tasks to "folders" specified by folders in my particular config would then be possible by configuring (see above) to first set the new add template variable and then activating new vit filter.
PeterN on 2015-01-12T09:24:47Z says:
I configured vit to sort my tasks according to filters corresponding to contexts (projects++). I.e., on, vit shows me project:work tasks, on it shows me project:home tasks, etc. When I am using some filter and I add a new task, most of the time, I want to add a task so that it matches that particular filter. I.e., on pressing "a", it would be nice to have the task adding prompt pre-configured with project:x possibly even +sometag. Of course this is not for everybody and not always a user want to have things this way. One way to achieve such a functionality would be to be able to instruct vit to use a pre-configured task adding template.
To implement this feature, we would need a variable (vit.add.template='...'). By default it should be set to empty string ''. Pressing "a" (or "A") should add that template to the prompt and position cursor at the end of the line.
To add tasks to "folders" specified by folders in my particular config would then be possible by configuring (see above) to first set the new add template variable and then activating new vit filter.