Updating espanso configuration to new format

This commit is contained in:
2023-03-17 09:00:54 -04:00
parent 969dd4dfe4
commit 07d45dde36
6 changed files with 64 additions and 103 deletions

View File

@@ -1,52 +0,0 @@
# espanso configuration file
# This is the default configuration file, change it as you like it
# You can refer to the official documentation:
# https://espanso.org/docs/
# Matches are the substitution rules, when you type the "trigger" string
# it gets replaced by the "replace" string.
matches:
# Simple text replacement
- trigger: ":espanso"
replace: "Hi there!"
# Dates
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%m/%d/%Y"
# Shell commands
- trigger: ":shell"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "echo Hello from your shell"
# Email
- trigger: ":@m"
replace: "mhoush@houshhomeenergy.com"
- trigger: ":@h"
replace: "@houshhomeenergy.com"
- trigger: ":@s"
replace: "service@houshhomeenergy.com"
# Iso-seconds
- trigger: ":isosec"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "isosec"
# Youtube
- trigger: ":yt"
replace: "https://www.youtube.com/channel/UCb58SeURd5bObfTiL0KoliA"

View File

@@ -1,62 +1,16 @@
# espanso match file # espanso match file
# For a complete introduction, visit the official docs at: https://espanso.org/docs/ # For a complete introduction, visit the official docs at: https://espanso.org/docs/
# You can use this file to define the base matches (aka snippets) # You can use this file to define the base matches (aka snippets)
# that will be available in every application when using espanso. # that will be available in every application when using espanso.
# Matches are substitution rules: when you type the "trigger" string # Matches are substitution rules: when you type the "trigger" string
# it gets replaced by the "replace" string. # it gets replaced by the "replace" string.
matches:
# Simple text replacement
- trigger: ":espanso"
replace: "Hi there!"
# NOTE: espanso uses YAML to define matches, so pay attention to the indentation! imports:
- "./date.yml"
- "./email.yml"
- "./housecallpro.yml"
- "./links.yml"
# But matches can also be dynamic:
# Print the current date
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%m/%d/%Y"
# Email
- trigger: ":@hhe"
replace: "mhoush@houshhomeenergy.com"
- trigger: ":@service"
replace: "service@houshhomeenergy.com"
- trigger: ":@me"
replace: "michael@mhoush.com"
# House Call Pro
- trigger: ":cc"
replace: "Client Concern"
- trigger: ":diag"
replace: "Diagnostic"
- trigger: ":wd"
replace: "Work Description"
- trigger: ":wp" # I often mistype for this.
replace: "Work Description"
# Iso-seconds
- trigger: ":isosec"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "isosec"
# Youtube
- trigger: ":yt"
replace: "https://www.youtube.com/channel/UCb58SeURd5bObfTiL0KoliA"
# Discord
- trigger: ":discord"
replace: "https://discord.gg/W3p5GJfjry"

View File

@@ -0,0 +1,19 @@
matches:
# Print the current date
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%m/%d/%Y"
# Iso-seconds
- trigger: ":isosec"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "isosec"

View File

@@ -0,0 +1,11 @@
# Email configuration.
matches:
# Email Addresses
- trigger: ":@hhe"
replace: "mhoush@houshhomeenergy.com"
- trigger: ":@service"
replace: "service@houshhomeenergy.com"
- trigger: ":@me"
replace: "michael@mhoush.com"

View File

@@ -0,0 +1,12 @@
# Commonly used in house call pro.
matches:
# House Call Pro
- trigger: ":cc"
replace: "Client Concern"
- trigger: ":diag"
replace: "Diagnostic"
- trigger: ":wd"
replace: "Work Description"
- trigger: ":wp" # I often mistype for this.
replace: "Work Description"

View File

@@ -0,0 +1,17 @@
# This file includes common url's / links.
matches:
# Github
- trigger: ":git"
replace: "https://github.com/m-housh"
- trigger: ":pf"
replace: "https://pointfree.co"
# Youtube
- trigger: ":yt"
replace: "https://www.youtube.com/channel/UCb58SeURd5bObfTiL0KoliA"
# Discord
- trigger: ":discord"
replace: "https://discord.gg/W3p5GJfjry"