mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-16 07:02:37 +00:00
Updated espanso config
This commit is contained in:
59
espanso/espanso/match/base.yml
Normal file
59
espanso/espanso/match/base.yml
Normal file
@@ -0,0 +1,59 @@
|
||||
# espanso match file
|
||||
|
||||
# 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)
|
||||
# that will be available in every application when using espanso.
|
||||
|
||||
# Matches are substitution rules: when you type the "trigger" 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!
|
||||
|
||||
# But matches can also be dynamic:
|
||||
|
||||
# Print the current date
|
||||
- trigger: ":date"
|
||||
replace: "{{mydate}}"
|
||||
vars:
|
||||
- name: mydate
|
||||
type: date
|
||||
params:
|
||||
format: "%m/%d/%Y"
|
||||
|
||||
# Print the output of a shell command
|
||||
- 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"
|
||||
- trigger: ":@me"
|
||||
replace: "michael@mhoush.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"
|
||||
|
||||
Reference in New Issue
Block a user