gpui-action
CommunityDeclarative GPUI actions and keyboard bindings.
Authorzerx-lab
Version1.0.0
Installs0
System Documentation
What problem does it solve?
GPUI action definitions and keyboard shortcuts provide a unified approach to declare actions and bind keys, enabling consistent, accessible, and keyboard-driven interfaces across GPUI components.
Core Features & Use Cases
- Declarative actions via actions! macro or derive(Action)
- Context-aware key bindings with cx.bind_keys()
- Per-element action handlers via .on_action() and focus-based routing
- Use Case: Build a text editor-like GPUI app with global shortcuts and contextual bindings
Quick Start
Define actions with actions! macro in your component, bind keys to those actions using KeyBinding, and implement on_action handlers to respond to input. For example, bind "up" and "down" to navigation actions within a context and implement corresponding handlers.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: gpui-action Download link: https://github.com/zerx-lab/rmx/archive/main.zip#gpui-action Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.