ui/doom-modeline: display filesize when matches segment is empty

This commit is contained in:
Henrik Lissner 2017-03-03 17:50:43 -05:00
parent ebf85fe0a8
commit f4a3f54ee6

View file

@ -472,12 +472,15 @@ lines are selected, or the NxM dimensions of a block selection."
'face (if (active) 'doom-modeline-panel)))) 'face (if (active) 'doom-modeline-panel))))
(def-modeline-segment! matches (def-modeline-segment! matches
"TODO" "Displays: 1. the currently recording macro, 2. A current/total for the
(or (concat (+doom-modeline--macro-recording) current search term (with anzu), 3. The number of substitutions being conducted
(+doom-modeline--anzu) with `evil-ex-substitute', and/or 4. The number of active `iedit' regions."
(+doom-modeline--evil-substitute) (let ((meta (concat (+doom-modeline--macro-recording)
(+doom-modeline--iedit)) (+doom-modeline--anzu)
" %I ")) (+doom-modeline--evil-substitute)
(+doom-modeline--iedit))))
(or (and (not (string-empty-p meta)) meta)
" %I ")))
(def-modeline-segment! media-info (def-modeline-segment! media-info
"TODO" "TODO"