mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 06:12:34 +00:00
Updating espanso configuration to new format
This commit is contained in:
@@ -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"
|
|
||||||
|
|
||||||
@@ -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"
|
|
||||||
|
|
||||||
|
|||||||
19
espanso/espanso/match/date.yml
Normal file
19
espanso/espanso/match/date.yml
Normal 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"
|
||||||
|
|
||||||
11
espanso/espanso/match/email.yml
Normal file
11
espanso/espanso/match/email.yml
Normal 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"
|
||||||
|
|
||||||
12
espanso/espanso/match/housecallpro.yml
Normal file
12
espanso/espanso/match/housecallpro.yml
Normal 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"
|
||||||
|
|
||||||
17
espanso/espanso/match/links.yml
Normal file
17
espanso/espanso/match/links.yml
Normal 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"
|
||||||
|
|
||||||
Reference in New Issue
Block a user