Sitelet https://web.archive.org/web/20201223062421/https://github.com/b-ryan/powerline-shell/issues/501
Skip to content
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

Feature Request: Ellipsis to represent cut characters in `cwd` segment with option `max_dir_size` #501

Open
JeanOlivier opened this issue Aug 21, 2020 · 0 comments

Comments

@JeanOlivier
Copy link

@JeanOlivier JeanOlivier commented Aug 21, 2020

I'd like to have an option to use an ellipsis to show that some character were cut in a directory name in the cwd segment.

So this ~/some/directories/and_one_with_a_very_long_name would appear as ~/some/directories/and_one_wit… instead of ~/some/directories/and_one_with with option "max_dir_size": 12.

It should be fairly straighforward to implement in segments/cwd.py in the maybe_shorten_name function.

I tried to implement it on my own, but I couldn't get my own custom segment to be loaded by powerline_shell.

Any help to either implement this or assistance in executing custom segments would be appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.