Moving between waves
A wave's page and its terminal screen each name the wave before it and the wave after it, so the story reads in order without going back to the list.
On the page
- Open
/<owner>/<repo>/waves/<version>. - At the foot, above the back link,
Earlier: <headline>andLater: <headline>sit one to a line. Tap one to go to that wave. - The oldest wave has no Earlier line and the newest has no Later line.
Order is release order, as on the list. A neighbour that does not parse, is larger than 256 KiB or cannot be read is skipped: the link goes to the nearest wave beyond it that can be read. Headlines are escaped.
In the terminal
- Open a repository's Waves screen and press Enter on a wave.
[goes to the earlier wave and]to the later one; the foot of the wave names each (Earlier ([): <headline>) and the key bar lists only the steps that exist.- A step replaces the screen, so Esc still returns to the list in one press.
Both doors use waveNeighbours in src/story/waves.ts. Tested in test/wave-neighbours.test.ts and test/tui-waves.test.ts.