dotfiles/nix/modules/home-manager/features/desktop/espanso/matches/base.nix

87 lines
1.7 KiB
Nix
Raw Normal View History

2024-11-20 22:42:14 +00:00
{ lib, ... }:
2024-09-11 12:00:00 +00:00
let
2024-11-20 22:42:14 +00:00
inherit (lib) removePrefix;
2024-09-11 12:00:00 +00:00
websiteUrl = "https://www.oliverdavies.uk";
dailyUrl = "https://dailydrupaler.com";
2024-11-20 22:42:14 +00:00
githubUrl = "https://github.com/opdavies";
2024-09-11 12:00:00 +00:00
podcastUrl = "https://beyondblockspodcast.com";
in
{
matches = [
2024-11-20 22:42:14 +00:00
{
trigger = ":email";
replace = "oliver@${removePrefix "https://www." websiteUrl}";
}
{
trigger = ":archive";
2024-09-11 12:00:00 +00:00
replace = "${websiteUrl}/archive";
}
{
trigger = ":atdc";
2024-09-11 12:00:00 +00:00
replace = "${websiteUrl}/atdc";
}
{
trigger = ":call";
2024-09-11 12:00:00 +00:00
replace = "${websiteUrl}/call";
}
{
trigger = ":coaching";
2024-09-11 12:00:00 +00:00
replace = "${websiteUrl}/team-coaching";
}
{
trigger = ":daily";
2024-09-11 12:00:00 +00:00
replace = "${dailyUrl}";
}
{
2024-11-20 22:42:14 +00:00
trigger = ":dot";
replace = "${githubUrl}/dotfiles";
}
{
2024-11-20 22:42:14 +00:00
trigger = ":gh";
replace = "${githubUrl}";
}
{
trigger = ":gt";
replace = "Great, thanks!";
}
{
trigger = ":guest";
2024-09-11 12:00:00 +00:00
replace = "If you'd like to be a guest on ${podcastUrl} and talk about ..., I'd love to have you on the show.";
}
{
trigger = ":lh";
replace = "http://localhost";
}
{
trigger = ":podcast";
2024-09-11 12:00:00 +00:00
replace = "${podcastUrl}";
}
{
trigger = ":pricing";
2024-09-11 12:00:00 +00:00
replace = "${websiteUrl}/pricing";
}
{
trigger = ":record";
replace = "https://savvycal.com/opdavies/beyond-blocks";
}
{
trigger = ":talks";
2024-09-11 12:00:00 +00:00
replace = "${websiteUrl}/presentations";
}
{
trigger = ":website";
2024-09-11 12:00:00 +00:00
replace = "${websiteUrl}";
}
{
trigger = ":zet";
replace = "https://zet.oliverdavies.uk";
}
{
trigger = ":zoom";
replace = "https://savvycal.com/opdavies/zoom";
}
];
}