Commit Graph

8906 Commits

Author SHA1 Message Date
Kartik K. Agaram d19a5c66e0 paper over one gap pointed out by sejo 2021-10-20 22:59:42 -07:00
Kartik K. Agaram efe918919a thanks sejo for feedback 2021-10-20 21:51:47 -07:00
Kartik K. Agaram 289e503a85 . 2021-10-20 15:01:36 -07:00
Kartik K. Agaram 4dab538ad1 . 2021-10-20 14:58:45 -07:00
Kartik K. Agaram 019de1c304 . 2021-10-20 14:51:05 -07:00
Kartik K. Agaram 8b87d2244e . 2021-10-20 14:49:10 -07:00
Kartik K. Agaram c9c5faef24 . 2021-10-20 14:47:18 -07:00
Kartik K. Agaram b367e7f7f9 . 2021-10-20 14:42:57 -07:00
Kartik K. Agaram 3dead55641 task: variables in registers vs memory 2021-10-20 14:35:18 -07:00
Kartik K. Agaram f263a2070b . 2021-10-20 12:57:38 -07:00
Kartik K. Agaram 163aa68b46 . 2021-10-20 12:45:22 -07:00
Kartik K. Agaram 12615266b6 . 2021-10-20 12:32:58 -07:00
Kartik K. Agaram 9320a557f7 . 2021-10-20 12:25:06 -07:00
Kartik K. Agaram 619dc31dfc sketching out a slow tutorial 2021-10-20 12:01:55 -07:00
Kartik K. Agaram 909a0e2530 . 2021-10-17 21:57:41 -07:00
Kartik K. Agaram 9a183b8179 support backspace when reading line from keyboard 2021-10-13 23:15:59 -07:00
Kartik K. Agaram db0363462f primitive: read line from keyboard
Blocking.
2021-10-13 23:14:20 -07:00
Kartik K. Agaram d280bd8dac parse float from text 2021-10-12 22:31:57 -07:00
Kartik K. Agaram 72d104d169 . 2021-10-12 22:15:06 -07:00
Kartik Agaram 132d72d28a . 2021-10-11 21:35:16 -07:00
Kartik K. Agaram a54b2cb7af . 2021-10-11 21:24:33 -07:00
Kartik K. Agaram bb1d5c2cd3 . 2021-10-11 21:21:31 -07:00
Kartik K. Agaram 2308b97066 bugfix: rendering fake screens
Not exercised anywhere except in the shell. I ran into it after running:

  (print screen 34)

Introduced in commit d2f96cb0b6 on Sep 1. This is the sort of thing I
currently don't know how to write tests for :/
2021-10-11 21:02:41 -07:00
Kartik K. Agaram d6866ec35d . 2021-10-10 15:52:03 -07:00
Kartik K. Agaram 3254fe5ca5 . 2021-10-10 15:50:52 -07:00
Kartik K. Agaram 365b1f855c . 2021-10-10 15:48:47 -07:00
Kartik K. Agaram ee1b0d19b6 . 2021-10-10 08:35:59 -07:00
Kartik Agaram 1fca8ee13c . 2021-10-09 21:09:21 -07:00
Kartik K. Agaram 1ff9dde13b make page-up/page-down smart to hidden items
In the process we eliminate a whole bunch of duplication and give item
navigation a single source of truth.

Page-up isn't quite _identical_ to how it used to be before. Let's see
if it bothers us.
2021-10-09 20:40:17 -07:00
Kartik K. Agaram cd207331dc standardize argument order 2021-10-09 19:40:55 -07:00
Kartik K. Agaram 67f82e3a6e bugfix
new test:
  hit enter, go to thread view, hit enter again, go into thread view again. No crash.

Just bite the bullet and make item-index robust to single-thread tabs.
2021-10-09 19:33:24 -07:00
Kartik K. Agaram bf6cf3bd4b bugfix: skip hidden items when moving cursor
Tests to create when I start creating tests:
  hide an item. Cursor moves to a new item.
  hide an item that's not the bottom-most item, hit down arrow. Cursor moves to a new item.
  hide an item that's not the top-most item, hit up arrow. Cursor moves to a new item.
  hide top-most item. Cursor on new item. Hit up arrow. No change. Scroll down. New item.
  hide bottom-most item. Cursor on new item. Hit down arrow. No change. Scroll up. New item.
  open a thread. Hit down arrow. No crash (item-index not called).
2021-10-09 14:54:35 -07:00
Kartik K. Agaram 78231d4c4b slack: hide threads from the global view
To hide all comments from the same thread as the item at cursor, press
ctrl-h.

To later unhide everything, press ctrl-u.

Currently ctrl-u works by creating a whole new tab (that you can back
out of using Esc). That gives a way to undo it.

Still some rough edges:
  update number of items in view when hiding a thread
  avoid clipping menu in channel view
  undo a single hide without giving up previous ones
2021-10-09 12:35:13 -07:00
Kartik K. Agaram 23fe8b0ae9 slack: start work on hiding single threads 2021-10-09 11:54:34 -07:00
Kartik K. Agaram 527aaaa3ab . 2021-10-09 11:42:49 -07:00
Kartik K. Agaram fc5341e3cb . 2021-10-09 11:24:28 -07:00
Kartik K. Agaram 834377d6e3 . 2021-10-03 08:03:15 -07:00
Kartik K. Agaram aad64de236 . 2021-09-21 15:36:14 -07:00
Kartik K. Agaram 77207192ea . 2021-09-13 04:53:38 -07:00
Kartik K. Agaram 35c8c8edba support arrow keys in apps/ex7.mu 2021-09-04 14:00:38 -07:00
Kartik K. Agaram cfdee0a6fa fix apps/ex7.mu
I'm increasingly missing CI.
2021-09-04 13:57:20 -07:00
Kartik K. Agaram 66d5a8735c . 2021-09-03 20:52:57 -07:00
Kartik K. Agaram 9bb19e03c6 a tamil example (that I can't read) 2021-09-03 10:55:34 -07:00
Kartik K. Agaram 50d8f9c852 audit remaining calls to render-code-point
By definition that function can't support combining characters.
2021-09-02 16:02:52 -07:00
Kartik K. Agaram 60a50c9245 support combining characters in streams of text
Fake screens can't handle them yet.
2021-09-02 15:38:45 -07:00
Kartik K. Agaram 3f953ea5c8 . 2021-09-02 13:19:43 -07:00
Kartik K. Agaram 6c3e541be1 . 2021-09-02 13:07:59 -07:00
Kartik K. Agaram a4bac41133 .
A more common hindi vowel.
2021-09-02 13:06:27 -07:00
Kartik K. Agaram 80378db26b .
Inline render-code-point in one of its call-sites before we add support
for combining characters.
2021-09-02 12:44:56 -07:00
Kartik K. Agaram 1e1dd6b4d5 . 2021-09-02 12:44:18 -07:00