mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-15 06:32:40 +00:00
Added espanso - text expander
This commit is contained in:
48
espanso/Library/Preferences/espanso/default.yml
Normal file
48
espanso/Library/Preferences/espanso/default.yml
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# 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: ":@"
|
||||||
|
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"
|
||||||
|
|
||||||
Reference in New Issue
Block a user