1.9 KiB
1.9 KiB
使用
操作
Ctrl-Enter: 可以增加TODO的框框,或是用來更改框框的狀態
自訂快速鍵
Alt+Insert: 插入樣板Ctrl + Shift + <-: 摺疊所有標題 ^e897a3Ctrl + Shift + ->: 展開所有標題 ^5587cd
搜尋
用 file: 開頭來指定指只搜尋檔名
用 content: 開頭來指定只指搜尋內容
用 tag: 開頭來搜尋標籤,例: tag:#mydata
用 path: 來搜尋特定路徑下的檔案,路徑必須要用""包圍,例:path:"path/to/foder" search_name
設定
目前所使用的theme是Obsdn-dark-rmx
CSS路徑:<vault>/obsidian.css
CSS
讓中文字型使用微軟正黑體
.CodeMirror pre.CodeMirror-line {
font-size: 14px;
font-family: Fira Code, Microsoft JhengHei, Source Code Pro, monospace;
}
不用照抄,重點是在font-family裡面,加入Microsoft JhengHei,愈前面優先順序愈大。
顯示Bullet Point Relationship Lines
/*=== Bullet Point Relationship Lines ===*/
.cm-hmd-list-indent, ul ul {
position: relative;
}
.cm-hmd-list-indent::before, ul ul::before {
content:'';
border-left: 1px solid rgba(0, 122, 255, 0.55);
position: absolute;
}
.cm-hmd-list-indent::before {
left: 0;
top: -5px;
bottom: -4px;
}
ul ul::before {
left: -11px;
top: 0;
bottom: 0;
在obsidian.css最後端加入上面的CSS就可以顯示Bullet Point Relationship Lines,如:
!
來源:
- https://www.youtube.com/watch?v=ea9hkXem1f4
- https://gist.github.com/emisjerry/36d1d115ae22cd0902fc528875f86414