atmos_vsc_keybindings
Pure-Dart VS Code / Cursor default keybindings + hotkey engine by Atom735.
Русский: README_RU.md.
- Bundled OS dumps via git submodule
lib/assets/vs-code-default-keybindingsfrom vs-code-default-keybindings (VS Code 1.144.0, including*.negative.*) - Chord-aware engine with
when-clauses and default + user layers - Punctuation keys (
ctrl+/),=~ /regex/,replaceBindings/ diagnostics - Owns
VscKeybinding(commands package depends on this, not the reverse) - No Flutter dependency — see
atmos_vsc_keybindings_flutterfor assets / widgets
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.