ref script t

This commit is contained in:
thek4n 2024-11-08 11:48:31 +03:00
parent e3ef76a626
commit fe80a79846

View File

@ -61,6 +61,10 @@ show_notes_with_indexes() {
for note in $(IFS="${IFS}" get_notes_sorted_by_access_time) for note in $(IFS="${IFS}" get_notes_sorted_by_access_time)
do do
note_lines="$(wc -l < "${note}")" note_lines="$(wc -l < "${note}")"
if [ "${note_lines}" -gt 0 ]; then
note_lines="$((note_lines+1))"
fi
if [ "${note_lines}" -gt 70 ]; then if [ "${note_lines}" -gt 70 ]; then
note_lines="..." note_lines="..."
elif [ "${note_lines}" -eq 0 ]; then elif [ "${note_lines}" -eq 0 ]; then