diff --git a/main.go b/main.go index 83daf0e..711c631 100644 --- a/main.go +++ b/main.go @@ -174,7 +174,7 @@ func openChat(sid string) { } w.Name("%s", winName) w.Ctl("cleartag") - w.Fprintf("tag", " Prompt Stop Ctl") + w.Fprintf("tag", " Prompt Stop Ctl Cfg Nudge Usage") cw := &chatWin{win: w, sid: sid} chatWindows.Store(sid, cw) @@ -204,6 +204,12 @@ func (cw *chatWin) eventLoop() { os.WriteFile(filepath.Join(ollie, "s", cw.sid, "ctl"), []byte("stop"), 0644) //nolint:errcheck case "Ctl": openFile(filepath.Join(ollie, "s", cw.sid, "ctl")) + case "Cfg": + openFile(filepath.Join(ollie, "s", cw.sid, "cfg")) + case "Nudge": + os.WriteFile(filepath.Join(ollie, "s", cw.sid, "prompt"), []byte("."), 0644) //nolint:errcheck + case "Usage": + openFile(filepath.Join(ollie, "s", cw.sid, "usage")) default: cw.win.WriteEvent(e) }