diff options
author | lassulus <lass@blue.r> | 2018-07-03 21:12:06 +0200 |
---|---|---|
committer | lassulus <lass@blue.r> | 2018-07-03 21:12:06 +0200 |
commit | d8f9ed5674ad041aab417e0aedfae71b25978119 (patch) | |
tree | 7a5a50735ad54914f0cab5ee82fd34de3f4a74ba /krebs | |
parent | 64404b6dab45a8ffa4770f724b724efec33f2b5a (diff) | |
parent | a7009b8ded9d6e6bcfc323dbd9d45d5d66d0a5e8 (diff) |
Merge remote-tracking branch 'prism/staging/jeschli'
Diffstat (limited to 'krebs')
-rw-r--r-- | krebs/2configs/reaktor-krebs.nix | 1 | ||||
-rw-r--r-- | krebs/5pkgs/simple/Reaktor/plugins.nix | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/krebs/2configs/reaktor-krebs.nix b/krebs/2configs/reaktor-krebs.nix index fa51b84f0..d80fd0eb1 100644 --- a/krebs/2configs/reaktor-krebs.nix +++ b/krebs/2configs/reaktor-krebs.nix @@ -13,6 +13,7 @@ with import <stockholm/lib>; }; plugins = with pkgs.ReaktorPlugins; [ sed-plugin + taskwarrior ] ++ (attrValues (todo "agenda")) ; diff --git a/krebs/5pkgs/simple/Reaktor/plugins.nix b/krebs/5pkgs/simple/Reaktor/plugins.nix index 2df76fb2f..418a3c73c 100644 --- a/krebs/5pkgs/simple/Reaktor/plugins.nix +++ b/krebs/5pkgs/simple/Reaktor/plugins.nix @@ -141,6 +141,13 @@ rec { ''; }); + taskwarrior = buildSimpleReaktorPlugin "task" { + pattern = "^task: (?P<args>.*)$$"; + script = pkgs.writeDash "task-wrapper" '' + task "$*" + ''; + }; + todo = name: { add = buildSimpleReaktorPlugin "${name}-add" { pattern = "^${name}-add: (?P<args>.*)$$"; |