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"