ObsidianPlugin一言紹介

ObsidianPlugin一言紹介

細かな記法はヘルプを読むのが一番早い。

Front Matter

ファイルのメタデータをくっつけられる機能。YAMLで書かれていることが多い。
Obsidianでは主にタグとエイリアスのために使用される。[,]どころか,だけで区切っても機能するが、まあそれはObsidianだからなので。
なお、YAML制約上リンクは入らない。リンクが使いたいなら下にもう一つMatterをつけることが推奨されている。

Allow links in YAML front matter; Notion-like databases from metadata; links as first-class citizens - Feature requests - Obsidian Forum

tags

tagもしくはtagsで、#(タグ名) と同じようにタグがつけられる。#タグとは違うのでサジェストは出ない。欲しいなら#打って#消せ。

ちなみに、そのまま#タグを使っても問題なく機能する。
ただそれを許すのはObsidianだからなので、移植性を考えるとちょっと。

内部的には1つでも、途中が大文字でもTagsとして認識する。
ただ見栄えのためにTemplateではtagsにしてる。

Aliases

aliasもしくはaliases。ファイルの別名をつけ、リンクするときに別名でもサジェスト出るようにする機能。内部的にはAliases。
Front Matterでしか定義できない。

Nested Tag

tag とすると、タグがネストになる。
検索のときもそれぞれヒットする。

拡張Template機能

Templaterという拡張機能がある。
Templateにファイル名やフォルダ名を含むことが出来る。
カーソル位置もセットできる。

SilentVoid13/Templater: A template plugin for obsidian
File Module | Templater

タグをフロントマタータグに変換

Gather up tags and format for YAML frontmatter · Discussion 140 · SilentVoid13/Templater

Templaterからこのファイル二つを順番通り呼び出せばいい。

LF will be replaced by CRLF in

なんか開いてて、gitがアクセスできないファイルとかあると一緒に表示されるかもしれないエラー。
パワポを閉じろ。

同期

Obsidian 同期

Nested Vault

ネストすると下位からリンクを張れなくなるので、新たな発想は生まれにくい。でも今だってそんなにリンク活用してるか?

軽くなるのは確実に利点。

マイナス検索可能。

Obsidianで特定のフォルダのみ検索結果から除外する – ごりゅご.com

iOS shortcuts連携

iOS Shortcuts - Share your ideas! - 32 by cutting_shapes - Share & showcase - Obsidian Forum
Fetching Titlep34m

隠しフォルダを覗けるのは便利。
Obsidian mobile使いに便利なショートカット|しおん|note

Obsidian 高速化

Templaterを使ってプラグインを遅延ロードする。
Improve Obsidian Startup Time on Older Devices with the FastStart Script | by TfTHacker | Medium

今はplugin groupsというのがあるので楽。

Obsidian Sandbox

helpから出せる気になるプラグインなんかを気軽に試せる場所。

CallOut進化系

>で出している引用に、[!Caution]などを付けるとAnnotationプラグインの様なCalloutが出せる。
V0.14.0から。

ローカルファイル考察

プラグインで直接file://を使ってローカルファイルを開こうとすると、ブラウザの制限で止められるっぽい。
ObsidianのURIで開けるのは当然Obsidianで管理されてるファイルのみなので、これも使えない。
理想はObsidianにローカルファイルを表示させて表示だけプラグインで取ること。

プラグイン攻略

Ob Plugin Note

developer mode

Ctrl+Shift+i

リンクからのファイル新規作成

なぜか相対リンクからだと新規作成できない。
それどころかVaultの一つ上にファイルを作るという謎の挙動を起こす。

Obsidian has trouble creating new notes from “Relative path to file” links - Bug reports - Obsidian Forum

割と根深い問題。拡張機能が出るレベル。
GitHub - mnaoumov/obsidian-new-note-fixer: Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links

リンクが勝手に確定する

obsidianを階層違いで二つ開き、上のObsidianから下のObsidianが開いているVault内のファイルでリンクを作ろうとすると発生。

プラグインを切るか、一つだけ開けばいい。

画像への編集が反映されない

タブを消して開き直せばいい。
CommanderでClose current tabとUndo close tabを繋げた、Refresh current noteコマンドを作っておくと便利。

Refresh button to reload markdown files

これだけのためのプラグインがあるので、軽くしたいならこっち。

GitHub - mnaoumov/obsidian-refresh-any-view: Obsidian Plugin that allows to refresh any view without reopening it.

簡単なannotateが欲しい

image converterにくっついてる。

spaced repetitionにnotebooklmのテストを入れる

NotebookLM to PDF - Chrome Web Store
GitHub - farling42/obsidian-import-json: Plug-in for Obsidian.md which will create Notes from JSON files

---
tags:
  - flashcards
---
{{question}}
{{#each answerOptions}}
- [ ] {{text}}
{{/each}}
<details>
<summary>Hint</summary>
{{hint}}
</details>
?
{{#each answerOptions}}
- {{#if isCorrect}}**[] {{text}}**{{else}}[ ] {{text}}{{/if}}
  > *Rationale:* {{rationale}}
{{/each}}

Gemini - NotebookLM Quiz to Anki 拡張機能

json取って読ませる。
ただ択のランダム化が出来ないので、択全体を隠すかAnkiに流すかなどめんどい作業が入る。

あとそもそも択問題は覚える一点において非推奨。
自分で想起しないといけないらしい。
よくある質問 (Frequently Asked Questions) - Anki日本語マニュアル Wiki*