From 630d77e1962b43ee95e88a664f5e8b8993213060 Mon Sep 17 00:00:00 2001 From: ewy Date: Wed, 29 Apr 2026 00:47:34 +0200 Subject: big stuff * send empty screen after tui confirmation * add scroll view / viewport * auto enable scroll view on short terminals * add motd tips * add subdirs as categories * add inline toggle hotkey (i) --- motd/motd.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 motd/motd.go (limited to 'motd') diff --git a/motd/motd.go b/motd/motd.go new file mode 100644 index 0000000..e57e8b0 --- /dev/null +++ b/motd/motd.go @@ -0,0 +1,16 @@ +package motd + +import "math/rand/v2" + +var Messages = []string{ + "use the -a flag to invoke from anywhere", + "combine -a with -y to invoke from anywhere without confirming", + "`--env dev` will include .env, .env.dev, .env-dev, and dev.env", + "pik will start in a viewport if the terminal is too thin", + "instead of .pik you can use .tasks, or .bin, or any of these with _", +} + +func One() string { + idx := rand.Int() % len(Messages) + return Messages[idx] +} -- cgit v1.3.1