Skip to content

Instantly share code, notes, and snippets.

@cjxe
Last active July 8, 2023 19:31
Show Gist options
  • Save cjxe/4394233c60045f1c5a20a98ebab904a6 to your computer and use it in GitHub Desktop.
Save cjxe/4394233c60045f1c5a20a98ebab904a6 to your computer and use it in GitHub Desktop.
πŸš€πŸ§‘β€πŸ’» My favourite Espanso matches to boost productivity

My favourite Espanso matches

Index

  1. Emails
  2. Email greeting
  3. Email signatures
  4. Socials
  5. Google searches

Emails

  - trigger: "j@g"
    replace: "john.doe@gmail.com"

Email greetings

  - trigger: "~greet"
    replace: "{{time_of_day}}"
    vars:
      - name: shell_output
        type: shell 
        params:
          cmd: if [[ $(date +%H) -lt 12 ]]; then echo "Good morning,"; elif [[ $(date +%H) -lt 17 ]]; then echo "Good afternoon,"; else echo "Good evening,"; fi
      - name: time_of_day
        type: echo
        params:
          echo: "{{shell_output}}"

Email signatures

  - trigger: "~kg"
    replace: |
      Kind regards,
      John
  - trigger: "~ty"
    replace: |
      Thank you,
      John

Socials

  - trigger: "cjxe@github"
    replace: "https://github.com/cjxe"
  - trigger: "myukphone"
    replace: "+44000000000"

Google searches

  - trigger: "wws"
    replace: "site:stackoverflow.com"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment