vyom व्योम

Accepted ADR 0006 · 2026-10-24

#6. Tabs belong to the panel, with one set of keys

#Context

Six tools grew tabs (bhava's categories, mudra's apps, raga's music/video, smriti's kinds, tarang's networks/hotspot, ganit's calculate/convert), each built from its own toggle buttons in header_extra() and switched with its own keys: Ctrl+0..9, Ctrl+1..9, Ctrl+1..5, Ctrl+M, Ctrl+H, Ctrl+Tab. Moving between tools meant relearning how to change tabs, and tarang's Ctrl+H (a toggle) fought the vim reading of h/l as left/right, next to the Ctrl+K/Ctrl+J every panel already uses for up/down.

#Decision

A tool declares tabs = [(key, label[, tooltip])] and gets self.tab and a tab_changed(key) hook; the panel draws the tabs in the search bar and switches them, the same in every tool:

select_tab(key) switches from the tool (vyom raga video), set_tabs() replaces them (mudra's depend on what it finds), tab_class restyles them (bhava's glyphs). The panel handles these keys after the tool's key(), so a tool without tabs keeps Ctrl+1..9 and Ctrl+H/L for itself (dvara's numbered actions).

#Consequences

← All decisions · source