Update default config
This commit is contained in:
parent
a925af2672
commit
463432d981
|
@ -1,6 +1,6 @@
|
||||||
![espanso](images/titlebar.png)
|
![espanso](images/titlebar.png)
|
||||||
|
|
||||||
> Cross-platform Text Expander written in Rust
|
> A cross-platform Text Expander written in Rust
|
||||||
|
|
||||||
![Language](https://img.shields.io/badge/language-rust-orange)
|
![Language](https://img.shields.io/badge/language-rust-orange)
|
||||||
![Platforms](https://img.shields.io/badge/platforms-Windows%2C%20macOS%20and%20Linux-blue)
|
![Platforms](https://img.shields.io/badge/platforms-Windows%2C%20macOS%20and%20Linux-blue)
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
![example](images/example.gif)
|
![example](images/example.gif)
|
||||||
|
|
||||||
##### What is a Text Expander?
|
#### What is a Text Expander?
|
||||||
|
|
||||||
A *text expander* is a program that detects when you type
|
A *text expander* is a program that detects when you type
|
||||||
a specific **keyword** and replaces it with **something else**.
|
a specific **keyword** and replaces it with **something else**.
|
||||||
|
@ -18,7 +18,9 @@ This is useful in many ways:
|
||||||
* Execute **custom scripts**
|
* Execute **custom scripts**
|
||||||
* Use **emojis** like a pro.
|
* Use **emojis** like a pro.
|
||||||
|
|
||||||
### Features
|
___
|
||||||
|
|
||||||
|
## Key Features
|
||||||
|
|
||||||
* Works on **Windows**, **macOS** and **Linux**
|
* Works on **Windows**, **macOS** and **Linux**
|
||||||
* Works with almost **any program**
|
* Works with almost **any program**
|
||||||
|
|
|
@ -2,14 +2,33 @@
|
||||||
|
|
||||||
# This is the default configuration file, change it as you like it
|
# This is the default configuration file, change it as you like it
|
||||||
# You can refer to the official documentation:
|
# You can refer to the official documentation:
|
||||||
|
# https://github.com/federico-terzi/espanso
|
||||||
|
|
||||||
# Matches are the substitution rules, when you type the "trigger" string
|
# Matches are the substitution rules, when you type the "trigger" string
|
||||||
# it gets replaced by the "replace" string.
|
# it gets replaced by the "replace" string.
|
||||||
matches:
|
matches:
|
||||||
# Default
|
# Simple text replacement
|
||||||
- trigger: ":espanso"
|
- trigger: ":espanso"
|
||||||
replace: "Hi there!"
|
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 you shell"
|
||||||
|
|
||||||
# Emojis
|
# Emojis
|
||||||
- trigger: ":lol"
|
- trigger: ":lol"
|
||||||
replace: "😂"
|
replace: "😂"
|
||||||
|
@ -21,29 +40,21 @@ matches:
|
||||||
replace: "☹☹☹☹"
|
replace: "☹☹☹☹"
|
||||||
|
|
||||||
# Accented letters
|
# Accented letters
|
||||||
- trigger: "e'"
|
- trigger: "e''"
|
||||||
replace: "è"
|
replace: "è"
|
||||||
- trigger: "e//"
|
- trigger: "e//"
|
||||||
replace: "é"
|
replace: "é"
|
||||||
- trigger: "a'"
|
- trigger: "a''"
|
||||||
replace: "à"
|
replace: "à"
|
||||||
- trigger: "i'"
|
- trigger: "i''"
|
||||||
replace: "ì"
|
replace: "ì"
|
||||||
- trigger: "o'"
|
- trigger: "o''"
|
||||||
replace: "ò"
|
replace: "ò"
|
||||||
- trigger: "u'"
|
- trigger: "u''"
|
||||||
replace: "ù"
|
replace: "ù"
|
||||||
|
|
||||||
# Capital accented letters
|
# Capital accented letters
|
||||||
- trigger: "E'"
|
- trigger: "E''"
|
||||||
replace: "È"
|
replace: "È"
|
||||||
- trigger: "E/"
|
- trigger: "E//"
|
||||||
replace: "É"
|
replace: "É"
|
||||||
- trigger: "A'"
|
|
||||||
replace: "À"
|
|
||||||
- trigger: "I'"
|
|
||||||
replace: "Ì"
|
|
||||||
- trigger: "O'"
|
|
||||||
replace: "Ò"
|
|
||||||
- trigger: "U'"
|
|
||||||
replace: "Ù"
|
|
Loading…
Reference in New Issue
Block a user