Expand description
The keyboard, on a list: stepping through its rows, opening the one the keyboard is at, showing the notes that wait, and going back.
| Key | What it does |
|---|---|
j | The next row: marked, and put at the top of what is in view |
k | The one before |
| Home | The very top, and no row marked |
l, Enter | Open the marked row: a note’s thread; for something told of with no note to it, whose it is |
y | Copy a link to the marked note that anyone can open, as the chain link under it does |
| Space | The first thing the marked note links to, pictures apart: a video is played, or held if it plays; any other link is opened in the browser |
h, Backspace | Back: what the arrow at the top left of the view does |
| Backspace | Out of the composer too, where h is a letter: with something written, it asks first whether to keep it as a draft (see crate::handlers::compose) |
r | Reply to the marked note, as the arrow under it does |
R | Offer the ways to pass the marked note on, as its repost action does: see below |
z | Zap the marked note, as the bolt under it does |
b | Bookmark the marked note, or take its bookmark off, as the ribbon under it does |
B | Show the bookmarks, over the list on show |
s | Show a page to search on, with the keyboard where the search is typed; on one already, only that |
. | Show the notes that wait, as the button over the list does |
? | Show what the keys do: a view of its own, which the menu above the feed opens too |
The keys are a list’s where no widget had a use for them: a text being
typed takes them for itself (see crate::app). They work on
whichever list is on show: the feed, a thread, the notes of a
profile, the bookmarks, the notes a search found, what the account is
told of.
A row can be put at the top of what is in view only while there is
enough under it: the last rows of a list can’t be, and in a thread
that fits the popup none can. So where the keyboard is does not go by
where the list is scrolled to alone. The row it is at is marked,
with a line around it, and each list keeps its own mark: coming back
from a thread, the note it was opened from is marked still, and j
goes on from there.
flowchart TD
key["j or k"] --> live{"Is a row marked, and about where the view is?"}
live -->|"yes"| beside["The row after it, or before"]
live -->|"no: nothing marked, or the list was scrolled away from it"| place["The first row below the top of the view, or the last above it"]
beside --> mark["That row is marked, and the list scrolled to put it at the top, as far as it goes"]
place --> mark
open["l, Enter, y, Space or b"] --> which{"Is a row marked, and about where the view is?"}
which -->|"yes"| opened["It is that row: opened, its link copied, its video played or its link followed, bookmarked"]
which -->|"no"| top["The row at the top of the view is marked, and it is that one"]While the menu R opens is open, the keys are the menu’s, and the
keyboard is at one of the ways it offers, which is shown as one the
pointer is over: the first that can be taken, to begin with.
flowchart TD
r["R, on a list"] --> menu["The marked note's repost menu opens, the keyboard at the first way that can be taken"]
menu --> arrows["Arrow down or j, arrow up or k: the next way, or the one before"]
arrows --> menu
menu --> enter["Enter or l: that way is taken, and the menu is put away"]
menu --> away["R again, or Escape: the menu is put away, and nothing done"]A mark the list was scrolled away from is not gone back to: a key then goes by what is in view, as it does with nothing marked.
Structs§
- Row 🔒
- A row of the list on show, or something above its rows that is a place to step to as a row is.
- Rows 🔒
- The list on show, as the keyboard goes by it.
Enums§
Constants§
- AT_
THE_ 🔒TOP - How near, in points, the top of a row may be to the top of what is in view and be the row that is there: where a list is scrolled to is not kept to the last fraction.
- SHOWING 🔒
- How much of a row has to show at the top of what is in view, in points, for it to be the row that is there, when none is marked: a row of which only the last line is left is on its way out, and the one under it is what is being looked at.
Functions§
- marked_
row 🔒 - Where the keyboard is among
rows: the rowmarked, if it is one of them and about where the list, scrolled tohere, showsviewpoints of itself.Nonewith nothing marked, and with a mark the list was scrolled away from: one whose row starts above what is in view, or below it. - pressed 🔒
- What Space does to
note. It is for the first thing the note links to that is not a picture, which is shown where it is and has no use for a key. A video is played, and so is a page thatis_videosays turned out to be one; anything else is opened in the browser, as a click on the link does. Nothing, of a note that links to nothing. - row_
at_ 🔒top - The row at the top of what is in view, in a list scrolled to
here: the last that starts above whereSHOWINGof it would still show. - stepped 🔒
- Which of
rowsa step lands on, and where the list is scrolled to to have it at the top of what is in view.Noneif there is nowhere to go: the keyboard is at the first row, or the last. - stepped_
way 🔒 - Which of
ways, the ways a menu offers that can be taken, the keyboard is at after a step fromat: the next, or the one before, and no further than the first or the last. From none of them, the first, or the last if the step is back. - under 🔒
- The rows of a page whose list is
topdown the page, under something else: that, at the very top, is a place to step to as a row is, though it is none to mark or open, and the rows of the list follow it.