You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
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
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.
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.
Activity
[-]Config files don't support `.yaml`?[/-][+]Config files don't support .yaml?[/+]federico-terzi commentedon Jul 23, 2020
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 :)
smeech commentedon Feb 13, 2024
Is this still planned?
bannert1337 commentedon Apr 15, 2025
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
.yamlinstead of.ymland therefore it would not load.From a user experience perspective, and considering that
.ymland.yamlare 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.yamlfiles silently (without an error message saying "Ignoring file with .yaml extension, use .yml") can lead to frustrating debugging, as I have experienced.AucaCoyan commentedon Apr 16, 2025
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
.yamlextension, should be fixed.Add support for .yaml extension for config and match files (espanso#385)
Add support for .yaml extension for config and match files (espanso#385)
Add support for .yaml extension for config and match files (espanso#385)
Add support for .yaml extension for config and match files (espanso#2184
fix: check for both .yml and .yaml extensions before generating defau…
Add support for .yaml extension for config and match files (espanso#2184
fix: check for both .yml and .yaml extensions before generating defau…