create-keybind

Guide creating and registering keyboard shortcuts within the Project Graph application.

4.3k|279|Updated Aug 23, 2024
One-click install
npx skills add https://github.com/graphif/project-graph --skill create-keybind
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: create-keybind
Source: https://github.com/graphif/project-graph/tree/main/.cursor/skills/create-keybind
Command: npx skills add https://github.com/graphif/project-graph --skill create-keybind

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding, modifying, and understanding keyboard shortcuts within the Project Graph application, enhancing user efficiency and customization.

Core Features & Use Cases

  • Register New Keybinds: Define new keyboard shortcuts with custom IDs, default key combinations, and associated actions.
  • Group Keybinds: Organize shortcuts into logical categories for better discoverability in the settings UI.
  • Translate Keybinds: Ensure shortcuts are properly localized across multiple languages.
  • Use Case: A developer needs to add a new shortcut to quickly export the current project as a PNG. This Skill guides them through registering the shortcut, assigning a key combination (e.g., Ctrl+E), grouping it under 'export', and adding the necessary translations for the shortcut's name and description.

Quick Start

Use the create-keybind skill to add a new shortcut for exporting the project with the default key combination Ctrl+E.

Frequently Asked Questions about create-keybind

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add custom keyboard shortcuts in Project Graph?

To add custom keyboard shortcuts in Project Graph, you define a shortcut ID, assign a default key combination, and create a callback function. You then register the shortcut and group it logically within the settings UI for discoverability.

What are the different types of keyboard shortcuts I can register?

You can register three types of keyboard shortcuts in Project Graph: UI-specific, global, and project-specific. Each type dictates the scope and context where the shortcut's callback function will be triggered.

How do I organize custom keybinds in the settings UI?

You organize custom keybinds by assigning them to logical categories during registration. Grouping shortcuts under specific categories like 'export' enhances discoverability and structure within the settings UI.

Can I localize keyboard shortcut names and descriptions for multiple languages?

Yes, you can localize keyboard shortcut names and descriptions. The shortcut creation process includes instructions for internationalization, ensuring your custom keybinds are properly translated across multiple languages.

What do I need to define when creating a new keyboard shortcut?

When creating a new keyboard shortcut in Project Graph, you need to define a unique shortcut ID, a default key combination, and a callback function. You also specify a category for grouping and provide translation keys.