anitnilay20 / anitnilay20/thoth

Plugin keyboard shortcuts: open plugins + plugin-defined custom shortcuts

Abierto
#90 0 comentarios 0 reacciones 0 asignados Ver en GitHub
architecture dx enhancement size:medium ux
Lenguaje dominante
Rust
Estrellas
70
Forks
5
Merge medio
10 h 33 min
PR fusionados (30 d)
2

Descripción

## Summary
Two related keyboard-shortcut capabilities for plugins.

### A. Host shortcuts to open/focus a plugin
- A combo (e.g. Cmd/Ctrl+Shift+1…9) opens or focuses the Nth installed plugin.
- Decide: open the plugin **sidebar** vs a **tab**, or a single shortcut that opens a searchable **plugin picker / command palette** (scales past 9).
- Model on the existing `SwitchToTab` pattern: `ShortcutAction` variant in `src/app/shortcut_handler.rs`, detect combo, dispatch in `thoth_app.rs::handle_shortcut_actions`, enumerate via `PluginManager::get_*_plugins`.

### B. Plugin-defined custom shortcuts (the bigger piece)
- A plugin can **register its own key combos** (e.g. `cmd+enter` → execute request); plugins can set any shortcut.
- When the combo fires while that plugin's tab/sidebar is active, the host dispatches it to the plugin as an event (e.g. a `ui-event` with a shortcut id) so the plugin reacts.
- Requires WIT additions (a way for a plugin to declare/register shortcuts), host-side registration + dispatch, and conflict handling with built-in shortcuts.

## Notes
Split out of the post-#80 request-UI polish batch; needs its own design before implementation.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.