diff --git a/ivy-rich.el b/ivy-rich.el index 69b0523..6834388 100644 --- a/ivy-rich.el +++ b/ivy-rich.el @@ -4,6 +4,7 @@ ;; Author: Yevgnen Koh ;; Package-Requires: ((emacs "24.4") (ivy "0.8.0")) +;; Package-Version: 20161228.2022 ;; Version: 0.0.1 ;; Keywords: ivy @@ -200,7 +201,8 @@ Currently the transformed format is 3 ; width of indicators ivy-rich-switch-buffer-buffer-size-length ivy-rich-switch-buffer-mode-max-length - ivy-rich-switch-buffer-project-max-length))) + (* 3 (length ivy-rich-switch-buffer-delimiter)) + (if (not (bound-and-true-p projectile-mode)) 0 ivy-rich-switch-buffer-project-max-length)))) (filename (propertize filename 'face 'ivy-virtual)) ;; Path (path (file-name-directory str)) @@ -211,6 +213,7 @@ Currently the transformed format is (format "%s%s%s" filename ivy-rich-switch-buffer-delimiter + (ivy-rich-switch-buffer-pad path (- (window-width) (length filename) ;; Fixed the unexpected wrapping in terminal