Files
neovim/runtime
Justin M. Keyes 97204e1cef os/shell: Throttle :! output, pulse "..." message.
Periodically skip :! spam. This is a "cheat" that works for all UIs and greatly
improves responsiveness when :! spams MB or GB of output:
    :!yes
    :!while true; do date; done
    :!git grep ''
    :grep -r '' *

After ~10KB of data is seen from a single :! invocation, output will be skipped
for ~1s and three dots "..." will pulse in the bottom-left. Thereafter the
behavior alternates at every:
    * 10KB received
    * ~1s throttled

This also avoids out-of-memory which could happen with large :! outputs.

Note: This commit does not change the behavior of execute(':!foo').
      execute(':!foo') returns the string ':!foo^M', it captures *only* Vim
      messages, *not* shell command output. Vim behaves the same way.
      Use system('foo') for capturing shell command output.

Closes #1234

Helped-by: oni-link <knil.ino@gmail.com>
2016-12-09 18:51:17 +01:00
..
2016-12-09 19:54:24 +01:00
2016-10-15 11:51:46 +09:00
2016-10-04 23:33:28 +09:00
2016-08-03 08:07:28 -04:00
2016-08-03 08:07:28 -04:00
2016-10-24 13:26:55 +02:00
2014-12-19 15:28:49 -05:00
2015-11-28 10:59:21 +01:00
2016-10-15 12:21:13 +09:00
2016-04-16 23:06:24 -07:00
2014-12-19 15:28:49 -05:00
2014-07-29 02:12:31 +00:00
2016-10-15 12:15:36 +09:00
2016-10-04 23:34:28 +09:00
2016-10-04 23:14:47 +09:00