Go 29 lines
package tui
import "math/rand/v2"
// tips are the rotating one-line usage hints shown on the control-center
// home view. One is picked per session (pickTip) and printed below the
// logo. They stay neutral and brand-free (Constraint 4: no first person,
// no external tool names, no emoji) and short enough to fit one line at
// the golden width (80). Command discovery itself lives in the `/`
// palette and the `?` overlay, so these point at capabilities a user
// might otherwise miss rather than re-listing the command set.
var tips = []string{
"paste multi-line requests — Alt+Enter for a newline",
"type / to filter every command as you go",
"press ? for the keyboard-shortcut overlay",
"eeco go prints an AI-ready project brief",
"eeco ask \"…\" returns ranked file:line pointers",
"eeco add task \"…\" appends an item to the queue",
"eeco doctor runs diagnostic probes on the workspace",
"eeco run <name> runs one workflow",
}
// pickTip returns one tip at random. It is called once at model
// construction so the chosen tip is stable for the whole session: the
// home block is printed once into scrollback, never re-rendered.
func pickTip() string {
return tips[rand.IntN(len(tips))]
}