Remove zet-new

This commit is contained in:
Oliver Davies 2025-08-18 00:41:25 +01:00
parent e2bfa94073
commit 3fc67873dd
4 changed files with 0 additions and 24 deletions

View file

@ -9,7 +9,6 @@
time-until
update-all-git-repos
vic
zet-new
];
xdg.configFile."pam-gnupg".text = ''

View file

@ -31,7 +31,6 @@
unmounter
update-all-git-repos
vic
zet-new
];
xdg.configFile."pam-gnupg".text = ''

View file

@ -36,7 +36,6 @@ in
unmounter = callPackage ./unmounter.nix { };
update-all-git-repos = callPackage ./update-all-git-repos.nix { };
vic = callPackage ./vic.nix { inherit inputs; };
zet-new = callPackage ./zet-new.nix { };
vimPlugins = prev.vimPlugins // vimPlugins;
}

View file

@ -1,21 +0,0 @@
{ pkgs }:
pkgs.writeShellApplication {
name = "zet-new";
runtimeInputs = with pkgs; [
coreutils
];
text = ''
folder="''${ZET_DIR:-"$XDG_DOCUMENTS_DIR/wiki/zet"}/$(date +%Y)/$(date +%m)"
mkdir -p "$folder"
note="$folder/$(date +%Y-%m-%d-%T | sed 's/[-:]//g').md"
printf "# %s\n\n\n" "$1" > "$note"
"$EDITOR" "+normal G" "$note"
'';
}