Skip to content

Instantly share code, notes, and snippets.

View emisjerry's full-sized avatar

emisjerry emisjerry

View GitHub Profile
@emisjerry
emisjerry / default.yml
Created March 31, 2022 15:09
espanso default test YAML
# 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.
toggle_key: OFF
matches:
@emisjerry
emisjerry / 5. Obsidian(黑曜石) 高亮度顯示或變更文字顏色的3種方法.md
Last active January 18, 2025 02:30
[5. Obsidian(黑曜石) 高亮度顯示或變更文字顏色的3種方法] 解說文章 #obsidian #blog

Obsidian(黑曜石) 高亮度顯示或變更文字顏色的3種方法

❓ 這個軟體可以筆記高亮、換字體顏色之類的嗎?

方法一:使用兩個等號

用兩個半形等號讓文字變高亮度

`用兩個半形等於可以==讓某些文字==變高亮度`

用兩個半形等於可以==讓某些文字==變高亮度

  • 參考:Obsidian擴充的Markdown語法:[[Format your notes#Obsidian specific]]
@emisjerry
emisjerry / obsidian-callout.lua
Created January 9, 2025 02:05
obsidian-callout.lua filter for Pandoc to convert Obsidian callout into pandoc fenced divs
local stringify = (require "pandoc.utils").stringify
function BlockQuote (el)
start = el.content[1]
if (start.t == "Para" and start.content[1].t == "Str" and
start.content[1].text:match("^%[!%w+%][-+]?$")) then
_, _, ctype = start.content[1].text:find("%[!(%w+)%]")
el.content:remove(1)
start.content:remove(1)
div = pandoc.Div(el.content, {class = "callout"})
@emisjerry
emisjerry / Cmd-WonderBox.md.js
Last active January 9, 2025 02:03
Cmd-WonderBox.md for Obsidian plugin: WonderBox
<%*
let lstWonderBoxes = {
"🔥 tip" : "tip,技巧",
"ℹ️ info" : "info,資訊",
"✏️ note" : "note,筆記",
"⚠️ Warning" : "warning,警告",
"⚡ Danger" : "danger,危險",
"✅ Success" : "success,成功",
"❌ Error" : "error,錯誤",
"⛔ Critical" : "critical,嚴重錯誤",
@emisjerry
emisjerry / test_35-explorer-extensions.ahk
Created May 8, 2020 14:38
AutoHotkey for Explorer hotkey extensions
#SingleInstance Force
;;用EmEditor編輯
#IfWinActive ahk_class CabinetWClass
F4::
;;sendInput {RButton}{1}
doActionInCurrentPath("EDIT")
return
@emisjerry
emisjerry / cj_jerry.txt
Created October 6, 2024 11:05
小小輸入法使用的倉頡碼表檔 cj_jerry.txt
This file has been truncated, but you can view the full file.
name=倉頡
key=abcdefghijklmnopqrstuvwxyz
len=5
push=SPACE
wildcard=z
# disable wildcard at first的缩写,设为1在第一码不应用万能键。
dwf=1
auto_clear=1
#commit 上屏设置,格式是 commit=全码不自动上屏 空码自动上屏码长 空码时上屏的码长
commit=1 5 0
@emisjerry
emisjerry / cnv.bat
Created August 14, 2022 09:17
Using pandoc to convert Markdown text file into .epub
@echo off
set _FN=%1
set _FN=%_FN:.txt=%
set _FN=%_FN:.md=%
set _AUTHOR=未知
if not "%2"=="" (
set _AUTHOR=%2
)
pandoc %1 -f markdown --toc --metadata title="%_FN%" --metadata author="%_AUTHOR%" --metadata lang="zh-Hant" --css style.css -o %_FN%.epub
@emisjerry
emisjerry / yanki1.ahk
Created August 10, 2024 01:45
AutoHotkey v2 script. Generating .md file for Obsidian-Yanki plugin.
#Requires AutoHotkey v2.0
#SingleInstance Force
/*
1. 分號(;)或井號(#)開頭表示是註解行。
2. 斜線(/)開頭表示輸出資料夾
3. 單字
一行一個單字,自動到Yahoo!奇摩網站取回解釋、音標與詞類
park
@emisjerry
emisjerry / Cmd-open-settings-by-uri.md
Created February 28, 2024 06:01
Cmd-open-settings-by-uri.md Open specified setting window by Advanced URI plugin

<%* /**

@emisjerry
emisjerry / Anki-front-template.html
Created August 24, 2024 12:00
Anki正面板板腳本範例
{{Front}}
<br>
{{#Extra}}
<div id="EXTRA">
{{tts en_US voices=Microsoft_Mark:Extra}}
</div>
{{/Extra}}
{{^Extra}}