Rules-based browser launcher for TUI + GNOME. switchyard.aly.codes
tui gnome bowser go
0

Configure Feed

Select the types of activity you want to include in your feed.

window_launcher: handle enter key for launching selected browser

Aly Raffauf (Jan 24, 2026, 8:43 PM EST) 9de8a1b8 6f7f3d56

+15
+15
src/window_launcher.go
··· 162 162 flowBox.SelectChild(first) 163 163 } 164 164 165 + urlEntry.ConnectActivate(func() { 166 + selected := flowBox.SelectedChildren() 167 + if len(selected) > 0 { 168 + idx := selected[0].Index() 169 + if idx >= 0 && idx < len(filteredBrowsers) { 170 + launchBrowser(filteredBrowsers[idx], urlEntry.Text()) 171 + win.Close() 172 + } 173 + } else if len(filteredBrowsers) > 0 { 174 + // No selection, use first browser 175 + launchBrowser(filteredBrowsers[0], urlEntry.Text()) 176 + win.Close() 177 + } 178 + }) 179 + 165 180 contentBox.Append(flowBox) 166 181 mainBox.Append(contentBox) 167 182