initial commit
All checks were successful
Deploy docs / build-and-deploy (push) Successful in 3s

This commit is contained in:
sid 2026-02-23 20:34:35 +01:00
commit 95a533c876
451 changed files with 18255 additions and 0 deletions

View file

@ -0,0 +1,30 @@
#!/bin/bash
if [ -n "$XDG_DOCUMENTS_DIR" ]; then
NOTES_DIR="$XDG_DOCUMENTS_DIR/notes"
else
NOTES_DIR="/tmp/notes"
fi
mkdir -p "$NOTES_DIR"
TIMESTAMP=$(date +"%Y-%m-%d_%H-%M-%S")
NOTE_FILE="$NOTES_DIR/note_$TIMESTAMP.md"
touch "$NOTE_FILE"
if [ -z "$EDITOR" ]; then
# Try common editors
for editor in vim vi nano; do
if command -v "$editor" &> /dev/null; then
EDITOR="$editor"
break
fi
done
if [ -z "$EDITOR" ]; then
echo "Error: No editor found. Please set the EDITOR environment variable."
exit 1
fi
fi
"$EDITOR" "$NOTE_FILE"