9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "roger peppe" <rogpeppe@gmail.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] acme scrollbar
Date: Wed,  2 Jul 2008 21:47:37 +0100	[thread overview]
Message-ID: <df49a7370807021347y66601c8ay2cf014cad886dc6@mail.gmail.com> (raw)
In-Reply-To: <989ef6acd802ba74b58860c093b87ef4@coraid.com>

On Wed, Jul 2, 2008 at 8:13 PM, erik quanstrom <quanstro@coraid.com> wrote:
>> Hi,
>> The scrollbar handle will always change it's length when moving
>> through the files.
>> Why isn't the length based on the total lines of the file?
>
> because that would require reading the whole file.

actually, acme does read the whole file.

but if the scrollbar represents, as it does (up to a point) in other
systems, the vertical proportion of the total view occupied by the
currently visible view, acme would have to recalculate the
total vertical size every time the window changes width.

since one excellent attribute of acme is that it deals with very large
files well (and it keeps most of the file cached in a temporary file),
forcing it to re-read all of the data in all file when a column is resized
could be really quite slow. thinking about it, perhaps that's what
you meant by "reading the file" above?

luckily the fact that the scrollbar changes size doesn't matter
at all, as you almost never have to aim the mouse at it.
i'm generally not keen on the ergonomics of 8½/rio, but i think the
scrollbar design
is a brilliant exception. where were they first seen in this form?

  reply	other threads:[~2008-07-02 20:47 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-02 19:09 hiro
2008-07-02 19:13 ` erik quanstrom
2008-07-02 20:47   ` roger peppe [this message]
2008-07-02 22:01     ` hiro
2008-07-02 22:17       ` Martin Neubauer
2008-07-02 22:34         ` hiro
2008-07-02 22:52           ` a
2008-07-02 23:23             ` hiro
2008-07-04 11:38             ` matt
2008-07-02 22:57           ` roger peppe
2008-07-02 23:24             ` hiro
2008-07-02 19:18 ` Tom Lieber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=df49a7370807021347y66601c8ay2cf014cad886dc6@mail.gmail.com \
    --to=rogpeppe@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).