Comments (15)
@dschaper you should try the binary on the release page at https://github.com/justjanne/powerline-go/releases/tag/v1.7.3 and then if fixed, ask the COPR repository maintainer to update it.
from powerline-go.
Nearly the same happen here with v1.7.1 but in this case it only shows the last line, the first part is missing/overwritten and doesn't show.
Output of powerline-go
at /tmp
\[\e[38;5;250m\]\[\e[48;5;240m\] \u \[\e[48;5;238m\]\[\e[38;5;240m\]\[\e[0m\]\[\e[38;5;250m\]\[\e[48;5;238m\] \h \[\e[48;5;237m\]\[\e[38;5;238m\]\[\e[0m\]\[\e[38;5;254m\]\[\e[48;5;237m\] tmp \[\e[48;5;236m\]\[\e[38;5;237m\]\[\e[0m\]\[\e[38;5;15m\]\[\e[48;5;236m\] \$ \[\e[0m\]\[\e[38;5;236m\]\[\e[0m\]
Output of powerline-go
at /tmp/a/very/long/path
\[\e[38;5;250m\]\[\e[48;5;240m\] \u \[\e[48;5;238m\]\[\e[38;5;240m\]\[\e[0m\]\[\e[38;5;250m\]\[\e[48;5;238m\] \h \[\e[48;5;237m\]\[\e[38;5;238m\]\[\e[0m\]\[\e[38;5;250m\]\[\e[48;5;237m\] tmp \[\e[48;5;237m\]\[\e[38;5;244m\]\[\e[0m\]\[\e[38;5;250m\]\[\e[48;5;237m\] a \[\e[48;5;237m\]\[\e[38;5;244m\]\[\e[0m\]\[\e[38;5;250m\]\[\e[48;5;237m\] very \[\e[48;5;237m\]\[\e[38;5;244m\]\[\e[0m\]\[\e[38;5;250m\]\[\e[48;5;237m\] long \[\e[48;5;237m\]\[\e[38;5;244m\]\[\e[0m\]\[\e[38;5;254m\]\[\e[48;5;237m\] path \[\e[48;5;236m\]\[\e[38;5;237m\]\[\e[0m\]\[\e[38;5;15m\]\[\e[48;5;236m\] \$ \[\e[0m\]\[\e[38;5;236m\]\[\e[0m\]
Tried with another terminal implementation not based on vte (Visual Studio Code integrated terminal) with the same problematic behaviour.
from powerline-go.
Could you try v1.7.3? This should fix this issue:
from powerline-go.
Sure. Tested and it isn't fixed here, see this session downloading 1.7.0, 1.7.1 and 1.7.3 and the output
from powerline-go.
I don’t see where the issue there is? It collapses segments based on what priorities you configured, and the default has the cwd segment with higher priority than the username segment.
So it first truncates segments based on priority, and, if that’s not possible anymore, it starts to remove segments based on priority.
As the readme explains, you can easily configure and modify those priorities.
from powerline-go.
This is a bug mix up
With default priority the output is
tmp > a > very > long > path > $
Changing priority to root,user,host,ssh,perms,git-branch,git-status,hg,jobs,exit,cwd
robert > __host__ > a > very > long > path > $
Note that only changing the priority for cwd make the cwd module to be smaller (truncate "tmp"), but the default never try to reduce it and just remove the other modules.
Do you think a new issue is needed or to not try to reduce the length of the cwd module before removing others is by design?
from powerline-go.
I'm planning to set separate priorities for the different parts of cwd in the next update.
cwd itself, and cwd-last for the current folder.
Then cwd itself would get lowest priority, and cwd-last the second highest.
Is that a working solution for you? Cutting down the path at first, until only the last part is left, then cutting down the rest?
from powerline-go.
The problem that I am running in to is that when a long path is in the powerline-go prompt, the full path is displayed, but the terminal prompt drops back and overwrites the prompt, as seen on line one of the image, the pwd
command is typing over the previously drawn powerline-go prompt.
from powerline-go.
@dschaper Did you try with v1.7.3? And if yes, does this still occur?
This seems like there’s an issue with your terminals configuration.
from powerline-go.
I'm running the lastest from the COPR repo.
sudo dnf info powerline-go
Last metadata expiration check: 1:15:05 ago on Wed 18 Oct 2017 11:47:32 AM PDT.
Installed Packages
Name : powerline-go
Version : 1.5.1
Release : 1.fc26
Arch : x86_64
Size : 2.2 M
Source : powerline-go-1.5.1-1.fc26.src.rpm
Repo : @System
From repo : eclipseo-powerline-go
from powerline-go.
@justjanne Splitting the priorities looks fine to me, thanks. For someone that works on long paths because of nested nature of Java packages, it is nice not to lose all other modules because the path is long
from powerline-go.
Thanks will do.
from powerline-go.
Powerline-go 1.7.3 fixes the collapse and closes my issue. Feel free to close it out, I have requested an updated package from COPR maintainer, but I don't want to close out this issue myself if there are other issues that need to be split off to a new issue. Thank you very much for the help.
from powerline-go.
@robmv Could you try v1.8.0, and tell me if your issue is properly resolved?
from powerline-go.
Wonderful, even with more segments (git) the path is shortened:
robert > __host__ > long > path > master > $
Thank you very much.
from powerline-go.
Related Issues (20)
- Fedora HOT 2
- Horizontal space on error HOT 1
- Docker context segment doesn't seem to recognize DOCKER_CONTEXT environment variable
- [Feature] Support for displaying Pulumi stack HOT 1
- Node segment shows up all the time if `node` is in the path.
- How to display git remote for tracking branch? HOT 2
- nix-shell segment uses a non-existent character HOT 2
- Shorten current working directory HOT 1
- Windows username is cropped
- modules-right not working in bash HOT 1
- Git staged tick is rendering grey, not white HOT 7
- Nice to have customizeable themes HOT 3
- No prompt in pyvenv.cfg makes venv incorrectly empty HOT 1
- Any plans to create new binaries? HOT 2
- Use the NIX_SHELL_PACKAGES variable in the nix-shell segment on Zsh
- Very slow startup for PowerShell 7.3.x on Windows 10
- [cwd] Display Unix-style path in Git Bash prompt
- venv style is incorrect
- direnv and venv segments HOT 3
- git tags for 1.24 release is not semver and cannot go install it
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from powerline-go.