Repository navigation
Let plugins surface actions in the UI (context menus / command palette), not just via keybinds #1672
Gandalf-Le-Dev
started this conversation in
Ideas
Replies: 1 comment
|
Agreed. Relates to my proposition too: #1609 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
I'm writing a herdr plugin that adds a pane (a code-review view). I'd like users to be able to open it straight from the UI — most naturally an item in the workspace right-click menu (next to Rename / Close / New worktree), or a command-palette entry — instead of only from the CLI (
herdr plugin pane open …) or a[[keys.command]]binding.Today there's no way for a plugin to contribute an interactive entry point to the interface:
[[actions]]already carry acontextsfield (global/workspace/tab/pane/selection), which reads exactly like it was meant for this — but those actions are never rendered in any menu.contextscurrently only surfaces in theplugin action listAPI response.So the only ways to trigger a plugin action or pane are non-UI: a
[[keys.command]]binding, an event hook, or the CLI. That makes plugin features hard to discover — every user has to hand-configure a keybind.Proposal
Surface enabled plugins'
[[actions]]in the UI, filtered by their declaredcontexts:workspace-context actions → the workspace right-click menutab-context → the tab menu,pane-context → the pane menuglobal→ the global/launcher menu (and/or a command palette)Selecting one invokes the action's command (which can call
herdr plugin pane open …, run a script, etc.). Since thecontextsfield already exists on the manifest, this is largely wiring it into the menu builders — it would give plugins a discoverable, clickable entry point without every user editing their config.Related
globalplugin actions too.All reactions