aboutsummaryrefslogtreecommitdiff
path: root/notepicker
diff options
context:
space:
mode:
Diffstat (limited to 'notepicker')
-rwxr-xr-xnotepicker6
1 files changed, 3 insertions, 3 deletions
diff --git a/notepicker b/notepicker
index 51e9562..f9edeb8 100755
--- a/notepicker
+++ b/notepicker
@@ -7,7 +7,7 @@ NOTEDIR=$1
SUFFIX=''
opennote () {
- kitty --directory $NOTEDIR$SUFFIX nvim $notefile
+ kitty --directory $NOTEDIR$SUFFIX nvim "$notefile"
}
journal () {
@@ -28,8 +28,8 @@ pick () {
case $choice in
Journal) journal ;;
- *.md) notefile=$choice; opennote ;;
- *!) notefile=$(echo $choice | tr -d '!').md; opennote ;;
+ *.md) notefile="$choice"; opennote ;;
+ *!) notefile="$(echo $choice | tr -d '!').md"; opennote ;;
*) exit 0 ;;
esac
}