From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] Shall we fix the use of Up/Dn arrows?
Date: Tue, 26 Jan 2010 09:16:40 -0500 [thread overview]
Message-ID: <0f043cc302e54bc9ad9a2811033a35dd@ladd.quanstro.net> (raw)
In-Reply-To: <6a3ae47e1001260434t32dc57f4i33d9ac9521d0a58d@mail.gmail.com>
> > nothing to do with the concept of a line delimited by newlines. For
> > the movement, such delimited lines are completely irrelevant. For the
> > movement there is no difference whether there is a newline on the
> > previous visible line or the line was broken due to the width of the
> > window.
> >
> > What I speak about is 'as if' clicking the mouse up one visible line.
> >
> How would you go about doing that?
> There's no cursor based addressing available in the screens. And good
> riddance too, methinks.
and
> what if the current selection is a block of text? anyway, I don't
> think acme really knows where your pointer is (in x,y coords). I could
> be wrong, though
acme, sam, rio use frame(2). frcharofpt(2) and frptofchar(2)
convert between characters and cartesian coordinates.
to find the closest character in the next line you're going to
have to start at the beginning of the line and add character
widths until the next character puts you past your target.
this requires a bit of work, since the text is stored in a different
data structure.
please use the up/down arrows in vim for a few minutes with
code and think about how many special cases there are. for
example, you'll notice that vim stores an ideal x coordinate
for arrowing.
now if you still think this is such a great idea....
go forth and code! or don't. either way, let's pick a different
topic.
- erik
next prev parent reply other threads:[~2010-01-26 14:16 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-23 9:15 Yi DAI
2010-01-23 9:35 ` Akshat Kumar
2010-01-23 9:59 ` Bela Valek
2010-01-23 10:21 ` John Stalker
2010-01-23 14:29 ` Patrick Kelly
2010-01-23 12:37 ` cinap_lenrek
2010-01-23 12:52 ` Rudolf Sykora
2010-01-23 13:07 ` Yi DAI
2010-01-23 17:13 ` blstuart
2010-01-23 19:01 ` Rudolf Sykora
2010-01-25 17:20 ` maht
2010-01-26 11:50 ` Rudolf Sykora
2010-01-26 12:26 ` yy
2010-01-26 12:34 ` Robert Raschke
2010-01-26 14:16 ` erik quanstrom [this message]
2010-01-23 19:10 ` Russ Cox
2010-01-23 19:25 ` Rudolf Sykora
2010-01-24 0:53 ` Russ Cox
2010-01-24 7:08 ` Frederik Caulier
2010-01-24 9:08 ` Yi DAI
2010-01-24 18:03 ` Tim Newsham
2010-01-24 22:28 ` Charles Forsyth
2010-01-24 18:41 ` John Floren
2010-01-25 9:46 ` Pavel Klinkovsky
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=0f043cc302e54bc9ad9a2811033a35dd@ladd.quanstro.net \
--to=quanstro@quanstro.net \
--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).