Change terminal title when editing a note

This commit is contained in:
Leonora Tindall 2024-08-31 18:05:29 -05:00
parent 5b956b096c
commit 58c309fe91
1 changed files with 2 additions and 0 deletions

2
nnote
View File

@ -43,6 +43,8 @@ else
printf "$NOTENAME$NOTEHEAD\n---\n\n" > "$NOTEPATH"
fi
pushd "$NOTESDIR" > /dev/null
printf "\033]2;$NOTENAME $NOTETYPE note\a"
$EDITOR "$NOTEPATH"
printf "\033]2;\a"
popd > /dev/null
fi