Merge remote-tracking branch 'prism/staging/jeschli'

This commit is contained in:
lassulus 2018-07-03 21:12:06 +02:00
commit d8f9ed5674
2 changed files with 8 additions and 0 deletions

View File

@ -13,6 +13,7 @@ with import <stockholm/lib>;
}; };
plugins = with pkgs.ReaktorPlugins; [ plugins = with pkgs.ReaktorPlugins; [
sed-plugin sed-plugin
taskwarrior
] ++ ] ++
(attrValues (todo "agenda")) (attrValues (todo "agenda"))
; ;

View File

@ -141,6 +141,13 @@ rec {
''; '';
}); });
taskwarrior = buildSimpleReaktorPlugin "task" {
pattern = "^task: (?P<args>.*)$$";
script = pkgs.writeDash "task-wrapper" ''
task "$*"
'';
};
todo = name: { todo = name: {
add = buildSimpleReaktorPlugin "${name}-add" { add = buildSimpleReaktorPlugin "${name}-add" {
pattern = "^${name}-add: (?P<args>.*)$$"; pattern = "^${name}-add: (?P<args>.*)$$";