summaryrefslogtreecommitdiff
path: root/motd
diff options
context:
space:
mode:
authorewy <ewy0@protonmail.com>2026-04-29 00:47:34 +0200
committerewy <ewy0@protonmail.com>2026-04-29 00:47:34 +0200
commit630d77e1962b43ee95e88a664f5e8b8993213060 (patch)
tree8849c2a87443cd231786aed53b76dc7e4ea11aed /motd
parent8efcf029576ad82908b4ae80b2c92022dfb857d2 (diff)
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)
Diffstat (limited to 'motd')
-rw-r--r--motd/motd.go16
1 files changed, 16 insertions, 0 deletions
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]
+}