skywind3000 / asyncrun.vim

:rocket: Run Async Shell Commands in Vim 8.0 / NeoVim and Output to the Quickfix Window !!
https://www.vim.org/scripts/script.php?script_id=5431
MIT License
1.84k stars 109 forks source link

Any way to auto-scroll when using term with no focus? #268

Closed skamsie closed 1 year ago

skamsie commented 1 year ago

I would like to have auto-scroll similar to the quickfix window when using -mode=term and -focus=0 similar to how it is for the default (quickfix window). Is there any way to achieve this?

For example with this command there is no auto-scroll :AsyncRun -mode=term -pos=bottom -focus=0 -scroll=1 -rows=20 ruby %

skywind3000 commented 1 year ago

fixed in:

https://github.com/skywind3000/asyncrun.vim/releases/tag/2.11.11

skamsie commented 1 year ago

fixed in:

https://github.com/skywind3000/asyncrun.vim/releases/tag/2.11.11

Indeed. thank you for fixing it so fast! Great plugin by the way ⭐

skywind3000 commented 1 year ago

please update again, I have enabled reuse by default for split terminal buffers:

https://github.com/skywind3000/asyncrun.vim/releases/tag/2.11.12

skywind3000 commented 1 year ago

polish it again, a terminal window can only be reused if it is created by asyncrun. prevent side-effect to other terminal related plugins.

skamsie commented 1 year ago

@skywind3000 If you don't mind adding, now the autoscroll can't be disabled when -mode=term and -focus=0 (basically passing -scroll=0 is ignored). It's not something I would personally use, but for consistency's sake it would be nice to have this parameter work as it does for the quickfix window.

skywind3000 commented 1 year ago

updated