MyNixOS website logo

The Espanso matches to use. See https://espanso.org/docs/matches/basics/ for a description of available options.

Declarations
Type
YAML value
Default
{
  default = {
    matches = [ ];
  };
}
Example
{
  base = {
    matches = [
      {
        trigger = ":now";
        replace = "It's {{currentdate}} {{currenttime}}";
      }
      {
        trigger = ":hello";
        replace = "line1\nline2";
      }
      {
        regex = ":hi(?P<person>.*)\\.";
        replace = "Hi {{person}}!";
      }
    ];
  };
  global_vars = {
    global_vars = [
      {
        name = "currentdate";
        type = "date";
        params = {format = "%d/%m/%Y";};
      }
      {
        name = "currenttime";
        type = "date";
        params = {format = "%R";};
      }
    ];
  };
};
</person>