Reference
Step and file commands
Use these commands to go to a step, to show another file, and to follow the editor. A frame shows one step, so this page has no frames. An animated frame of a code.link move is in Several files.
:step
Goes to a step.
:step N
:step Ncan go to the step after the last step. That step is empty. New annotations go there. On that step,:step Nagain andstep.setstay on it.nstays on it too, unless the document loops: thenngoes to step 0.- In presentation mode,
:step Nto the step on screen does what:goto Ndoes there: the view goes back to the target of thescrollof the step, and what comes in at the step comes into the view. Acursoror acode.linkmove of the step puts the cursor and the view back on its line. See Present. - When a move does not apply, the status bar shows the warning of the move in place of
step N/M. :step ID Nmoves an annotation to a step. See:step ID N.
:next and :prev
Go to the next step or to the previous step.
:next
:prev
- The keys
nandpdo the same. See Keys. - When a move does not apply, the status bar shows the warning of the move in place of
step N/M.
:goto
Goes to a named step or to a step number. Tiza applies the steps from step 0 up to that step.
:goto ID
:goto N
For example, :goto borrow goes to the step with the name borrow. Named steps are in Go to a named step.
:gototo the step on screen puts the view of the step back. The view of a step comes from its lastscroll,cursororcode.linkmove, also from an earlier step. Ascrollmove puts the view back on its target. Acursoror acode.linkmove puts the cursor and the view back on its line. When the live pointer stays, the cursor stays on the pointer.- In presentation mode, what comes in at that step also comes into the view again, unless the step has a
scroll, acursoror acode.linkmove of its own.
:link
At step 1 or later, shows another file from this step on.
:link PATH[:A-B]
:link
For example, :link src/lib.rs:10-30 shows lines 10 to 30 of src/lib.rs from the step on screen. Tiza adds a code.link move. The frame of a code.link move is in Several files.
- At step 0,
:link PATHdoes the same as:ref PATH. See The document and its code. - A range can be
A-B,A..BorA. :linkwithout a path makes the document read its code from the source file again.- At step 1 or later,
:linkrefuses a range that starts at 0, or that hasAafterB. - At step 1 or later,
:linkalso refuses digits,-and.that are notA,A-BorA..B. :linkdoes not put the lines of a range in order.
:scroll
At step 1 or later, adds a scroll move at the step on screen. The view moves to the target from that step on.
:scroll N [align=A]
:scroll @'TEXT' [occurrence=N] [align=A]
:scroll ID [align=A]
:scroll annotation=ID [align=A]
For example, :scroll 120 align=top puts line 120 at the top of the view at the step on screen.
NorLN(50orL50, asmove.listwrites it) is a line.@'TEXT'is a text: the view goes to its first match, or to the match thatoccurrence=Nnames. Another word is theidof an annotation. For anidthat has the form of a line, for example12orL5, writeannotation=ID.align=Aistop,center,bottomorshow. Without it, the target goes to the center.- The view moves at once. See Scroll.
- At step 0,
:scrollgives an error, because step 0 is the code before any move. :scrollrefuses a target that is not in the code at the step on screen, and adds no move. For example:scroll: line 120 is not in the code shown at this step (lines 1-80).
:ref
Makes the document read its code from a file.
:ref PATH[:A-B]
:ref
:refwithout a path makes the document read its code from the source file again.:refand:linkread a range astiza FILE:A-Bdoes. A range that is not correct gives an error, and the document does not change.- The code of a document is in The document and its code.
:embed
Copies the code into the document. The document then does not read a file. See The document and its code.
:embed:follow
Starts follow mode, stops it, or shows its state. In follow mode, Tiza reloads the code when the file changes on disk.
:follow on
:follow off
:follow
:follow onalso acceptsyesandstart.:follow offalso acceptsnoandstop.- Follow mode is in Follow the editor. The cases with no reload are in Messages of follow mode.