Fix the order of notes

This commit is contained in:
Konstantin Nazarov 2024-11-23 20:20:58 +00:00
parent bee2b54c31
commit a134bdbc52
Signed by: knazarov
GPG key ID: 4CFE0A42FA409C22

View file

@ -10,7 +10,7 @@ elif [[ "$1" == "--hint" ]]; then
shift shift
elif [[ "$1" == "--complete" ]]; then elif [[ "$1" == "--complete" ]]; then
shift 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 elif [[ "$1" == "--preview" ]]; then
shift shift
notes.sh -p "$1" notes.sh -p "$1"