-
Notifications
You must be signed in to change notification settings - Fork 423
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
LP_PATH_METHOD truncate till VCS root #761
Comments
Note that isn't a new suggestion: it was requested in #349 and then implemented in #465. However, since then, I have completely reworked how path generation is handled, and so #465 is very much impossible to merge. I never got around to doing it myself as the original reporter and PR opener never reappeared. There didn't seem to be any interest in such a feature. But now with this request, I will try to implement this myself. I admit that the new path shortening code is very complicated, so I wouldn't want to ask anyone else not familiar with it to attempt it. |
Upon inspection and further thought; this needs some user stories. If we add a new value for
Thoughts? |
I like the third idea, which may also have the potential to simplify the code. It should probably be added that the last method to be mentioned may be applied several times, whether the previous ones would be applied only once. |
I disagree, I think the first option should be applied as many times as possible, then the next one as many times as possible, etc. For options like what this issue is requesting, obviously you can only remove the part of the path before the VCS root once, so it doesn't matter. |
Truncate path till VCS root directory.
Description
When changing the directory to a VCS directory, truncate everything before the VSC root directory.
How will this be useful?
When working in a VCS environment, most of the path that leads to it can be superfluous since the focus is the environment.
Example prompt
The text was updated successfully, but these errors were encountered: