Re: Scroll-off option for mutt

2017-05-07 Thread Yubin Ruan
On Sun, May 07, 2017 at 09:40:46AM -0700, Kevin J. McCarthy wrote:
> On Mon, May 08, 2017 at 05:49:40AM +0800, Yubin Ruan wrote:
> > Is it possible to do this for the sidebar in mutt? Are there anything like
> > $sidebar_scroll and $sidebar_context?
> 
> Not currently.  It's a good suggestion though.  I'll look into it.

Please let me know if there are anything new :)

---
Yubin


Re: Scroll-off option for mutt

2017-05-07 Thread Kevin J. McCarthy
On Mon, May 08, 2017 at 05:49:40AM +0800, Yubin Ruan wrote:
> Is it possible to do this for the sidebar in mutt? Are there anything like
> $sidebar_scroll and $sidebar_context?

Not currently.  It's a good suggestion though.  I'll look into it.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Scroll-off option for mutt

2017-05-07 Thread Yubin Ruan
On Mon, May 08, 2017 at 05:44:13AM +0800, Yubin Ruan wrote:
> On Sat, May 06, 2017 at 08:12:41PM -0700, Kevin J. McCarthy wrote:
> > On Sun, May 07, 2017 at 05:43:00PM +0800, Yubin Ruan wrote:
> > > On Sat, May 06, 2017 at 09:50:50AM -0700, Kevin J. McCarthy wrote:
> > > > On Sun, May 07, 2017 at 03:36:41AM +0800, Yubin Ruan wrote:
> > > > > Is there a scroll-off option for mutt? In vim, you can use
> > > > > set scrolloff = 7
> > > > > to make the editor scroll rather than changing pages when you get to 
> > > > > the end of
> > > > > the current page, so that you can see things continuously. But for 
> > > > > mutt's pager,
> > > > > it seems not possible to do so. Anyone know any alternative methods?
> > > > 
> > > >  and  can scroll line by line.  $pager_context
> > > > can give you some overlap when scrolling page by page.
> > > 
> > > Hmm...I mean the index (where all the emails are listed), not pager. I 
> > > can make
> > > the pager scroll. But I cannot make the index do so. Sorry for the misuse 
> > > of
> > > terminology.
> > 
> > Sorry about my misunderstanding.  As Erik mentioned, there is
> > $menu_scroll, but may want to also try setting $menu_context=7.  With
> > both of them set, I hope that may be close to what you are looking for.
> 
> Thanks. $menu_scroll and $menu_context is exactly what I want.

Is it possible to do this for the sidebar in mutt? Are there anything like
$sidebar_scroll and $sidebar_context?

---
Yubin


Re: Scroll-off option for mutt

2017-05-07 Thread Yubin Ruan
On Sat, May 06, 2017 at 08:12:41PM -0700, Kevin J. McCarthy wrote:
> On Sun, May 07, 2017 at 05:43:00PM +0800, Yubin Ruan wrote:
> > On Sat, May 06, 2017 at 09:50:50AM -0700, Kevin J. McCarthy wrote:
> > > On Sun, May 07, 2017 at 03:36:41AM +0800, Yubin Ruan wrote:
> > > > Is there a scroll-off option for mutt? In vim, you can use
> > > > set scrolloff = 7
> > > > to make the editor scroll rather than changing pages when you get to 
> > > > the end of
> > > > the current page, so that you can see things continuously. But for 
> > > > mutt's pager,
> > > > it seems not possible to do so. Anyone know any alternative methods?
> > > 
> > >  and  can scroll line by line.  $pager_context
> > > can give you some overlap when scrolling page by page.
> > 
> > Hmm...I mean the index (where all the emails are listed), not pager. I can 
> > make
> > the pager scroll. But I cannot make the index do so. Sorry for the misuse of
> > terminology.
> 
> Sorry about my misunderstanding.  As Erik mentioned, there is
> $menu_scroll, but may want to also try setting $menu_context=7.  With
> both of them set, I hope that may be close to what you are looking for.

Thanks. $menu_scroll and $menu_context is exactly what I want.

---
Yubin


Re: Scroll-off option for mutt

