Giter VIP home page Giter VIP logo

Comments (15)

robmv avatar robmv commented on June 4, 2024 1

@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.

robmv avatar robmv commented on June 4, 2024

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.

justjanne avatar justjanne commented on June 4, 2024

Could you try v1.7.3? This should fix this issue:

screenshot_20171018_183737

from powerline-go.

robmv avatar robmv commented on June 4, 2024

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

screenshot from 2017-10-18 13-54-12

from powerline-go.

justjanne avatar justjanne commented on June 4, 2024

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.

robmv avatar robmv commented on June 4, 2024

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.

justjanne avatar justjanne commented on June 4, 2024

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.

dschaper avatar dschaper commented on June 4, 2024

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.
pwgo

from powerline-go.

justjanne avatar justjanne commented on June 4, 2024

@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.

dschaper avatar dschaper commented on June 4, 2024

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.

robmv avatar robmv commented on June 4, 2024

@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.

dschaper avatar dschaper commented on June 4, 2024

Thanks will do.

from powerline-go.

dschaper avatar dschaper commented on June 4, 2024

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.

justjanne avatar justjanne commented on June 4, 2024

@robmv Could you try v1.8.0, and tell me if your issue is properly resolved?

from powerline-go.

robmv avatar robmv commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.