Giter Club home page Giter Club logo

Comments (6)

andreyorst avatar andreyorst commented on May 23, 2024

Right now plug.kak is fully asyncronous, and making it synchronous may prove to be a bit difficult, because rightnow the code simply creates subshels in the background. There's no logic whether not to put it to background, because I'm not sure if it is possible to do in shellscript.

We could workaround it by adding a user hook plug_after_update or something like that, and you could call quit on it for example. Not sure how feasible this is really.

from plug.kak.

dead10ck avatar dead10ck commented on May 23, 2024

I mean.. sorry if this sounds a bit dismissive, because I may be speaking from ignorance here, but you can make any asynchronous system synchronous by simply waiting on the task immediately. Right? In bash this would be the wait built-in.

from plug.kak.

andreyorst avatar andreyorst commented on May 23, 2024

from plug.kak.

dead10ck avatar dead10ck commented on May 23, 2024

Oh, sorry, I did not make this very clear, but yes, it would actually be desirable for updates to happen in parallel still, but the prompt simply does not exit until all the updates are done. This way doing kak -e 'plug-update; quit' will wait for the update to finish before running quit. This is what happens with the vim example I mentioned.

from plug.kak.

andreyorst avatar andreyorst commented on May 23, 2024

Should be fixed now. See if it works for you. New variable is named plug_block_ui

from plug.kak.

dead10ck avatar dead10ck commented on May 23, 2024

Thanks @andreyorst! Really appreciated. So far it seems to work great!

from plug.kak.

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.