blob: 778138d0429459122346b311d1751437af745c33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/usr/bin/bash
set -euo pipefail
app_name=notes
if ! [[ -d $NOTES_DIR ]]; then
notify-send --app-name="$app_name" --icon="accessories-text-editor" \
"Neovim notes plugin" "$NOTES_DIR does not exist or is not a directory"
exit 1
fi
cd "$NOTES_DIR"
exec foot --app-id="$app_name" -- \
tmux new-session -A -D -s "$app_name" -- \
nvim -c "NotesFindTags"
|