Marius Gedminas wrote:

> On Wed, Jun 08, 2016 at 10:33:55PM +0200, Christian Brabandt wrote:
> > Hi skywind3000!
> > 
> > On Do, 09 Jun 2016, skywind3...@163.com wrote:
> > 
> > > ":cbottom" seems more adaptive than auto scroll
> > 
> > Why? I think it has been shown, that depending on the use case auto 
> > scroll does not make sense always. So it's not that hard, to simply 
> > scroll manually, whenever you need. I am not sure, an extra :cbottom 
> > command is really needed, but I am not against it.
> 
> How about a compromise: any build/grep/etc. plugin that adds new lines
> to the end of the quickfix should autoscroll if and only the bottom line
> was already visible.
> 
> This way if the user switched to the quickfix window and started
> studying the 1st error or whatnot, they won't be distracted by
> autoscrolling.  And if the user just wants to see how the build is
> progressing, they don't need to do anything special.
> 
> Now implementation-wise maybe it's best to have a way for vimscript to
> determine if the bottom quickfix row is visible or not, before adding
> new lines, and then the script can call the suggested :cbottom depending
> on the saved result.

This doesn't work if the window starts (almost) empty, then the last
line is always visible.  And then you can't avoid the scrolling.  Would
have to go to the window and scroll it down a bit, that's not nice.

-- 
hundred-and-one symptoms of being an internet addict:
78. You find yourself dialing IP numbers on the phone.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui