Permanently display workspaces in minibuffer

When pressing SPCTABTAB (or C-cwd for non-evil users), you will see this in the minibuffer:

image

However, this quickly disappears on the next input or if the minibuffer is used to display anything else. Some users want to be able to always see this (at least, while the minibuffer is not in use). This hack will accomplish that:

(after! persp-mode
  (defun display-workspaces-in-minibuffer ()
    (with-current-buffer " *Minibuf-0*"
      (erase-buffer)
      (insert (+workspace--tabline))))
  (run-with-idle-timer 1 t #'display-workspaces-in-minibuffer)
  (+workspace/display))
7 Likes