Function: ghostel-annotate-buffer
ghostel-annotate-buffer is a natively compiled function defined in
ghostel.el.
Signature
(ghostel-annotate-buffer NAME)
Documentation
Return a completion annotation for the ghostel buffer named NAME, or nil.
The annotation is the terminal title, capped at
ghostel-annotation-title-width columns.
Source Code
;; Defined in /nix/store/1252krff0gb2kisjcpp45m50cpdskfrl-emacs-packages-deps/share/emacs/site-lisp/ghostel.el
(defun ghostel-annotate-buffer (name)
"Return a completion annotation for the ghostel buffer named NAME, or nil.
The annotation is the terminal title, capped at
`ghostel-annotation-title-width' columns."
(when-let* ((buffer (get-buffer name))
(title (buffer-local-value 'ghostel-title buffer)))
(concat " " (if ghostel-annotation-title-width
(truncate-string-to-width
title ghostel-annotation-title-width nil nil t)
title))))