Files
clide/pubspec.yaml
T
jpmschweitzerandClaude Opus 4.7 798ba524f1 keystroke mapper layer — intents, presets, when-clauses (T-117)
Build the upstream of every keyboard-driven feature: widgets bind
to typed Intents, the keymap resolves chord+context to an Intent,
and Flutter's Actions dispatches. The widget never touches a key.

Layers (low → high precedence):
  1. preset YAML in assets/keymaps/<preset>.yaml
  2. extension-registered command bindings (via
     KeymapService.registerCommandBinding from ExtensionManager)
  3. user file at <appDir>/keybindings.yaml
  4. settings JSON overlay at app.keymap.overrides

The when-clause grammar is a tiny recursive-descent parser over
boolean expressions on a named context bag — VS-Code style
`palette.open && !textInputFocused`. Producing services publish
scope flags via setScopeFlag.

Keys reference LogicalKeyboardKey.keyId (stable across keyboard
layouts), not the locale-aware keyLabel the consultant flagged.

Ships:
  - lib/kernel/src/keymap/{key_chord, when_clause, intents, keymap,
    keymap_service}.dart
  - assets/keymaps/default.yaml (the baseline preset)
  - 90+ unit tests covering parser precedence, layering precedence,
    scope evaluation, register/unregister, settings overlay,
    malformed-input tolerance
  - app.dart root handler routes through KeymapService → Actions
  - ExtensionManager mirrors every legacy defaultBinding into the
    keymap as a contribution layer

KeybindingResolver kept temporarily as a back-compat shim for
callers we haven't migrated yet; safe to delete once the last
caller goes through Actions.

Closes T-110 (consultant: scoped Shortcuts/Actions; off keyLabel).
Annotates T-23 with what's left for T-100. Unblocks T-64 / T-65 /
T-66 (preset data tickets).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-17 21:40:02 +02:00

108 lines
2.8 KiB
YAML

# clide — IDE for Claude Code CLI.
#
# Single source of truth for project metadata and dependencies.
# The Flutter app hosts everything in-process (D-056); tmux owns
# session persistence (D-041).
#
# Prefer-zero-deps; every third-party entry is exact-pinned and
# justified. No carets. See D-031.
name: clide
description: >-
IDE for Claude Code CLI. One Dart package covering the UI,
subsystem handlers (pane, files, editor, git, pql), and the
extension framework.
publish_to: none
version: 2.0.0
repository: https://github.com/postmeridiem/clide
# Pre-push line-coverage floor. Ratchets up only — see D-66.
# Reading: `awk -F: '/^coverage_floor:/ {gsub(/ /,"",$2); print $2}' pubspec.yaml`.
coverage_floor: 95
# Project metadata (was project.yaml, folded in per D-056).
# version: above is the single source of truth. The Makefile reads
# it for build stamping. Cutting a release bumps version + changelog
# in one commit.
#
# maintainers:
# Jeroen Schweitzer <jpmschweitzer@gmail.com>
# license: MIT
# status: pre-v2.0, interaction model + panel system landed
# flutter_channel: stable
environment:
sdk: ">=3.5.0 <4.0.0"
flutter: ">=3.19.0"
dependencies:
flutter:
sdk: flutter
yaml: 3.1.3
ffi: 2.1.3
jovial_svg: 1.1.26
markdown: 7.2.2
flutter_widget_from_html_core: 0.17.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: 6.0.0
integration_test:
sdk: flutter
test: 1.30.0
mocktail: 1.0.4
alchemist: 0.12.1
flutter:
uses-material-design: false
assets:
- lib/kernel/src/theme/themes/
- lib/kernel/src/i18n/catalog/
- assets/keymaps/
- assets/licenses.yaml
- assets/LICENSE
- assets/fonts/jetbrains_mono/OFL.txt
- assets/fonts/josefin_sans/OFL.txt
- assets/fonts/phosphor/LICENSE
- assets/logo/logo.svg
- assets/logo/logo-192.png
- assets/logo/appicon.svg
- assets/logo/appicon-256.png
- assets/clide.tmux.conf
- assets/grammars/
- assets/queries/
fonts:
- family: JosefinSans
fonts:
- asset: assets/fonts/josefin_sans/JosefinSans-VariableFont.ttf
- asset: assets/fonts/josefin_sans/JosefinSans-Italic-VariableFont.ttf
style: italic
- family: Phosphor
fonts:
- asset: assets/fonts/phosphor/Phosphor.ttf
- asset: assets/fonts/phosphor/Phosphor-Bold.ttf
weight: 700
- asset: assets/fonts/phosphor/Phosphor-Fill.ttf
- family: JetBrainsMono
fonts:
- asset: assets/fonts/jetbrains_mono/JetBrainsMono-Regular.ttf
- asset: assets/fonts/jetbrains_mono/JetBrainsMono-Italic.ttf
style: italic
- asset: assets/fonts/jetbrains_mono/JetBrainsMono-Bold.ttf
weight: 700
- asset: assets/fonts/jetbrains_mono/JetBrainsMono-BoldItalic.ttf
weight: 700
style: italic