Files
Obsidian-Main/02. PARA/03. Resources(資源)/Obsidian.md
2022-06-02 17:55:14 +08:00

63 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
## 使用
### 操作
- `Ctrl-Enter`: 可以增加TODO的框框或是用來更改框框的狀態
### 自訂快速鍵
- `Alt+Insert`: 插入樣板
- `Ctrl + Shift + <-`: 摺疊所有標題 ^e897a3
- `Ctrl + 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**,如:
![[Pasted image 20201206094618.png]]
來源:
- https://www.youtube.com/watch?v=ea9hkXem1f4
- https://gist.github.com/emisjerry/36d1d115ae22cd0902fc528875f86414
## Plugin
### Dataview
- [Source code](https://github.com/blacksmithgu/obsidian-dataview)
- [介紹:[Obs26] Dataview外掛: 製作索引筆記利器;動態查詢筆記資料 - YouTube](https://www.youtube.com/watch?v=dkWA7Qd0CLA&list=PLWg9zacwOnwfcpVm5pAKgOHms7PntsgJS&index=18)