feat(journal): quiet typora execution

This commit is contained in:
Ayo Ayco 2025-11-03 16:10:10 +01:00
parent 91083a62c2
commit c685a1c35e

View file

@ -9,15 +9,6 @@ journal_dir="${notes_dir}/Journal"
month_dir=$(date +"%m %b")
typora_flag=false
# Parse options
while getopts "t" opt; do
case "$opt" in
t)
typora_flag=true # -t was given
;;
esac
done
# parse string args (when used as a function and passed "$@")
POSITIONAL_ARGS=()
while [[ $# -gt 0 ]]; do
@ -49,7 +40,7 @@ function createEntry() {
# Open in editor
if [ "$typora_flag" = true ]; then
typora "$full_path"
typora "$full_path" > /dev/null 2>/dev/null
else
vim "$full_path"
fi