gpui-action

Installation
SKILL.md

Overview

Actions provide declarative keyboard-driven UI interactions in GPUI.

Key Concepts:

  • Define actions with actions! macro or #[derive(Action)]
  • Bind keys with cx.bind_keys()
  • Handle with .on_action() on elements
  • Context-aware via key_context()

Quick Start

Simple Actions

use gpui::actions;

actions!(editor, [MoveUp, MoveDown, Save, Quit]);
Related skills

More from longbridge/gpui-component

Installs
238
GitHub Stars
11.4K
First Seen
Jan 21, 2026