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
Smarter projectile-edit-dir-locals #1135
Comments
Actually, |
PRs welcome! :-) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Testing whether this comment counts as activity. ;) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Ping. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding! |
Ping. |
@basil-conto It'd be even better if you tried to implement some of your ideas. Unfortunately I'm short on time for Projectile these days and this issue is fairly low in my todo list. |
Same here, and I've since switched from using Projectile to the built-in |
Expected behaviour
More control over location of and workflow around
dir-locals-file
s.In this issue I wish to:
projectile-edit-dir-locals
.Actual behaviour
Limitations of command
projectile-edit-dir-locals
:The
dir-locals-file
name is currently hard-coded as".dir-locals.el"
, which does not takedir-locals-file-2
or MS-DOS limitations into account.The
dir-locals-file
is expanded relative to(projectile-project-root)
and thus does not support nesteddir-locals-file
s.Steps to reproduce the problem
Environment & Version information
Projectile version information
Emacs version
Operating system
Request for Comments
The following suggestions address some of the aforementioned limitations.
dir-locals-file
by default, e.g.The user could be offered a list of all
dir-locals-file
s found betweendefault-directory
and(projectile-project-root)
.A customisation variable could determine whether to prefer the root vs nearest
dir-locals-file
found, whether to ask the user or whether to offer possible completions.If no
dir-locals-file
s are found, the user could be prompted for a directory in which to create one.I would appreciate feedback on the given issues and suggestions. I would also be happy to work on a patch for any ensuing decisions, if I am given some initial pointers.
Thank you for this excellent and useful package!
The text was updated successfully, but these errors were encountered: