Skip to content

fix: check for both .yml and .yaml extensions before generating default files - #2558

Merged
AucaCoyan merged 1 commit into
espanso:devfrom
mefengl:fix-base-yaml-ignored
Nov 5, 2025
Merged

AucaCoyan merged 1 commit into
espanso:devfrom
mefengl:fix-base-yaml-ignored

Conversation

@mefengl

@mefengl mefengl commented Nov 5, 2025

Copy link
Copy Markdown
Contributor

Closes #2557

This PR fixes the issue where Espanso auto-generates base.yml even when base.yaml already exists, causing .yaml files to be ignored.

Changes:

  • Check for both .yml and .yaml extensions before generating default config files
  • Only generate if NEITHER extension exists

Impact:

  • Minimal: only affects first-time setup or when config files are missing
  • Backwards compatible: existing behavior unchanged

…lt files

Fixes issue where Espanso auto-generates base.yml even when base.yaml
already exists, causing .yaml files to be ignored. Now checks for both
extensions before creating default configuration files.

Relates to #385, #1316, #2184
@mefengl
mefengl requested a review from AucaCoyan as a code owner November 5, 2025 00:04
@AucaCoyan

Copy link
Copy Markdown
Collaborator

Thank you! I didn't catch this in the test phase 🚀

@AucaCoyan
AucaCoyan merged commit 58b8c7b into espanso:dev Nov 5, 2025
@mefengl
mefengl deleted the fix-base-yaml-ignored branch November 5, 2025 13:33
sboldt1978 pushed a commit to sboldt1978/espanso that referenced this pull request Feb 11, 2026
…lt files (espanso#2558)

Fixes issue where Espanso auto-generates base.yml even when base.yaml
already exists, causing .yaml files to be ignored. Now checks for both
extensions before creating default configuration files.

Relates to espanso#385, espanso#1316, espanso#2184
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.

base.yaml ignored when base.yml is auto-generated

2 participants