Git Product home page Git Product logo

Comments (5)

nelstrom avatar nelstrom commented on May 21, 2024

I think it's neat that you can review the results of running :call minpac#update() just by running:

:messages

It would be a shame to lose that feature.

I wonder if this issue with paging could be avoided by building a list of messages as the jobs are running. Then when all jobs have completed, use echom to output them all at once.

from minpac.

justinmk avatar justinmk commented on May 21, 2024

This is a known (intentional) limitation of nvim.

Fun trivia: jobs actually are processed during getchar() (in vim and nvim), but not most other waiting-for-confirmation scenarios ("press enter", 'more' prompt, g, ...).

My terminal window is 22 lines tall, allowing for 20 or so messages to be printed by echo or echom before the -- More -- prompt appears.

minpac could temporarily set 'nomore' to disable the pager.

from minpac.

nelstrom avatar nelstrom commented on May 21, 2024

@justinmk good idea! I've recorded a new screencast where I run:

:set nomore
:call minpac#update()

This time the jobs don't appear to be paused.

minpac-continuous-updates

from minpac.

kristijanhusak avatar kristijanhusak commented on May 21, 2024

@k-takata is there way to avoid the same issue when running post hooks?
For example, adding package like this causes it:

call minpac#add('w0rp/ale', { 'do': '!npm install -g prettier' })

from minpac.

k-takata avatar k-takata commented on May 21, 2024

How about using the minpac#job#start() function? e.g.

call minpac#add('w0rp/ale', { 'do': {-> minpac#job#start('npm install -g prettier') }})

(not tested)

from minpac.

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.