Can a plug listen for keyboard shortcuts?

Can a plug listen for several keyboard shortcuts and do its own actions in response? I didn’t see any relevant APIs in the silverbullet syscalls directory.

1 Like

Not directly. Plugs can define commands, and commands can define keybindings, but you cannot listen to random key events.

1 Like

And this plug may also provide inspiration: New Plug: Outline Sidebar

Perhaps these efforts can even be merged.

1 Like