Giter VIP home page Giter VIP logo

Comments (3)

zzamboni avatar zzamboni commented on September 24, 2024

@krader1961 thanks for the report - I had never noticed the first race condition since I don't use a right-side prompt :)

I agree with your proposed solution, so I have added it to the module. I think this might also be "good enough" without calling gitstatus:start after load, since this would also need to check if any git segments are present, and it might still miss if the segments are changed afterwards. Assuming git segments are only on one side, then the new check in -build-chain will also ensure gitstatus is only started once.

I would appreciate your feedback if you continue to see some problems.

from elvish-themes.

krader1961 avatar krader1961 commented on September 24, 2024

I updated to the current version a few minutes ago and things look good. No unexpected exceptions and the new chain:prompt-segment-delimiters var works fine.

from elvish-themes.

zzamboni avatar zzamboni commented on September 24, 2024

@krader1961 I was thinking that if someone wanted to have git segments on both sides, you could work around the issue by manually starting gitstatusd after loading the theme, e.g:

use github.com/zzamboni/elvish-themes/chain
chain:gitstatus:start

I am going to document this, in case anyone encounters this issue.

from elvish-themes.

Related Issues (9)

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.