about summary refs log tree commit diff stats
path: root/browse-slack/environment.mu
Commit message (Collapse)AuthorAgeFilesLines
* rename grapheme to code-point-utf8Kartik K. Agaram2021-11-091-6/+6
| | | | | | Longer name, but it doesn't lie. We have no data structure right now for combining multiple code points. And it makes no sense for the notion of a grapheme to conflate its Unicode encoding.
* make page-up/page-down smart to hidden itemsKartik K. Agaram2021-10-091-368/+49
| | | | | | | | 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.
* standardize argument orderKartik K. Agaram2021-10-091-10/+10
|
* bugfixKartik K. Agaram2021-10-091-7/+25
| | | | | | | 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.
* bugfix: skip hidden items when moving cursorKartik K. Agaram2021-10-091-14/+74
| | | | | | | | | | 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).
* slack: hide threads from the global viewKartik K. Agaram2021-10-091-1/+153
| | | | | | | | | | | | | | | 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
* slack: start work on hiding single threadsKartik K. Agaram2021-10-091-1/+1
|
* .Kartik K. Agaram2021-10-091-2/+2
|
* .Kartik K. Agaram2021-10-091-2/+2
|
* audit remaining calls to render-code-pointKartik K. Agaram2021-09-021-6/+61
| | | | By definition that function can't support combining characters.
* slack: start rendering unicodeKartik K. Agaram2021-08-301-24/+25
|
* fix bad terminology: grapheme -> code pointKartik K. Agaram2021-08-291-20/+21
| | | | | | | | | | Unix text-mode terminals transparently support utf-8 these days, and so I treat utf-8 sequences (which I call graphemes in Mu) as fundamental. I then blindly carried over this state of affairs to bare-metal Mu, where it makes no sense. If you don't have a terminal handling font-rendering for you, fonts are most often indexed by code points and not utf-8 sequences.
* minimize repaints when navigating between channelsKartik K. Agaram2021-08-151-0/+13
|
* .Kartik K. Agaram2021-08-151-1/+1
|
* correct menu when first entering search modeKartik K. Agaram2021-08-151-0/+7
| | | | Test required.
* .Kartik K. Agaram2021-08-151-15/+12
| | | | Make it more obvious that we always do a full repaint if dirty is set.
* keep cursor stable when switching to thread viewKartik K. Agaram2021-08-151-8/+37
| | | | Test required.
* missing code: selecting a thread in channel viewKartik K. Agaram2021-08-151-3/+11
| | | | Test required. And a clean fixture.
* slack: navigation for thread screensKartik K. Agaram2021-08-141-0/+123
|
* slack: quick 'n' dirty thread screenKartik K. Agaram2021-08-141-0/+45
|
* slack: data structures for single-thread viewKartik K. Agaram2021-08-141-0/+96
|
* slack: ensure single cursor on screen at any timeKartik K. Agaram2021-08-141-17/+34
| | | | This is worth a first test.
* slack: delete intra-item cursor stateKartik K. Agaram2021-08-141-88/+10
| | | | I don't actually have per-user feeds yet. Just drop the feature for now.
* slack: menu options for browsing intra-itemKartik K. Agaram2021-08-141-1/+20
|
* slack: hacky intra-item cursorKartik K. Agaram2021-08-141-1/+21
| | | | | Pretty klunky that it's always on the topmost item. But it gets us going.
* slack: introduce state for intra-item cursorKartik K. Agaram2021-08-141-8/+51
|
* slack: start rendering cursor on main paneKartik K. Agaram2021-08-141-8/+26
|
* .Kartik K. Agaram2021-08-141-2/+2
|
* slack: start building a cursor for the main paneKartik K. Agaram2021-08-141-6/+2
| | | | First step: switch to arrow keys for navigating by item.
* .Kartik K. Agaram2021-08-141-0/+3
|
* bug: allow '/' in searchKartik K. Agaram2021-08-141-21/+22
|
* bug in reusing tabsKartik K. Agaram2021-08-141-0/+2
|
* .Kartik K. Agaram2021-08-131-0/+1
| | | | Bug in channel view.
* slack: search cursor handlingKartik K. Agaram2021-08-131-1/+2
|
* slack: notify when too many resultsKartik K. Agaram2021-08-131-0/+6
|
* slack: degrade gracefully when too many resultsKartik K. Agaram2021-08-131-7/+14
|
* slack: escaping from search dialogKartik K. Agaram2021-08-131-0/+7
|
* slack: more responsive typingKartik K. Agaram2021-08-131-1/+10
|
* slack: scrolling in search screensKartik K. Agaram2021-08-131-0/+105
|
* .Kartik K. Agaram2021-08-131-17/+0
|
* slack: searchKartik K. Agaram2021-08-131-2/+119
|
* .Kartik K. Agaram2021-08-131-4/+4
|
* this might explain the bugKartik K. Agaram2021-08-131-5/+1
| | | | | | I think I was just typing with the the status bar outside the display when it seemed to work. Easy to forget to hit '/' at the start. Particularly if it seems to work fine.
* .Kartik K. Agaram2021-08-131-4/+44
|
* start saving and restoring search terms with tabsKartik K. Agaram2021-08-131-4/+40
|
* disquieting bug: typing search terms is unreliableKartik K. Agaram2021-08-131-0/+4
|
* slack: UI flow for searchKartik K. Agaram2021-08-131-8/+82
| | | | Everything works, I think, _except_ actually performing the search.
* .Kartik K. Agaram2021-08-131-9/+10
|
* .Kartik K. Agaram2021-08-131-6/+6
|
* slack: esc to go back to previous screenKartik K. Agaram2021-08-131-8/+41
|