From ea09ccf2e9b48b3aa870e90095a44fc8839ba9ff Mon Sep 17 00:00:00 2001 From: Soispha Date: Wed, 3 Jan 2024 22:42:04 +0100 Subject: feat(hm/pkgs/scr/ytcc): Add support for showing comments --- hm/soispha/pkgs/scripts.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'hm/soispha/pkgs/scripts.nix') diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix index e0b5a086..84fdfb54 100644 --- a/hm/soispha/pkgs/scripts.nix +++ b/hm/soispha/pkgs/scripts.nix @@ -72,6 +72,14 @@ ''; }; }; + filter-comments-scr = sysLib.writeShellScriptWithLibrary { + name = "filter-comments"; + src = ./scripts/specific/ytcc/filter_comments.sh; + dependencies = with pkgs; [jq fmt less locale] ++ [nest_comments-scr]; + replacementStrings = { + JQ_PREPROCCESSOR_SCRIPT = ./scripts/specific/ytcc/filter_comments.jq; + }; + }; screenshot_persistent-scr = write_shell { name = "screenshot_persistent"; path = "small_functions"; @@ -125,6 +133,11 @@ TASK_PROJECT_FILE = "/home/soispha/repos/nix/nixos-config/hm/soispha/conf/taskwarrior/projects/default.nix"; }; }; + nest_comments-scr = write_python { + name = "nest_comments.py"; + path = "specific/ytcc"; + dependencies_python = ps: []; + }; update-sys-scr = write_shell { name = "update-sys"; path = "small_functions"; @@ -219,7 +232,7 @@ }; ytc-scr = write_shell { name = "ytc"; - path = "wrappers"; + path = "specific/ytcc"; dependencies = builtins.attrValues { inherit (pkgs) @@ -241,7 +254,7 @@ }; yts-scr = write_shell { name = "yts"; - path = "wrappers"; + path = "specific/ytcc"; keep_path = true; # We need neovim dependencies = builtins.attrValues { inherit (pkgs) ytcc jq gawk; @@ -252,6 +265,7 @@ in [ # llp-scr # TODO: see above aumo-scr con2pdf-scr + filter-comments-scr fupdate-scr hibernate-scr ll-scr @@ -259,6 +273,7 @@ in [ lyrics-scr mpc-rm-scr neorg-scr + nest_comments-scr screenshot_persistent-scr screenshot_temporary-scr spodi-scr -- cgit 1.4.1