Giter VIP home page Giter VIP logo

Comments (8)

justjanne avatar justjanne commented on May 23, 2024

Which terminal emulator are you using? I can’t replicate this

Screenshot showing powerline-go in zsh in Konsole breaking into multiple lines

from powerline-go.

muttleyxd avatar muttleyxd commented on May 23, 2024

It's called "terminator"

What I do is just split terminal window in half (split vertical hotkey) and then I go to the repository and it happens

from powerline-go.

justjanne avatar justjanne commented on May 23, 2024

I tried in terminator, and it’s not an issue there either:

Screenshot from terminator

It seems to be an issue of Fish Shell: Prompt changes to ">" when fish thinks it's too long #904

But it seems like we should introduce a solution where we automatically truncate segments when the prompt becomes too long. I’m thinking of adding a switch to define the priority of segments in order, so that it removes segments by priority if it becomes too long.

from powerline-go.

muttleyxd avatar muttleyxd commented on May 23, 2024

Okay, thanks for your investigation - that's quite weird behavior of Fish, but I guess it probably will not be fixed considering how old the bug report is (2013).

from powerline-go.

justjanne avatar justjanne commented on May 23, 2024

Would the suggested option above (removing segments by priority if the result would end up too long) work for you? If yes, I’d implement that.

from powerline-go.

justjanne avatar justjanne commented on May 23, 2024

@muttleyxd I introduced now the priority system, which should automatically cut down the length of the shell, please try if this works for you.

Screenshot showing terminals with different width, and the prompt automatically downsizing

from powerline-go.

muttleyxd avatar muttleyxd commented on May 23, 2024

It seems like Fish overrides this behavior and does not call fish_prompt when terminal is too small. However after splitting few times in terminator Fish complains about terminal not being large enough and it starts working properly (until resize).

Welcome to fish, the friendly interactive shell
<W> fish: Current terminal parameters set terminal size to unreasonable value.
<W> fish: Defaulting terminal size to 80x24.

fishy

from powerline-go.

justjanne avatar justjanne commented on May 23, 2024

I’m not sure if there’s anything else I can do here, but I’m gonna close this issue, and you’ll have to file one with the fish project.

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.