t script style

This commit is contained in:
thek4n 2024-11-15 10:11:49 +03:00
parent 38ab46fa2a
commit a6b93d3a2f

View File

@ -75,8 +75,8 @@ get_notes_with_indexes() {
note_name="$(basename -- "${note}")" note_name="$(basename -- "${note}")"
if ${_TO_SHOW:-false}; then if ${_TO_SHOW:-false}; then
if [ "${#note_name}" -gt "$(($(tput cols)/2))" ]; then if [ "${#note_name}" -gt "$(($(tput cols)-12))" ]; then
note_name="$(echo "${note_name}" | cut -c -$(($(tput cols)/2-4)) )..." note_name="$(echo "${note_name}" | colrm $(($(tput cols)-12)))..."
fi fi
fi fi