From edbacb813bd148db33d8747ada293ef2acabe7e9 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 14 Dec 2025 14:43:00 +0300 Subject: Enha: toggle visibility of status line --- helpfuncs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helpfuncs.go') diff --git a/helpfuncs.go b/helpfuncs.go index df49ae5..edcb7fe 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -63,7 +63,7 @@ func colorText() { } func updateStatusLine() { - position.SetText(makeStatusLine()) + statusLineWidget.SetText(makeStatusLine()) helpView.SetText(fmt.Sprintf(helpText, makeStatusLine())) } -- cgit v1.2.3 From 33f9ed2466e960223389da59a423cc697ff615ba Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sun, 14 Dec 2025 14:44:24 +0300 Subject: Chore: cleanup --- helpfuncs.go | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'helpfuncs.go') diff --git a/helpfuncs.go b/helpfuncs.go index edcb7fe..194d68c 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -8,8 +8,18 @@ import ( "os" "path" "strings" + "unicode" ) +func isASCII(s string) bool { + for i := 0; i < len(s); i++ { + if s[i] > unicode.MaxASCII { + return false + } + } + return true +} + func colorText() { text := textView.GetText(false) quoteReplacer := strings.NewReplacer( -- cgit v1.2.3 From 8c18b1b74cd53584988ab8cd55e50be81aa9aca5 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Sat, 20 Dec 2025 11:04:57 +0300 Subject: Enha: remove old tool calls --- helpfuncs.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'helpfuncs.go') diff --git a/helpfuncs.go b/helpfuncs.go index 194d68c..30d9967 100644 --- a/helpfuncs.go +++ b/helpfuncs.go @@ -9,6 +9,8 @@ import ( "path" "strings" "unicode" + + "math/rand/v2" ) func isASCII(s string) bool { @@ -239,3 +241,13 @@ func makeStatusLine() string { isRecording, persona, botPersona, injectRole) return statusLine + imageInfo + shellModeInfo } + +var letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") + +func randString(n int) string { + b := make([]rune, n) + for i := range b { + b[i] = letters[rand.IntN(len(letters))] + } + return string(b) +} -- cgit v1.2.3