Commit Graph

11 Commits

Author SHA1 Message Date
Kartik K. Agaram
f554ce878b include a unit test 2022-06-09 18:36:16 -07:00
Kartik K. Agaram
6ba10b4de6 fix a corner case when selecting text
The hard part here is keeping click-drag selection working (without
pressing and holding shift).
2022-06-09 15:49:16 -07:00
Kartik K. Agaram
fa5bf1218a move 2022-06-09 15:48:07 -07:00
Kartik K. Agaram
173d3a3de0 test both ways of selecting text with mouse 2022-06-09 15:09:32 -07:00
Kartik K. Agaram
9cafed99f4 another bugfix in scrolling while inserting text
I'm being unprincipled at the moment between pos and x,y coordinates.
Whatever is more convenient. Perhaps a cleaner approach will come to me
over time.
2022-06-05 10:08:28 -07:00
Kartik K. Agaram
e7a985bd0a bugfix in previous commit
I almost pushed this to production. That would have been catastrophic;
the very first keystroke anyone typed into the editor would have failed.

And in the process, this fixes the next bug on my TODO list! Paste on
first line wasn't working. Now it is.
2022-06-05 09:51:54 -07:00
Kartik K. Agaram
de473046bc check for scroll when just typing 2022-06-05 08:29:38 -07:00
Kartik K. Agaram
8c0f54ee64 some typos 2022-06-05 07:59:44 -07:00
Kartik K. Agaram
fa267e25e6 experiment: slightly adaptive scrolling
When long wrapping lines go past the current page, I find myself
scrolling before I get to the bottom. So let's scroll less, usually from
the start of the bottom-most line, even if it wraps multiple screen
lines.

The challenge with this is to ensure that a long line that fills the
whole page by itself doesn't get you stuck. I take some care to make
sure <pagedown> always makes forward progress.
2022-06-04 14:55:52 -07:00
Kartik K. Agaram
1326914d7b select text with shift + mouseclick
It's still a bit simple-minded. Most software will keep the first bound
fixed and move the second. Lines currently has the bounds in a queue of
sorts. But I have a test to indicate the behavior that is definitely
desired. We'll see if we need it to get more complex.
2022-06-04 14:54:40 -07:00
Kartik K. Agaram
0d52962b3e extract a couple of files 2022-06-03 14:17:41 -07:00