Remove notetaker
script
This commit is contained in:
parent
4da89a329f
commit
cd25bf96e9
3 changed files with 0 additions and 32 deletions
lib/shared
|
@ -19,7 +19,6 @@ let
|
|||
export-video-list = writeShellApplication (
|
||||
import ./scripts/export-video-list.nix { inherit pkgs username; }
|
||||
);
|
||||
notetaker = writeShellApplication (import ./scripts/notetaker.nix);
|
||||
run = writeShellApplication (import ./scripts/run.nix { inherit pkgs; });
|
||||
t = writeShellApplication (import ./scripts/t.nix { inherit pkgs; });
|
||||
timer = writeShellApplication (import ./scripts/timer.nix);
|
||||
|
@ -72,7 +71,6 @@ with pkgs;
|
|||
# Scripts.
|
||||
create-zellij-session
|
||||
deliver
|
||||
notetaker
|
||||
run
|
||||
t
|
||||
]
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
{
|
||||
name = "notetaker";
|
||||
|
||||
runtimeInputs = [ ];
|
||||
|
||||
text = ''
|
||||
# Based on https://github.com/CalinLeafshade/dots/blob/fe685d45201f267829b75fe5ca7e3da9d4aa4c02/bin/bin/notetaker.
|
||||
|
||||
today="$(date +%Y-%m-%d)"
|
||||
note_path="''${NOTES_PATH:-$HOME/Documents/wiki}"
|
||||
note_filename="$note_path/daily-notes/$(date +%Y)/$(date +%m)/$today.md"
|
||||
|
||||
if [[ ! -f "$note_filename" ]]; then
|
||||
mkdir -p "$(dirname "$note_filename")"
|
||||
|
||||
echo "# $today" > "$note_filename"
|
||||
fi
|
||||
|
||||
nvim -c "normal Go" \
|
||||
-c "normal Go## $(date +%H:%M)" \
|
||||
-c "normal G2o" \
|
||||
-c "normal zz" \
|
||||
-c "startinsert" "$note_filename"
|
||||
'';
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue