nonkuri169 downloadsInsert a callout via a type-selection dialog, or with autocomplete by typing [! in a quote block. Turns the cursor line or selection into a callout, and can remove a callout along with its quote markers.
An Obsidian plugin that quickly inserts callouts in two ways: a type-selection dialog command, and autocomplete that pops up when you type [! in a quote block. In both, the suggestions are ordered by most recently used. A second command removes a callout again, stripping the quote markers with it.
wa → warning), pick with ↑/↓ + Enter or a mouse click[! right after > pops up the same suggestion list[!wa → warning)[!warning] )The inserted callout is the simple form (type only, no fold marker):
> [!note]
> body text
Run the Remove command with the cursor anywhere inside a callout:
> [!type] heading line is deleted, and one level of quote markers is stripped
from the rest of the block — so a plain callout becomes plain text, quoting included> [!note] Title), the title is kept as the first body line> > text → > text)> [!note] → body text
> body text
]
right after the cursor is not duplicated. Keep this on if Obsidian auto-pairs [ with ].Requires Obsidian 1.13.0 or later. Copy the following files into .obsidian/plugins/insert-callout/ in your vault,
then enable the plugin under Settings → Community plugins:
main.jsmanifest.jsonstyles.cssnpm install
npm run build # type check + build main.js
npm run dev # watch build
Obsidian に Callout を素早く挿入するプラグイン。種類選択ダイアログを開くコマンドと、
引用ブロック内で [! と入力すると表示されるオートコンプリートの2つの方法があり、
どちらも候補は最近使った順に並ぶ。引用ごと Callout を解除するコマンドもある。
wa → warning)、↑↓ + Enter またはクリックで決定> の直後に [! と入力すると候補リストが表示される[!wa → warning)[!warning] )挿入されるのは種類のみのシンプルな形式(折りたたみ記号なし):
> [!note]
> 本文
Callout 内にカーソルを置いてコマンド Remove を実行する。
> [!type] の見出し行を削除し、残りの行から引用マーカーを1段分だけ剥がす。
通常の Callout なら引用状態ごと解除され、ただのテキストに戻る> [!note] タイトル)の場合、タイトルは本文の1行目として残す> > 本文 → > 本文)> [!note] → 本文
> 本文
] を重複させない。Obsidian が [ の入力時に ] を
自動補完する環境ではオンのままにする。Obsidian 1.13.0 以降が必要。Vault の .obsidian/plugins/insert-callout/ に以下の3ファイルを置き、
Obsidian の設定 → コミュニティプラグイン で有効化する。
main.jsmanifest.jsonstyles.cssnpm install
npm run build # 型チェック + main.js 生成
npm run dev # watch ビルド
※ Google Drive 上のフォルダでは npm install が失敗することがあるため、
その場合はローカルディスクにコピーしてビルドし、main.js を戻す。