1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: migrate notes workflow to obsidian completely

This commit is contained in:
2023-07-04 09:40:00 +02:00
parent 3138fd23ef
commit bcac6e29d5
2 changed files with 4 additions and 3 deletions

View File

@@ -277,8 +277,9 @@ in {
PATH=$PATH:${
lib.makeBinPath [pkgs.rofi pkgs.findutils pkgs.coreutils]
}
NOTE_DIR=~/cloud/syncthing/obsidian
cd ~/notes
cd "$NOTE_DIR"
note_file=$({
echo diary/$(date -I).md
echo diary/$(date -I -d yesterday).md
@@ -286,7 +287,7 @@ in {
} | rofi -dmenu -i -p 'notes')
if test "$note_file"
then
alacritty --working-directory ~/notes -e "$EDITOR" "$note_file"
alacritty --working-directory "$NOTE_DIR" -e "$EDITOR" "$note_file"
fi
''
}";