feat: open notes and fix tmux

This commit is contained in:
Florian Schmitt 2024-12-09 10:21:17 +03:00
parent 48e8218774
commit 89cf7f3a75
3 changed files with 22 additions and 7 deletions

15
scripts/open-notes Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
pushd ~/Nextcloud/Notes/ > /dev/null
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(rg . --files --glob "*.md" | sort -r -f | fzf)
fi
if [[ -z $selected ]]; then
exit 0
fi
nvim "$selected"
popd > /dev/null