Expand description
T.3 — TutorMode minor mode + headerline provider.
TutorMode is a marker minor mode activated on the tutor buffer
by do_tutor. It owns:
- the
<CR>/:tutor-next/:tutor-prevkeymap layer TutorHeaderlineProvider— emits a single virtual row above line 0 showing lesson/exercise progress and the current hint.
T.4 wires TutorSession as a BufferLocal and populates the
headerline’s TutorViewState from the live session.
Structs§
- Tutor
Headerline State - Buffer-local handle for updating the tutor headerline. Wraps a
SimpleHeaderlineHandle<TutorViewState>so dispatch can push session state without holding a reference to the provider itself. - Tutor
Mode tutor-modeminor mode. Marker bit: activated on the tutor buffer bydo_tutor; the keymap layer (keyed by this mode’sModeId) gates the<CR>/:tutor-next/:tutor-prevchords so they are invisible on non-tutor buffers.- Tutor
View State - Display state for the tutor headerline. Updated by T.4 when the session advances or a hint becomes active.
Enums§
- Tutor
HudKind - Selects which HUD variant to render.
Constants§
Functions§
- register_
tutor_ modes - Register
tutor-modeagainstregistry. Called from the editor boot path beforetranslate_mode_keymapsruns the K.2.4 pass that picks upTutorMode::keymap(). - render_
tutor_ headerline - Render function for
SimpleHeaderlineHandle<TutorViewState>.