Skip to main content

atmos_vsc_keybindings 0.0.1-alpha copy "atmos_vsc_keybindings: ^0.0.1-alpha" to clipboard
atmos_vsc_keybindings: ^0.0.1-alpha copied to clipboard

VS Code / Cursor default keybindings (bundled JSON) and a pure-Dart hotkey engine (chords, when-clauses, layers) by Atom735.

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.

0
likes
150
points
820
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

VS Code / Cursor default keybindings (bundled JSON) and a pure-Dart hotkey engine (chords, when-clauses, layers) by Atom735.

Repository (GitHub)
View/report issues

Topics

#keybindings #shortcuts #editor #vscode

License

MIT (license)

Dependencies

atmos_jsonc

More

Packages that depend on atmos_vsc_keybindings