From 773d7bc152330541d1b262fccf9126bc39500f31 Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 25 Oct 2023 15:18:09 +0200 Subject: feat(hm/pkgs/scr/neorg): Update help to include ARGUMENTS section --- hm/soispha/pkgs/scripts.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'hm/soispha/pkgs/scripts.nix') diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix index a5c7655d..2fe8b3c7 100644 --- a/hm/soispha/pkgs/scripts.nix +++ b/hm/soispha/pkgs/scripts.nix @@ -1,5 +1,6 @@ { pkgs, + lib, sysLib, config, ... @@ -58,6 +59,18 @@ HOME_TASKRC = "${config.xdg.configHome}/task/home-manager-taskrc"; ALL_PROJECTS_NEWLINE = "${config.soispha.taskwarrior.projects.projects_newline}"; ALL_PROJECTS_COMMA = "${config.soispha.taskwarrior.projects.projects_comma}"; + ALL_PROJECTS_PIPE = "${config.soispha.taskwarrior.projects.projects_pipe}"; + ALL_WORKSPACES = "${lib.strings.concatStringsSep "|" (builtins.attrNames config.programs.nixvim.plugins.neorg.modules."core.dirman".config.workspaces)}"; + ID_GENERATION_FUNCTION = + # This is here, because escaping the whole function, to use it in the shell script + # directly just isn't possible + lib.strings.escapeShellArg + /* + bash + */ + '' + `(wc="$(task project:"$(task _get rc.context)" _ids)"; if [ "$wc" ]; then echo "$wc"; else echo "0"; fi ) | xargs task _zshids | awk -F: -v s="'" '{print $1 ":" s $2 s}'` + ''; # TODO: Replace the hard-coded path here with some reference <2023-10-20> TASK_PROJECT_FILE = "/home/soispha/repos/nix/nixos-config/hm/soispha/conf/taskwarrior/projects/default.nix"; -- cgit 1.4.1