Docs: the pages layout in the README and the keys help
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014yB6q4BHMwptTX3YFtkRab
This commit is contained in:
1 parent
47a1680213
commit
efc09c67f6
2 files changed
+32
-5
No files matched your search
@@ -93,7 +93,7 @@ Press `?` for every key. The short version:
|
|||||||
`undo`, `redo` when there is something to redo, and `menu` (libraries, jump, history, links,
|
`undo`, `redo` when there is something to redo, and `menu` (libraries, jump, history, links,
|
||||||
layout and settings); on its left, the library's name, which opens the libraries panel. Keys
|
layout and settings); on its left, the library's name, which opens the libraries panel. Keys
|
||||||
named in the status line or a panel's head are buttons. On a phone the selection bar sits at the
|
named in the status line or a panel's head are buttons. On a phone the selection bar sits at the
|
||||||
foot of the screen and menus rise from it. Every item acts by pressing its key
|
foot of the screen and menus rise from it, above an on-screen keyboard and the home indicator. Every item acts by pressing its key
|
||||||
(`src/ui/press.ts`), so a click and a key cannot do different things. The first visit says, once,
|
(`src/ui/press.ts`), so a click and a key cannot do different things. The first visit says, once,
|
||||||
in the status line, that a click on a sentence offers actions and `?` lists the keys. Left to the
|
in the status line, that a click on a sentence offers actions and `?` lists the keys. Left to the
|
||||||
keys: stepping by grain (`j` `k` `i`; a click or a drag goes straight there), `Tab` from mark to
|
keys: stepping by grain (`j` `k` `i`; a click or a drag goes straight there), `Tab` from mark to
|
||||||
@@ -116,8 +116,32 @@ Press `?` for every key. The short version:
|
|||||||
others. On the command line, `:/library name` opens a library by name and `:/library new name`
|
others. On the command line, `:/library name` opens a library by name and `:/library new name`
|
||||||
makes one.
|
makes one.
|
||||||
- On a window 900 px wide or more, a laptop's too, the page opens as panes side by side, after
|
- On a window 900 px wide or more, a laptop's too, the page opens as panes side by side, after
|
||||||
Andy Matuschak's notes: the library, then each open node in a pane of its own. `v` switches between
|
Andy Matuschak's notes: the library, then each open node in a pane of its own. On a narrower one, a
|
||||||
panes and the single column, `/view auto|column|panes` sets it.
|
phone's or a tablet's held upright, the same panes open as pages (below). `v` switches between the
|
||||||
|
panes and the single column, `/view auto|column|panes` sets it: `auto` is panes side by side or
|
||||||
|
pages by the width, `panes` side by side at any width, `column` the indented outline.
|
||||||
|
- **On a phone: pages.** Each column of the panes view is a page as wide as the screen, its panes
|
||||||
|
stacked down it exactly as in a column on a wide screen (a pane not looked at folded to a tab, a
|
||||||
|
finger high; a pane scrolled past its title shows its tab at its top). A tap on a row, a link, a
|
||||||
|
"Linked from" or Related row opens its target and goes to it: the next page slides in. A swipe
|
||||||
|
sideways goes from page to page and makes the pane on that page the active one (the one on the
|
||||||
|
focused branch there, else the one last visited); a swipe down a pane scrolls its text. The trail
|
||||||
|
at the foot names the focused branch, a step per pane, each underlined in its pane's colour, the
|
||||||
|
one on screen in the text's ink, those opened beyond it fainter; a tap on a step goes there. Its
|
||||||
|
`map` button opens every open pane as an outline of the forest, indented by where each was opened
|
||||||
|
from: a tap goes to a pane, its pin pins it, its × closes it (Esc or a press outside puts the map
|
||||||
|
away). Each pane's ⋯, pin and × sit above its title, always shown. No curves are drawn (the panes
|
||||||
|
are never side by side): what each pane was opened from, its link's underline, a note's dotted
|
||||||
|
rule or its row's edge and arrow, takes the pane's colour instead, the colour of the rule under the
|
||||||
|
pane's title. Every step from pane to pane is a step in the browser's history, so Back, the button
|
||||||
|
or the edge swipe, goes back a pane (a swipe back to the pane before is Back itself), Forward
|
||||||
|
forward again, and a reload keeps the panes and the place. A long press on a link shows what it
|
||||||
|
opens above its menu. Turned to a width of 900 px or more, the page shows the same panes side by
|
||||||
|
side, the same one active, and back again. What a finger presses is at least 40 px each way (words
|
||||||
|
in running text excepted); the key hints, the branch, the model and the `?` button leave the
|
||||||
|
status line (the top menu has Keys and help, the history panel the branch). A hardware keyboard
|
||||||
|
works as anywhere: `Alt+h` `Alt+l` turn the pages, `[` `]` move up and down a page's panes, and `l`
|
||||||
|
or `Enter` on a row goes into its pane.
|
||||||
- **Opening.** `Enter`, `l` or a click on a row, a link, a link in an article, or a "Linked from",
|
- **Opening.** `Enter`, `l` or a click on a row, a link, a link in an article, or a "Linked from",
|
||||||
"Mentioned in" or Related row opens its target in the next column, beside what is already open
|
"Mentioned in" or Related row opens its target in the next column, beside what is already open
|
||||||
there (so do Ctrl-, Cmd- and middle clicks); `Shift+Enter` or a Shift-click opens it in place of
|
there (so do Ctrl-, Cmd- and middle clicks); `Shift+Enter` or a Shift-click opens it in place of
|
||||||
@@ -319,7 +343,9 @@ What is sent where:
|
|||||||
(`press.ts`); `Mouse.tsx` draws the one menu, the bar and the key hints; `Menu.tsx` the top bar
|
(`press.ts`); `Mouse.tsx` draws the one menu, the bar and the key hints; `Menu.tsx` the top bar
|
||||||
and the libraries panel (its state in `libraries.ts`). The panes view's panes are a forest of forks (`forks.ts`, pure functions;
|
and the libraries panel (its state in `libraries.ts`). The panes view's panes are a forest of forks (`forks.ts`, pure functions;
|
||||||
the store's `trail` is its focused branch); `stack.ts` is the stacking shared by the strip and its
|
the store's `trail` is its focused branch); `stack.ts` is the stacking shared by the strip and its
|
||||||
columns, `lanes.ts` orders the curves' lanes.
|
columns, `lanes.ts` orders the curves' lanes. The pages layout is the same panes (`Panes.tsx`) laid
|
||||||
|
out a column per page, with `Pages.tsx` (the trail and the map) and `pages.ts` (which pane a page
|
||||||
|
brings forward, and the history entries a pane per step, pure functions).
|
||||||
|
|
||||||
## The libraries
|
## The libraries
|
||||||
|
|
||||||
|
|||||||
+2
-1
@@ -14,7 +14,7 @@ export const HELP: [string, [string, string][]][] = [
|
|||||||
["Tab", "jump between spans that carry a note or a link; in an article, between its links and the notes on it"],
|
["Tab", "jump between spans that carry a note or a link; in an article, between its links and the notes on it"],
|
||||||
["/", "jump to a section by name, anywhere in the library"],
|
["/", "jump to a section by name, anywhere in the library"],
|
||||||
["z", "hoist: make this node the whole page (again, or h or Esc at its top, to step out to its parent's page)"],
|
["z", "hoist: make this node the whole page (again, or h or Esc at its top, to step out to its parent's page)"],
|
||||||
["v", "view: one column ↔ panes side by side (in panes, j k move among siblings)"],
|
["v", "view: one column ↔ panes (side by side, or as pages on a narrow screen; in panes, j k move among siblings)"],
|
||||||
["q", "in panes: close the active pane (the one under the heavy rule, whatever it shows) and every pane opened from it, except pinned ones; the focus goes back to where it was opened from. A pane's x does the same. Moving left never closes anything"],
|
["q", "in panes: close the active pane (the one under the heavy rule, whatever it shows) and every pane opened from it, except pinned ones; the focus goes back to where it was opened from. A pane's x does the same. Moving left never closes anything"],
|
||||||
["P", "in panes: pin or unpin the active pane (or its pin, top right). A pinned pane stays where it is when a pane it came from closes, is never replaced by a Shift open, and is never covered, in its column or along the strip"],
|
["P", "in panes: pin or unpin the active pane (or its pin, top right). A pinned pane stays where it is when a pane it came from closes, is never replaced by a Shift open, and is never covered, in its column or along the strip"],
|
||||||
["Enter l", "in panes: open into the next column, beside what is open there (so does a click, and a Ctrl-, Cmd- or middle click); on something open already, focus it"],
|
["Enter l", "in panes: open into the next column, beside what is open there (so does a click, and a Ctrl-, Cmd- or middle click); on something open already, focus it"],
|
||||||
@@ -30,6 +30,7 @@ export const HELP: [string, [string, string][]][] = [
|
|||||||
["", "right-click (a long press on a phone) on words, a row, a link, a note or a pane: what can be done with it, Copy first. Shift+right-click is the browser's own menu"],
|
["", "right-click (a long press on a phone) on words, a row, a link, a note or a pane: what can be done with it, Copy first. Shift+right-click is the browser's own menu"],
|
||||||
["", "⋯ by a row, a pane's pin, a page's byline or a note (shown when pointed at): the same menu. A stale flag, clicked, offers what to do about it"],
|
["", "⋯ by a row, a pane's pin, a page's byline or a note (shown when pointed at): the same menu. A stale flag, clicked, offers what to do about it"],
|
||||||
["", "the top bar: the library's name (it opens the libraries panel), undo, redo, and menu: libraries, jump, history, links, layout and settings. A key named in the status line or a panel's head is a button that presses it"],
|
["", "the top bar: the library's name (it opens the libraries panel), undo, redo, and menu: libraries, jump, history, links, layout and settings. A key named in the status line or a panel's head is a button that presses it"],
|
||||||
|
["", "on a phone the panes are pages, a column each: a tap on a row or a link goes to its pane, a swipe sideways goes from page to page, Back goes back a pane. The trail at the foot names the panes on the way, each in its colour (a tap goes there); its map lists every open pane, to go to, pin or close. What a pane was opened from takes its colour. A long press on a link shows what it opens"],
|
||||||
["", "in the libraries panel a click on a row opens that library; its ⋯ (or a right-click) offers open, rename, delete and a new library; a press outside the panel closes it"],
|
["", "in the libraries panel a click on a row opens that library; its ⋯ (or a right-click) offers open, rename, delete and a new library; a press outside the panel closes it"],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in new issue
Block a user