anitnilay20 / anitnilay20/thoth

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

オープン
#90 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
architecture dx enhancement size:medium ux
主要言語
Rust
スター
70
フォーク
5
平均マージ
10時間 33分
マージ済み PR(30日)
2

説明

## 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。