## Espanso
🔹 *parent* [[⧋ Applications|Applications]]
▫️ *prev* *next* *related* [[⏶ VS Code|VS Code]], [[⏶ Obsidian Process 2021]], [[⏶ Productivity Tools|Productivity Tools]], [[⏶ YAML|YAML]]
### Tasks:
- [ ] Add list of triggers
### Existing Triggers
`yaml`, `apple`, `media`, `loc`, `kase`, `clone`, `loc`, `bc`, `iso`, `shell`, `fulldate`, `date`, `espanso`
Default settings here:
Links: 
### Notes
I figured out how to use this program a bit:
https://forum.obsidian.md/t/fun-with-espanso/2317
I configure replacement text in a default.yml file in yaml format.
##Simple text replacement
```yaml
matches:
# Simple text replacement
- trigger: ":espanso"
replace: "Hi there!"
```
Simple shell command return:
```yaml
# Shell commands
- trigger: ":shell"
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "echo Hello from your shell"
```
Dates:
```yaml
# Dates
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%m-%d-%Y-%a"
```
Breadcrumb - returns a previous / index / next that uses the date command to subtract or add a date from a concatenate date object:
```yaml
# Breadcrumb
- trigger: ":bc"
word: true
replace: "{{output}}"
vars:
- name: output
type: shell
params:
cmd: "echo `date -v -1d \"+[[Daily Notes/%Y-%m-%d-%a|<< Previous Day]]\"`' | [[Templates/calendar|Index]] | '`date -v +1d \"+[[Daily Notes/%Y-%m-%d-%a|Next Day >>]]\"`"
```
Referencing things in a note:
`:sup`
creates:
`[[Note-Title#^TopicNameYear|1(ref-num)]]`
`:ref`
creates:
`[Lastname, Firstname (year). *Name of book, journal, article*](URL)^1-TopicNameYear`
Others:
![[⏶ YAML#Code Snippets|YAML]]
### References
The forum post where I found information on Espanso being used in Obsidian [Obsidian Forums](https://forum.obsidian.md/t/fun-with-espanso/2317)^1ObsidianEspansoForum