re-introduce context menu command

This commit is contained in:
2026-03-07 21:05:23 -05:00
parent 8f2bda0b52
commit aaf3338797
2 changed files with 207 additions and 6 deletions

View File

@@ -3,10 +3,18 @@ package main
import (
"fmt"
"os"
"regexp"
)
var loading_emoji = os.Getenv("LOADING_EMOJI")
func extractURLFromString(in_url string) string {
url_pattern := regexp.MustCompile(`https?://\S+`)
var match = url_pattern.Find([]byte(in_url))
return string(match)
}
// Helper function to create string pointer
func ptr(s string) *string {
return &s