Subject: [sup-talk] Smooth Paging

From: [email-masked] (Andrei Thorp)
Date: Fri, 31 Jul 2009 11:17:28 -0400

Hello,

One thing's that I've found a bit suboptimal in Sup has been the paging
ie. scrolling of e-mails. When you reach the bottom, it scrolls the
whole page up, rather than scrolling smoothly as might be the default
behaviour of Vim for example.

I find this really awkward at times, since I can't see what I just read
while reading the next line. It's also just kind of jumpy. One main use
case that his damages is when I'm doing patch review on mailing lists
and stuff.

I'll open a long e-mail with diffs in it, and I will be scrolling to see
the patch. Then, as I reach the bottom, it jumps and hides what I just
read, making understanding code logic painful at times. So then I have
to jump up and down some more to figure it out, but that sucks because I
have to look between the top and bottom of the screen.

What do you guys think?
-- 
Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)

---

From: [email-masked] (Edward Z. Yang)
Date: Fri, 31 Jul 2009 11:38:00 -0400

> behaviour of Vim for example.

I agree with this assessment and think smoother scrolling would be a
nice extra touch.

Cheers,
Edward

---

From: [email-masked] (William Morgan)
Date: Fri, 31 Jul 2009 08:44:25 -0700

> What do you guys think?

Have you tried J and K vs j and k to scroll?
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Edward Z. Yang)
Date: Fri, 31 Jul 2009 11:46:40 -0400

> Have you tried J and K vs j and k to scroll?

In general, I use PgUp and PgDn to scroll.  I didn't realize those keybindings
existed. :-)

Cheers,
Edward

---

From: [email-masked] (William Morgan)
Date: Fri, 31 Jul 2009 08:57:43 -0700

Reformatted excerpts from Edward Z. Yang's message of 2009-07-31:
> In general, I use PgUp and PgDn to scroll.  I didn't realize those
> keybindings existed. :-)

Ctrl-e and ctrl-y work as well, if you're a vi addict.
-- 
William <wmorgan-sup at masanjin.net>

---

From: [email-masked] (Andrei Thorp)
Date: Fri, 31 Jul 2009 12:01:08 -0400

> Have you tried J and K vs j and k to scroll?

No I haven't, but I'm glad to know they exist :)

Thanks.

---

From: [email-masked] (Andrei Thorp)
Date: Fri, 31 Jul 2009 12:11:29 -0400

> Ctrl-e and ctrl-y work as well, if you're a vi addict.

I didn't even know that one o_0. (in vim)
-- 
Andrei Thorp, Developer: Xandros Corp. (http://www.xandros.com)

---

From: [email-masked] (Christopher Bertels)
Date: Sat, 01 Aug 2009 11:26:25 +0200

> Have you tried J and K vs j and k to scroll?

Wow, cool. :) 
Good to know.
-- 
================================
Christopher Bertels
http://www.adztec-independent.de

---

From: [email-masked] (vasudeva)
Date: Sat, 01 Aug 2009 17:58:13 -0400

> > Have you tried J and K vs j and k to scroll?

That is nifty -- I didn't know it existed either. It seems slow on this machine though, and after using it in thread-view-mode, inbox-mode seems to have lost its mind a bit.

I had wondered if the behavior the original poster was after might be akin to vim's 'scrolloff' setting. 

Setting scrolloff=10 in vim means the selected line moves freely up and down but you're always going to have 10 lines of context at the edges; that is, the text starts scrolling upward when the selected line reaches 10 lines from the bottom. It kind of applies a 'force field' to the top and bottom edges of the page view so you never hit top or bottom of the viewport until you're at the top or bottom of the file itself.
-- 
linkswarm.com :: Collaborative Insolence
vasudeva.linkswarm.com/gallery2 :: For The Faint of Heart

---

From: [email-masked] (Christopher Bertels)
Date: Sun, 02 Aug 2009 01:51:06 +0200

Excerpts from vasudeva's message of Sa Aug 01 23:58:13 +0200 2009:
> Setting scrolloff=10 in vim means the selected line moves freely up and down
> but you're always going to have 10 lines of context at the edges; that is, the
> text starts scrolling upward when the selected line reaches 10 lines from the
> bottom. It kind of applies a 'force field' to the top and bottom edges of the
> page view so you never hit top or bottom of the viewport until you're at the
> top or bottom of the file itself.

I'd actually love to see something like this in sup as well.
-- 
================================
Christopher Bertels
http://www.adztec-independent.de