Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

307 B
Raw Blame
import { create } from "zustand";

/** The action whose shortcut the Assign Shortcut dialog is editing. */
export const useAssignShortcut = create<{ actionId: string | null }>(() => ({ actionId: null }));

export function showAssignShortcut(actionId: string) {
  useAssignShortcut.setState({ actionId });
}