Display nick as the object name if available

This commit is contained in:
Milan Zamazal 2022-07-02 09:18:09 +02:00
parent 55977bbc70
commit b54e3e4af6

View File

@ -109,7 +109,7 @@ The indicator is displayed only on graphical terminals."
'("application.name") '("application.name")
(let ((prefix (concat (downcase type) "."))) (let ((prefix (concat (downcase type) ".")))
(mapcar (lambda (suffix) (concat prefix suffix)) (mapcar (lambda (suffix) (concat prefix suffix))
'("description" "name")))))) '("nick" "description" "name"))))))
(or (cl-find-if #'identity (or (cl-find-if #'identity
(mapcar (lambda (p) (pw-lib-object-value object p)) (mapcar (lambda (p) (pw-lib-object-value object p))
description-properties)) description-properties))