✨ Added basic config for espanso
This commit is contained in:
parent
8f7c776861
commit
7de6db9bcc
1 changed files with 84 additions and 0 deletions
84
espanso/base.yml
Normal file
84
espanso/base.yml
Normal file
|
|
@ -0,0 +1,84 @@
|
|||
# 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"
|
||||
|
||||
# Print the $USER
|
||||
- trigger: ":user"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: "echo $USER"
|
||||
|
||||
# Print the $HOST
|
||||
- trigger: ":term"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: "echo $TERM" # returns "linux"...
|
||||
|
||||
- trigger: ":shell"
|
||||
replace: "{{output}}"
|
||||
vars:
|
||||
- name: output
|
||||
type: shell
|
||||
params:
|
||||
cmd: "echo $SHELL"
|
||||
|
||||
- trigger: ":for"
|
||||
replace: "for (;;) {}"
|
||||
|
||||
- trigger: ":while"
|
||||
replace: "while () {}"
|
||||
|
||||
- trigger: ":if"
|
||||
replace: "if () {}"
|
||||
|
||||
- trigger: ":elif"
|
||||
replace: "else if () {}"
|
||||
|
||||
- trigger: ":else"
|
||||
replace: "else {}"
|
||||
|
||||
- trigger: ":do"
|
||||
replace: "do {} while ()"
|
||||
|
||||
- trigger: ":func"
|
||||
replace: "function () {}"
|
||||
|
||||
# And much more! For more information, visit the docs: https://espanso.org/docs/
|
||||
Loading…
Add table
Add a link
Reference in a new issue