2017-05-06 Thread Kevin J. McCarthy
On Sun, May 07, 2017 at 05:43:00PM +0800, Yubin Ruan wrote:
> On Sat, May 06, 2017 at 09:50:50AM -0700, Kevin J. McCarthy wrote:
> > On Sun, May 07, 2017 at 03:36:41AM +0800, Yubin Ruan wrote:
> > > Is there a scroll-off option for mutt? In vim, you can use
> > > set scrolloff = 7
> > > to make the editor scroll rather than changing pages when you get to the 
> > > end of
> > > the current page, so that you can see things continuously. But for mutt's 
> > > pager,
> > > it seems not possible to do so. Anyone know any alternative methods?
> > 
> >  and  can scroll line by line.  $pager_context
> > can give you some overlap when scrolling page by page.
> 
> Hmm...I mean the index (where all the emails are listed), not pager. I can 
> make
> the pager scroll. But I cannot make the index do so. Sorry for the misuse of
> terminology.

Sorry about my misunderstanding.  As Erik mentioned, there is
$menu_scroll, but may want to also try setting $menu_context=7.  With
both of them set, I hope that may be close to what you are looking for.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Scroll-off option for mutt

2017-05-06 Thread Yubin Ruan
On Sat, May 06, 2017 at 09:50:50AM -0700, Kevin J. McCarthy wrote:
> On Sun, May 07, 2017 at 03:36:41AM +0800, Yubin Ruan wrote:
> > Is there a scroll-off option for mutt? In vim, you can use
> > set scrolloff = 7
> > to make the editor scroll rather than changing pages when you get to the 
> > end of
> > the current page, so that you can see things continuously. But for mutt's 
> > pager,
> > it seems not possible to do so. Anyone know any alternative methods?
> 
>  and  can scroll line by line.  $pager_context
> can give you some overlap when scrolling page by page.

Hmm...I mean the index (where all the emails are listed), not pager. I can make
the pager scroll. But I cannot make the index do so. Sorry for the misuse of
terminology.

---
Yubin


Re: Scroll-off option for mutt

2017-05-06 Thread Kevin J. McCarthy
On Sun, May 07, 2017 at 03:36:41AM +0800, Yubin Ruan wrote:
> Is there a scroll-off option for mutt? In vim, you can use
> set scrolloff = 7
> to make the editor scroll rather than changing pages when you get to the end 
> of
> the current page, so that you can see things continuously. But for mutt's 
> pager,
> it seems not possible to do so. Anyone know any alternative methods?

 and  can scroll line by line.  $pager_context
can give you some overlap when scrolling page by page.

-- 
Kevin J. McCarthy
GPG Fingerprint: 8975 A9B3 3AA3 7910 385C  5308 ADEF 7684 8031 6BDA


signature.asc
Description: PGP signature


Re: Scroll-off option for mutt

2017-05-06 Thread Erik Christiansen
On 07.05.17 03:36, Yubin Ruan wrote:
> Hi,
> Is there a scroll-off option for mutt? In vim, you can use
> set scrolloff = 7
> to make the editor scroll rather than changing pages when you get to the end 
> of
> the current page, so that you can see things continuously. But for mutt's 
> pager,
> it seems not possible to do so. Anyone know any alternative methods?

AFAICT, there's only menu_scroll, and half_up/half_down (half page)
commands. If you were to bind the latter to a pair of keys, then you'd
almost half have scrolling in the pager.

On the other hand, if one were to set $pager to use vim rather than the
built-in pager, then scrolloff would be gained ... but the ability to delete
the message within the pager would be lost - you'd have to exit first.
Naturally, vim would be invoked read-only, e.g. as "view", for a modicum
of clumsiness protection.

The pager can be set in hooks, e.g. so the external pager is only used
for some folders or senders.

Erik


Scroll-off option for mutt

2017-05-06 Thread Yubin Ruan
Hi,
Is there a scroll-off option for mutt? In vim, you can use
set scrolloff = 7
to make the editor scroll rather than changing pages when you get to the end of
the current page, so that you can see things continuously. But for mutt's pager,
it seems not possible to do so. Anyone know any alternative methods?

Thanks,
Yubin