跨平台的文字扩展工具:':greet' -> 'hello world'
官方网站 https://espanso.org
espanso edit
# 打开的文本文件,自行修改
# EDITOR=/usr/bin/vim
简化如下:
# 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:
# Simple text replacement
- trigger: ":espanso"
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 your shell"
# 给出一个表格界面
- trigger: ":greet"
form: |
Hey {{name}},
Happy Birthday!
之后,就可以 :espanso —> Hi there!
。
至于其他的,作者的文档写得相当详细。