atmos_vsc_keybindings

Pure-Dart VS Code / Cursor default keybindings + hotkey engine by Atom735.

Русский: README_RU.md.

Install

dependencies:
  atmos_vsc_keybindings: ^0.0.1-alpha

Quick start

import 'package:atmos_vsc_keybindings/atmos_vsc_keybindings.dart';

final defaults = VscKeybindingsLoader.loadBundledPlatform(
  VscKeyPlatform.windows,
  packageRoot: 'packages/atmos_vsc_keybindings',
);

final engine = VscKeybindingEngine.merge(
  defaults: defaults,
  platform: VscKeyPlatform.windows,
  context: {'editorTextFocus': true},
);

final match = engine.handleKey(
  const VscKeyStroke(key: 's', control: true),
);
// match?.commandId == 'workbench.action.files.save' (when context fits)

Updating dumps

git submodule update --init --recursive
git -C packages/atmos_vsc_keybindings/lib/assets/vs-code-default-keybindings pull
# bump VscBundledKeybindings.vscodeVersion if the JSON header changed

Flutter

Use atmos_vsc_keybindings_flutter to load bundled JSON via AssetBundle and wire chords into the widget tree.

License

MIT. Bundled JSON: see lib/assets/NOTICE.md.

Libraries

atmos_vsc_keybindings
Pure-Dart VS Code / Cursor keybinding dumps + hotkey engine.