(string-width name))
?\s)
mode
+ (make-string (- (+ max-mode 2)
+ (string-width mode))
+ ?\s)
(if-let ((file-name (buffer-file-name buf)))
- (concat
- (make-string (- (+ max-mode 2)
- (string-width mode))
- ?\s)
- file-name)
- (when-let ((proc (get-buffer-process buf)))
- (concat
- (make-string (- (+ max-mode 2)
- (string-width mode))
- ?\s)
- (format "%s (%s)"
- (process-name proc)
- (process-status proc))))))
+ (abbreviate-file-name file-name)
+ (if-let ((proc (get-buffer-process buf)))
+ (format "%s (%s)"
+ (process-name proc)
+ (process-status proc))
+ (abbreviate-file-name
+ (buffer-local-value 'default-directory buf)))))
'face 'completions-annotations))
(list name (concat (propertize "X" 'face 'completions-annotations)
" ")