Comments (6)
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.
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.
from plug.kak.
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.
Should be fixed now. See if it works for you. New variable is named plug_block_ui
from plug.kak.
Thanks @andreyorst! Really appreciated. So far it seems to work great!
from plug.kak.
Related Issues (20)
- ensure: document deferred loading HOT 5
- nasty errors with `plug http://.../` (final slash) HOT 1
- plug-chain problems HOT 4
- plug theme HOT 3
- double .git stripping HOT 2
- jobs unhack HOT 4
- installing from plug-list doesn't respect plugin options HOT 3
- renaming plugin folders HOT 13
- Add option to skip rebuilding and load prebuilt plugin configuration HOT 1
- Errors in config blocks don't get brought to the user's attention HOT 2
- git URLs for private repos HOT 1
- No indication when the `do` block fails HOT 4
- Branch Specification adds a signifiant delay in startup time HOT 1
- File system loop detected HOT 5
- Check for URL scheme when searching for an URL in the plguin name HOT 5
- Suggestions for plugin authors? HOT 4
- demand doesn't work without a final %{} HOT 2
- Plugin status breaks if reflog empty HOT 3
- Enchance plug-list representation of manually loaded plugins
- defer block not works as expected HOT 2
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 plug.kak.