Skip to content

Instantly share code, notes, and snippets.

@mebiusbox
Last active August 28, 2024 08:31
Show Gist options
  • Save mebiusbox/245de4a7acc9e5b5a07f211960756eb0 to your computer and use it in GitHub Desktop.
Save mebiusbox/245de4a7acc9e5b5a07f211960756eb0 to your computer and use it in GitHub Desktop.
Espanso

Espanso

Espansoは文字入力支援ソフトです. ここには、Espanso用の追加設定ファイルを置いておきます.

Espansoの設定ファイル base.ymlimports に指定したりコピペで使えます.

imports:
  - symbols.yml

symbols.yml

replace label trigger
;v|
;^|
;->
;<-
↩️ ;.ret
« ;<<
» ;>>
;<>
;^v
;.<
;.>
° ;.degree
© ;.copyright
§ ;.section
;.--
;square, ;.sq
;large_square, ;.lsq
;white_square, ;.wsq
;large_white_square, ;.lwsq
;dotted_square, ;.dsq
;shadowed_square, ;.ssq
;rounded_square, ;.rsq
;bullet, ;.bul
∙* ;.<NNN>bul
;triangle_bullet, ;.tbul
;circle, ;.cir
;white_bullet, ;.wbul
;diamond, ;.dia
;equal, ;.eq
;sym
;sym
() ;bra
〈〉 ;bra
《》 ;bra
『』 ;bra
【】 ;bra
〔〕 ;bra
[] ;bra
😄 smile ;emoji
😍 heart-eyes ;emoji
🤔 think ;emoji
😐 neutral ;emoji
😳 flush ;emoji
😠 angry ;emoji
😢 cry ;emoji
matches:
- trigger: ";v|"
replace: "↓"
- trigger: ";^|"
replace: "↑"
- trigger: ";->"
replace: "→"
- trigger: ";<-"
replace: "←"
- trigger: ";.ret"
replace: "↩️"
- trigger: ";<<"
replace: "«"
- trigger: ";>>"
replace: "»"
- trigger: ";<>"
replace: "↔"
- trigger: ";^v"
replace: "↕"
- trigger: ";.<"
replace: "‹"
- trigger: ";.>"
replace: "›"
- trigger: ";degree"
replace: "°"
- trigger: ";copyright"
replace: "©"
- trigger: ";section"
replace: "§"
- trigger: ";--"
replace: "—"
- triggers: [";square", ";.sq"]
replace: "■"
- triggers: [";large_square", ";.lsq"]
replace: "⬛"
- triggers: [";white_square", ";.wsq"]
replace: "□"
- triggers: [";large_white_square", ";.lwsq"]
replace: "⬜"
- triggers: [";dotted_square", ";.dsq"]
replace: "⬚"
- triggers: [";shadowed_square", ";.ssq"]
replace: "❑"
- triggers: [";rounded_square", ";.rsq"]
replace: "▢"
- triggers: [";bullet", ";.bul"]
replace: "∙"
- regex: ";.(?P<num>[0-9]+)bul"
replace: "{{result}}"
vars:
- name: result
type: shell
params:
cmd: |
[Console]::OutputEncoding = [Text.UTF8Encoding]::UTF8
"∙"*$env:espanso_num
shell: powershell
- triggers: [";triangle_bullet", ";.tbul"]
replace: "‣"
- triggers: [";circle", ";.cir"]
replace: "○"
- triggers: [";white_bullet", ";.wbul"]
replace: "◦"
- triggers: [";diamond", ";.dia"]
replace: "⬥"
- triggers: [";equal", ";.eq"]
replace: "꞊"
- trigger: ";sym"
label: "heart"
replace: "♡"
- trigger: ";sym"
label: "music"
replace: "♪"
- trigger: ";bra"
label: "《》(全)"
replace: "《$|$》"
- trigger: ";bra"
label: "〈〉(全)"
replace: "〈$|$〉"
- trigger: ";bra"
label: "〔〕(全)"
replace: "〔$|$〕"
- trigger: ";bra"
label: "『』(全)"
replace: "『$|$』"
- trigger: ";bra"
label: "【】(全)"
replace: "【$|$】"
- trigger: ";bra"
label: " ()(全)"
replace: "($|$)"
- trigger: ";bra"
label: "[](全)"
replace: "[$|$]"
- trigger: ";emoji"
label: "smile"
replace: "😄"
- trigger: ";emoji"
label: "heart-eyes"
replace: "😍"
- trigger: ";emoji"
label: "think"
replace: "🤔"
- trigger: ";emoji"
label: "neutral"
replace: "😐"
- trigger: ";emoji"
label: "flush"
replace: "😳"
- trigger: ";emoji"
label: "angry"
replace: "😠"
- trigger: ";emoji"
label: "cry"
replace: "😢"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment