Skip to content

Instantly share code, notes, and snippets.

@legzo
Created January 23, 2021 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save legzo/aa10a9a57305a12b3b1dff83fc987261 to your computer and use it in GitHub Desktop.
Save legzo/aa10a9a57305a12b3b1dff83fc987261 to your computer and use it in GitHub Desktop.
Fichier de conf espanso
# espanso configuration file
show_icon: false
show_notifications: false
# This is the default configuration file, change it as you like it
# You can refer to the official documentation:
# https://espanso.org/docs/
# Matches are the substitution rules, when you type the "trigger" string
# it gets replaced by the "replace" string.
matches:
# Simple text replacement
- trigger: ":espanso"
replace: "Hi there!"
- trigger: "shrug"
replace: "¯\\_(ツ)_/¯"
- trigger: "eshrug"
replace: "¯\\\\_(ツ)_/¯"
- trigger: "!codek"
replace: "```kotlin\n$|$\n```"
- trigger: "!codex"
replace: "```xml\n$|$\n```"
- trigger: "!codes"
replace: "```javascript\n$|$\n```"
- trigger: "!codej"
replace: "```java\n$|$\n```"
- trigger: "!codep"
replace: "```\n$|$\n```"
- trigger: "codek\\"
replace: "```kotlin\n$|$\n```"
- trigger: "codex\\"
replace: "```xml\n$|$\n```"
- trigger: "codejs\\"
replace: "```javascript\n$|$\n```"
- trigger: "codej\\"
replace: "```java\n$|$\n```"
- trigger: "code\\"
replace: "```\n$|$\n```"
- trigger: "cod\\"
replace: "`{{clipboard}}`"
vars:
- name: "clipboard"
type: "clipboard"
- trigger: "lib-options\\"
replace: "[`lib-options`](https://gitlab.si.francetelecom.fr/myshop/libs/options)"
- trigger: "connector\\"
replace: "[`connector`](https://gitlab.si.francetelecom.fr/myshop/connector)"
- trigger: "lib-offers\\"
replace: "[`lib-offers`](https://gitlab.si.francetelecom.fr/myshop/libs/offers)"
- trigger: "lib-address\\"
replace: "[`lib-address`](https://gitlab.si.francetelecom.fr/myshop/libs/address)"
- trigger: "lib-contract\\"
replace: "[`lib-contractual-documents`](https://gitlab.si.francetelecom.fr/myshop/libs/contractual-documents)"
- trigger: "myshop-api\\"
replace: "[`myshop-api`](https://gitlab.si.francetelecom.fr/myshop/myshop-api)"
# 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 your shell"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment