cad-editor/assets
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Hakan Seven 91ba9f7699 feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288)
Command aliases (L→LINE, CC→COPYCLIP) were scattered across dispatch match
arms and CommandRegistration name arrays. Move them all into a single
user-editable file:

- assets/ocad.pgp: shipped default alias table (ALIAS,*COMMAND format),
  embedded and copied to config/ocad.pgp on first launch; only that user
  copy is read after. AA→AREA default closes #286.
- resolve_alias() rewrites the leading command token at the top of
  dispatch_command_inner, so aliases resolve for every path (families,
  plugins, Repeat menu). Args after the first space are untouched.
- Autocomplete hides alias keys and, when the whole input is an alias,
  surfaces its target command as the top (highlighted) suggestion so the
  highlight matches what Enter runs (AA→AREA, L→LINE).
- ALIASEDIT opens a new editor modal (add/edit/delete rows) with an Apply
  button; Apply persists to ocad.pgp, closing discards unapplied edits.
- Strip alias tokens from all 8 dispatch match-arm files and 71 module
  CommandRegistration arrays, keeping canonical/synonym/distinct-command
  names. ocad.pgp is now the sole source: deleting or remapping an alias
  there takes effect. CUI stays on the keyboard-shortcut panel.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-10 12:39:22 +03:00
..
fonts feat(fonts): system TrueType support with shaping and fallback 2026-06-16 11:18:17 +03:00
icons feat(draw): Arc Continue command; 3-Point default 2026-07-08 20:39:40 +03:00
linetypes chore(assets): drop ACAD prefix from ISO names 2026-06-08 23:11:30 +03:00
patterns chore(assets): drop ACAD prefix from ISO names 2026-06-08 23:11:30 +03:00
intro_thumb.jpg feat(start): replace info cards with a clickable intro video 2026-06-27 12:21:14 +03:00
intro_thumb2.jpg feat(start): add a second intro video next to the first 2026-07-02 00:27:25 +03:00
logo.svg chore: rename H7CAD to Open CAD Studio 2026-05-23 17:16:15 +03:00
ocad.pgp feat(alias): centralize command aliases in user-editable ocad.pgp (#286/#288) 2026-07-10 12:39:22 +03:00