-
Notifications
You must be signed in to change notification settings - Fork 161
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disabling symbolic links expanding #209
Comments
It seems duplicate with #51 . |
That's right I guess. But still, I don't see any clean solution, should I use this snippet somewhere? |
Yes, please try it and let me know the results. |
I am afraid it's as designed. I am curious why you use |
Too bad. I use Maybe at least this snippet can get into upstream so that mouseover would work? |
Well, I reproduced the issue and found the root cause finally. Please try this snippet and let me know the result. Thanks! (defun doom-modeline-project-root ()
"Get the path to the root of your project.
Return `default-directory' if no project was found."
(or doom-modeline-project-root
(setq doom-modeline-project-root
(or (and (fboundp 'project-current)
(ignore-errors
(when-let ((project (project-current)))
(expand-file-name (car (project-roots project))))))
(and (bound-and-true-p projectile-mode)
(ignore-errors (projectile-project-root)))
default-directory)))) |
Fix #51 and #209. Root cause: bbatsov/projectile#1387.
It works now, thank you! |
@Svadkos Can you take a look at #224 (comment) , and let me know your opinion? |
How to detect the project root. The default priority of detection is `ffip' > `projectile' > `project'. nil means to use `default-directory'. The project management packages have some issues on detecting project root. e.g. `projectile' doesn't handle symlink folders well, while `project' is unable to hanle sub-projects. You can specify one if you encounter the issue. For more details, refer to #209. Close #224.
I add a new option ( Please refer to item 7 in FAQ |
So far, everything works well, thanks again. |
From doomemacs/doomemacs#1660
Describe
I was trying to disable symbolic links expanding and ended up with this mess
It affects directories with git, and works without problems in normal dirs.
Steps and Expected
(setq-default find-file-visit-truename nil)
in doom/config.el, then open any file in directory with git and symbolic link in path.Environment:
The text was updated successfully, but these errors were encountered: