Update espanso matches

This commit is contained in:
Oliver Davies 2024-11-20 22:42:14 +00:00
parent 785b24ca0f
commit 7c5461892c
2 changed files with 16 additions and 9 deletions

View file

@ -1,3 +1,5 @@
{ lib, ... }:
{
services.espanso = {
enable = true;
@ -10,7 +12,7 @@
};
matches = {
base = import ./espanso/matches/base.nix;
base = import ./espanso/matches/base.nix { inherit lib; };
};
};
}

View file

@ -1,10 +1,19 @@
{ lib, ... }:
let
inherit (lib) removePrefix;
websiteUrl = "https://www.oliverdavies.uk";
dailyUrl = "https://dailydrupaler.com";
githubUrl = "https://github.com/opdavies";
podcastUrl = "https://beyondblockspodcast.com";
in
{
matches = [
{
trigger = ":email";
replace = "oliver@${removePrefix "https://www." websiteUrl}";
}
{
trigger = ":archive";
replace = "${websiteUrl}/archive";
@ -26,16 +35,12 @@ in
replace = "${dailyUrl}";
}
{
trigger = ":dotfiles";
replace = "https://github.com/opdavies/dotfiles.nix";
trigger = ":dot";
replace = "${githubUrl}/dotfiles";
}
{
trigger = ":dc";
replace = "Drupal Commerce";
}
{
trigger = ":dr";
replace = "Drupal";
trigger = ":gh";
replace = "${githubUrl}";
}
{
trigger = ":gt";