feature/evil: abbreviate :P filename modifier

This commit is contained in:
Henrik Lissner 2017-04-15 01:28:38 -04:00
parent e32a804f1d
commit a71ca4d340
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ flags. See http://vimdoc.sourceforge.net/htmldoc/cmdline.html#filename-modifiers
(unless global 1)))))
("P"
(let ((default-directory (file-name-directory (expand-file-name path))))
(doom-project-root)))
(abbreviate-file-name (doom-project-root))))
(_ path))
"")))
;; strip trailing slash, if applicable