-
Notifications
You must be signed in to change notification settings - Fork 745
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
short dir listing for cwd #303
Comments
@jceaser you have the wrong project. You want: https://github.com/powerline/powerline Although we would certainly be happy to have you as a powerline-shell user :) |
well, I think I tried yours first then, why don't I try a little harder. |
Well wait, I have configured fish to use:
|
Ah ok - it may have just been the documentation getting mixed up then. This project doesn't have the exact configuration options you want though, I think. The customization available for the current directory can be seen here: https://github.com/banga/powerline-shell#segment-configuration Specifically the |
powerline-shell/powerline_shell/segments/cwd.py looks like my answer, I may fork the project and add a new parameter in the add_cwd_segment(). I just need to figure out how to "compile" and deploy on my box as a developer instead of a consumer. |
Changed the code, so what is the process here, you want me to fork the project and then make a pull request? I assume direct changes are not allowed? |
Here are some changes I have made to support the feature I'm requesting. I want to do a pull request, but I think people may not like how I configure my feature. The issue I want to ask about is my use of "-1" to indicate that the "max size" of the current directory should be all chars. "0" will effectively strip hide the current directory, where any positive number will result in that many chars being displayed. I could have just required users to put in 255 or some very large number to mean "full name". What does anyone here thing? |
Between using -1 and 255 - I prefer your choice of -1. It's clearer that it is a special flag. You could also allow the option to be a string in that case, like it could be I lean more toward keeping things simple and just introducing an option that is |
got it, will rework |
ok, updated to : jceaser@c599e7c In this change, you can provide the following:
if no comments I'll create a pull request. (how does unit testing work on this project) |
The documentation is completely confusing to me with regards to how I would use ~/.powerline-shell.py to set up short dir listings for the current working directory. What I would like to do is have only the first letter of each directory displayed except for the current directory which should be the full name. Documentation indicates this is possible using something like the bottom, but I'm totally confused as to how this is done. The documentation completely fails to describe how I actually do this.
#powerline.segments.common.env.cwd(dir_shorten_len=1)
The text was updated successfully, but these errors were encountered: