# espanso

A Privacy-first, Cross-platform Text Expander |

espanso.org (opens new window)

# Config

# espanso configuration file

# 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:
  # Signature
  - trigger: "sig;"
    replace: "with gratitude,\nJosh Medeski"

  # Emails
  - trigger: "em;"
    replace: "josh.medeski@gmail.com"
    
  - trigger: "emw;"
    replace: "josh@upgrademedia.com"

  # Simple text replacement
  - trigger: ":espanso"
    replace: "Hi there!"

  # Dates
  - trigger: "date;"
    replace: "{{mydate}}"
    vars:
      - name: mydate
        type: date
        params:
          format: "%m/%d/%Y"

  # Dates
  - trigger: "td;"
    replace: "{{today}}"
    vars:
      - name: today
        type: date
        params:
          format: "%m/%d/%Y"
          
  - trigger: "mdy;"
    replace: "{{today}}"
    vars:
      - name: today
        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"