# espanso
in:: [[office.tools|Office-Tools]]
## Beschreibung
Projekt-Seite im Internet: <https://espanso.org/>
"Text-Vervollständiger". Eigenwerbung auf der Webseite: "Discover the incredible power of a full-blown text expander."
Man tippt etwas und es wird automatisch ersetzt.
Aus Abkürzungen werden Floskeln...
### Installation
Beim Setup wird man gefragt, ob das Programm automatisch mit Windows starten soll. -> Macht normalerweise Sinn.
### Beispiele
- :date -> aktuelles Datum einfügen, Format wählbar
- dmy -> aktuelles Datum in "normaler Schreibweise" wie "28.01.2023". Eselsbrücke: "day - month - year"
- ymd -> aktuelles Datum in "umgekehrter Schreibweise" wie: "2023-01-28". Eselsbrücke: "year - month - day"
- sgdh -> "Sehr geehrte Damen und Herren,
- mfg -> Mit freundlichen Grüßen
- vgj -> Viele Grüße, Jost Thome
- vgt -> Viele Grüße, Jost
- @@ -> meine eMail-Adresse
- ...
## Installation auf dem eigenen Computer
Informationen zur Windows-Version: <https://espanso.org/docs/install/win/>
Wir empfehlen die Installation via [[winget|WinGet]]
```
winget install espanso.espanso
```
## Beispiel für die Konfiguration
Folder -> <file:////C:/Users/thome.ARCHLAND/AppData/Roaming/espanso/match>
Config-File -> <file:////C:/Users/thome.ARCHLAND/AppData/Roaming/espanso/match/base.yml>
```
# 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!
# Print the current date
- trigger: ":date"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%Y-%m-%d"
- trigger: "dmy"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%d.%m.%Y"
- trigger: "ymd"
replace: "{{mydate}}"
vars:
- name: mydate
type: date
params:
format: "%Y-%m-%d"
# And much more! For more information, visit the docs: https://espanso.org/docs/
- trigger: "mfg"
replace: "Mit freundlichen Gruessen,\nJost Thome."
- trigger: "@@"
replace: "
[email protected]"
- trigger: "sgdh"
replace: "Sehr geehrte Damen und Herren,"
- trigger: "vgj"
replace: "Viele Gruesse,\nJost."
- trigger: "vgt"
replace: "Viele Gruesse,\nJost Thome."