doom-project-(find-file|browse): resolve symlinks
This prevents absolute paths appearing in many find-in/browse commands, like +default/find-in-emacsd, +default/find-in-config, or +default/browse-project.
This commit is contained in:
parent
937f118e6a
commit
d2f9d28577
1 changed files with 3 additions and 3 deletions
|
@ -74,8 +74,8 @@ If NOCACHE, don't fetch a cached answer."
|
|||
(defun doom-project-find-file (dir)
|
||||
"Fuzzy-find a file under DIR."
|
||||
(without-project-cache!
|
||||
(let ((default-directory dir)
|
||||
(projectile-project-root dir))
|
||||
(let* ((default-directory (file-truename dir))
|
||||
(projectile-project-root default-directory))
|
||||
(call-interactively
|
||||
;; completion modules may remap this command
|
||||
(or (command-remapping #'projectile-find-file)
|
||||
|
@ -84,7 +84,7 @@ If NOCACHE, don't fetch a cached answer."
|
|||
;;;###autoload
|
||||
(defun doom-project-browse (dir)
|
||||
"Traverse a file structure starting linearly from DIR."
|
||||
(let ((default-directory dir))
|
||||
(let ((default-directory (file-truename dir)))
|
||||
(call-interactively
|
||||
;; completion modules may remap this command
|
||||
(or (command-remapping #'find-file)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue