Re: Possible to not leave pager if up on first or down on last message?

2017-12-22 Thread Scott Kostyshak
On Fri, Dec 22, 2017 at 03:49:11PM +, Ben Boeckel wrote:
> On Fri, Dec 22, 2017 at 19:38:15 +1100, Erik Christiansen wrote:
> > On the contrary, Ben's key bindings do keep you in the pager,
> > substituting line up/down for message up/down. (It's something which
> > I've also adopted long ago, as the default is alien.)
> 
> They're Todd's, not mine :) . It makes it move lines, but if you want to
> move to the next message, I don't think there's away to say "move to the
> next message unless this is the last one" and similarly for the first
> message.

Thanks, Ben and Erik. I should have been more specific. Indeed, as Ben
mentions I would still like to use the default navigation across
messages (I like using Return/backspace within messages), I just wanted
to change only that one behavior of  and .

Scott


Re: Possible to not leave pager if up on first or down on last message?

2017-12-22 Thread Ben Boeckel
On Fri, Dec 22, 2017 at 19:38:15 +1100, Erik Christiansen wrote:
> On the contrary, Ben's key bindings do keep you in the pager,
> substituting line up/down for message up/down. (It's something which
> I've also adopted long ago, as the default is alien.)

They're Todd's, not mine :) . It makes it move lines, but if you want to
move to the next message, I don't think there's away to say "move to the
next message unless this is the last one" and similarly for the first
message.

--Ben


Re: Possible to not leave pager if up on first or down on last message?

2017-12-22 Thread Erik Christiansen
On 20.12.17 23:30, Scott Kostyshak wrote:
> > Ben Boeckel wrote:
> > bindpager   previous-line
> > bindpager next-line
...
> 
> Thank you for the replies, Todd and Ben.
> 
> It seems there's not a configuration variable for what I would like to
> achieve.

On the contrary, Ben's key bindings do keep you in the pager,
substituting line up/down for message up/down. (It's something which
I've also adopted long ago, as the default is alien.)

Erik


Re: Possible to not leave pager if up on first or down on last message?

2017-12-20 Thread Scott Kostyshak
On Wed, Dec 20, 2017 at 09:00:34PM +, Todd Zullinger wrote:
> Ben Boeckel wrote:
> > On Wed, Dec 20, 2017 at 14:14:38 -0500, Todd Zullinger wrote:
> >> I think you want the pager_stop? variable:
> >> 
> >> 3.169. pager_stop
> >> 
> >> Type: boolean
> >> Default: no
> >> 
> >> When set, the internal-pager will not move to the next
> >> message when you are at the end of a message and invoke
> >> the  function.
> > 
> > That's for internal page navigation. Pressing  or  is an index
> > operation and doesn't affect Scott's issue. (This is the setup I have
> > now and Up/Down still close the pager for me.)
> 
> Oops, sorry about that.  I also have some key bindings to
> remap  and  which I didn't remember.
> 
> bindpager   previous-line
> bindpager next-line
> 
> I knew this sort of thing used to bug me and when I looked
> at pager_stop in my muttrc, I thought that was it.  It's
> been many years since I set most of these things.  My memory
> is obviously not as clear as I'd like to think. ;)
> 
> -- 
> Todd
> ~~
> Fleas can be taught nearly anything that a Congressman can.
> -- Mark Twain
> 

Thank you for the replies, Todd and Ben.

It seems there's not a configuration variable for what I would like to
achieve.

Scott


Re: Possible to not leave pager if up on first or down on last message?

2017-12-20 Thread Todd Zullinger
Ben Boeckel wrote:
> On Wed, Dec 20, 2017 at 14:14:38 -0500, Todd Zullinger wrote:
>> I think you want the pager_stop? variable:
>> 
>> 3.169. pager_stop
>> 
>> Type: boolean
>> Default: no
>> 
>> When set, the internal-pager will not move to the next
>> message when you are at the end of a message and invoke
>> the  function.
> 
> That's for internal page navigation. Pressing  or  is an index
> operation and doesn't affect Scott's issue. (This is the setup I have
> now and Up/Down still close the pager for me.)

Oops, sorry about that.  I also have some key bindings to
remap  and  which I didn't remember.

bindpager   previous-line
bindpager next-line

I knew this sort of thing used to bug me and when I looked
at pager_stop in my muttrc, I thought that was it.  It's
been many years since I set most of these things.  My memory
is obviously not as clear as I'd like to think. ;)

-- 
Todd
~~
Fleas can be taught nearly anything that a Congressman can.
-- Mark Twain



signature.asc
Description: PGP signature


Re: Possible to not leave pager if up on first or down on last message?

2017-12-20 Thread Ben Boeckel
On Wed, Dec 20, 2017 at 14:14:38 -0500, Todd Zullinger wrote:
> I think you want the pager_stop? variable:
> 
> 3.169. pager_stop
> 
> Type: boolean
> Default: no
> 
> When set, the internal-pager will not move to the next
> message when you are at the end of a message and invoke
> the  function.

That's for internal page navigation. Pressing  or  is an index
operation and doesn't affect Scott's issue. (This is the setup I have
now and Up/Down still close the pager for me.)

--Ben


Re: Possible to not leave pager if up on first or down on last message?

2017-12-20 Thread Todd Zullinger
Hi Scott,

Scott Kostyshak wrote:
> When I'm in the pager and on the first message, if I accidentally press
>  it takes me to the index, with a message of "You are on the first
> message". This makes sense, but I would prefer to stay in the pager.
> Similarly for pressing  on the last messsage, I would prefer to
> stay in the pager. Is it possible to configure this?
> 
> My use case is I find it very helpful to be able to focus on one email
> at a time, without knowing how many emails I have. I start mutt with:
> 
> mutt -e "push "

I think you want the pager_stop¹ variable:

3.169. pager_stop

Type: boolean
Default: no

When set, the internal-pager will not move to the next
message when you are at the end of a message and invoke
the  function.

¹ http://www.mutt.org/doc/manual/#pager-stop

-- 
Todd
~~
In my life, I have prayed but one prayer: oh Lord, make my enemies
ridiculous. And God granted it.
-- Voltaire



signature.asc
Description: PGP signature