Skip to content

Config files don't support .yaml? #385

Closed

Description

@4lch4

This is more of a question than an actual issue. I tried creating some new "packages" under the user config folder and they had the .yaml extension as opposed to .yml. They don't seem to be getting picked up by espanso though.

When I created a new social.yaml and gave it a simple match, it wasn't being picked up by espanso, which leads me to believe the .yaml extension isn't supported. I'm not too in touch with YAML but after some Google searches, .yaml is the "recommended" [0] [1] version and .yml is the more popular but equally as valid version.

Here's the content of the mentioned social.yaml file:

name: 'social'
parent: 'default'

matches:
  - trigger: ":tst"
    replace: "Thisis just a test."

Is this intentional or am I just missing something?

Activity

  1. changed the title [-]Config files don't support `.yaml`?[/-] [+]Config files don't support .yaml?[/+] on Jul 23, 2020
  2. federico-terzi commented on Jul 23, 2020

    @federico-terzi
    Collaborator

    Hey @4lch4,

    That's intentional, I wanted to keep it short and followed what some of the most popular tools were doing (such as Docker).
    That said, it might be a good idea to support the other format as well, so I'll add it to the roadmap

    Thanks for your help :)

  3. added
    enhancement
    on Jul 24, 2020
  4. smeech commented on Feb 13, 2024

    @smeech
    Collaborator

    Is this still planned?

  5. self-assigned this
    on Apr 6, 2025
  6. bannert1337 commented on Apr 15, 2025

    @bannert1337

    I just had this exact problem and was frustrated as to why the expansions I had created were not working. At some point I realised that the file extension was .yaml instead of .yml and therefore it would not load.

    From a user experience perspective, and considering that .yml and .yaml are widely accepted as interchangeable extensions for YAML files in many other tools and ecosystems, it feels like unexpected behavior or an unnecessary limitation. A user reasonably expects either extension to work. Ignoring .yaml files silently (without an error message saying "Ignoring file with .yaml extension, use .yml") can lead to frustrating debugging, as I have experienced.

  7. AucaCoyan commented on Apr 16, 2025

    @AucaCoyan
    Collaborator

    Hey! I need to chime in to say yes, this is important!. I remember reading some code somewhere that checks for the extension (sorry for the poor accuracy).
    Whatever is causing espanso not recognize .yaml extension, should be fixed.

  8. added
    bug
    matches
    configuration
    and removed
    enhancement
    on Apr 16, 2025
  9. moved this from To do to Done in Espanso roadmapon Oct 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugconfigurationmatches

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions