From 2aaa02848f074401e0d2baeacaf42a2f3432e342 Mon Sep 17 00:00:00 2001 From: Ayo Date: Tue, 24 Jun 2025 11:59:01 +0200 Subject: [PATCH] feat(journal): clear after append; add copy subcommand --- journal.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/journal.sh b/journal.sh index db466b0..da189e7 100755 --- a/journal.sh +++ b/journal.sh @@ -41,9 +41,16 @@ if [ "$1" = "append" ]; then read -p "Add thought: " thought time=$(date +'%r') echo $'\n'\> $thought \[$time\] >> "$full_path" + clear } || { echo ">>> Append failed" } + +## COPY content a note from a list +elif [ "$1" = "copy" ] || [ "$1" = "c" ]; then + echo "Copied content of $full_path" + xclip -sel c < "$full_path" + else createEntry fi