From abcaad66093bdf9a98f10c909a05ab1ebcb431f3 Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Wed, 4 Mar 2026 11:25:13 +0300 Subject: Enha: native notification implementation --- session.go | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'session.go') diff --git a/session.go b/session.go index 42d5001..980d998 100644 --- a/session.go +++ b/session.go @@ -168,19 +168,3 @@ func copyToClipboard(text string) error { cmd.Stdin = strings.NewReader(text) return cmd.Run() } - -func notifyUser(topic, message string) error { - // Sanitize message to remove control characters that notify-send doesn't handle - sanitized := strings.Map(func(r rune) rune { - if r < 32 && r != '\t' { - return -1 - } - return r - }, message) - // Truncate if too long - if len(sanitized) > 200 { - sanitized = sanitized[:197] + "..." - } - cmd := exec.Command("notify-send", topic, sanitized) - return cmd.Run() -} -- cgit v1.2.3