diff options
| author | Grail Finder <wohilas@gmail.com> | 2026-03-04 11:25:13 +0300 |
|---|---|---|
| committer | Grail Finder <wohilas@gmail.com> | 2026-03-04 11:25:13 +0300 |
| commit | abcaad66093bdf9a98f10c909a05ab1ebcb431f3 (patch) | |
| tree | c1c4d9d30ef13a2aca63c4b6b1a74a7ccea556e9 /session.go | |
| parent | 50ce0200af5648818e6e4f51d6541bd3bdb7e036 (diff) | |
Enha: native notification implementation
Diffstat (limited to 'session.go')
| -rw-r--r-- | session.go | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -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() -} |
