From a134bdbc520f05681c37c42ad1c7a618c4a5350d Mon Sep 17 00:00:00 2001 From: Konstantin Nazarov Date: Sat, 23 Nov 2024 20:20:58 +0000 Subject: [PATCH] Fix the order of notes --- q-notes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q-notes b/q-notes index 5d5b2c2..7c3fcab 100755 --- a/q-notes +++ b/q-notes @@ -10,7 +10,7 @@ elif [[ "$1" == "--hint" ]]; then shift elif [[ "$1" == "--complete" ]]; then shift - notes.sh -l | awk '{printf("%s n", $1); for (i=2; i<=NF; i++) printf(" %s", $i); print("");}' + notes.sh -l | tac | awk '{printf("%s n", $1); for (i=2; i<=NF; i++) printf(" %s", $i); print("");}' elif [[ "$1" == "--preview" ]]; then shift notes.sh -p "$1"