Skip to content

refactor: use grouped triggers format and align Hub metadata#11

Merged
heavybeard merged 1 commit intomainfrom
refactor/grouped-triggers
Apr 27, 2026
Merged

refactor: use grouped triggers format and align Hub metadata#11
heavybeard merged 1 commit intomainfrom
refactor/grouped-triggers

Conversation

@heavybeard
Copy link
Copy Markdown
Owner

Summary

  • generate_pack() now emits triggers: lists grouped by replacement word instead of individual trigger:/replace: pairs, matching the format requested by the espanso/hub reviewer (smeech)
  • generate_accenti_pack() short-word section uses the same grouped format
  • PACKAGE_META aligned with espanso/hub PR #223 review fixes: added languages, spell-correction, typofixer tags; fixed italiano README example (probelma→problema); replaced dead dictionaries/local/README.md path with link to project repository in dev README
  • Tests updated for the new triggers (list) schema

This makes --espanso-packages output fully reproducible — no more manual post-processing needed after regenerating Hub packages.

Test plan

  • All 160 tests pass (python3 -m pytest tests/ -v)
  • CI passes (validate dictionaries + generate rules)

Made with Cursor

- generate_pack() now emits triggers: lists grouped by replacement word
  instead of individual trigger:/replace: pairs, matching the format
  requested by the espanso/hub reviewer
- generate_accenti_pack() short-word section uses the same grouped format
- PACKAGE_META: add languages, spell-correction, typofixer tags; fix
  italiano README example (probelma→problema); fix dev README dead path
  with link to project repository
- Update test_yaml_generation.py for the new triggers (list) schema

Made-with: Cursor
@heavybeard heavybeard merged commit 7b26147 into main Apr 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant