Japanese Auto Title

approvedunreviewed

by KT

Generate Japanese titles for untitled notes with AI and rename them automatically. Works with Google Gemini (free tier available) or Anthropic Claude, on desktop and mobile.

Updated todayMIT

Japanese Auto Title (おまかせタイトル)

Obsidian plugin that automatically gives untitled notes a Japanese title generated by AI, and renames the file. Write a note, pause for a few seconds, and "無題のファイル" becomes something like "工務店向けLINE運用相談会の準備". Works with Google Gemini (free tier available) or Anthropic Claude, on desktop and mobile (iPhone / iPad / Android).

Obsidianで新しく作った「無題のファイル」を、AIが内容から考えた日本語のタイトルに自動でリネームするプラグインです。いちいちファイル名を考えなくて済みます。

日本語の説明はこちら


Features

  • Auto-title untitled notes (無題のファイル, Untitled, Untitled 2, …) after you stop typing
  • Titles are always in natural Japanese, even for English notes (proper nouns kept as-is)
  • Only reacts to edits made on this device, so synced devices never rename the same note twice
  • Command: title the current note (works on any note, not only untitled ones)
  • Command: batch-title all untitled notes (with confirmation, cancellable, stops on auth or rate-limit errors)
  • Command: undo the last rename
  • Right-click a note → "AIでタイトルを付ける"
  • API keys are stored in Obsidian's Keychain (SecretStorage), never in plugin settings or synced files
  • Exclude folders, or opt out per note with auto-title: false in properties
  • Customize title length and add your own instructions (e.g. "prefix the project name")

Disclosures

  • Network use: The note's text (without front matter, comments, and embedded images; up to about 8,000 characters) is sent to the AI service you choose, only when a title is generated:
    • Google Gemini API (generativelanguage.googleapis.com), or
    • Anthropic Claude API (api.anthropic.com). No other network requests are made. No telemetry.
  • Account required: You need your own API key from Google AI Studio or the Anthropic Console.
  • Payment: Gemini has a free tier. Claude requires paid API credits. This plugin itself is free and open source (MIT).
  • Privacy note: On Gemini's free tier, Google may use submitted content to improve its products. Exclude folders that contain sensitive notes, or use a paid tier.

Installation

From Community plugins (after approval): Settings → Community plugins → Browse → search "Japanese Auto Title" → Install → Enable.

With BRAT (beta, works on iPhone):

  1. Install and enable "BRAT" from Community plugins.
  2. Command palette → "BRAT: Add a beta plugin for testing" → enter skmo0507/ja-auto-title.
  3. Enable "Japanese Auto Title" in Community plugins.

Manual: Download main.js and manifest.json from the latest release into <vault>/.obsidian/plugins/ja-auto-title/, then enable the plugin.

Setup

  1. Get an API key: Google AI Studio (Gemini, starts with AIza) or Anthropic Console (Claude).
  2. Settings → Japanese Auto Title → choose the AI → set the API key.
  3. Press "テストする" (connection test). You should see "成功:…".

The Keychain is per device, so set the key once on each device you use.


日本語

できること

  • 「無題のファイル」を書いて手を止めると、自動で日本語のタイトルを付けてファイル名を変更
  • 英語のメモでもタイトルは日本語(固有名詞はそのまま)
  • その端末で書いたときだけ動くので、iPhoneとMacで同期していても二重に名前を付けません
  • コマンド「このノートにタイトルを付ける」…名前付きのノートにも使えます
  • コマンド「無題のノートをまとめて名前付けする」…溜まった無題ノートを一括処理(件数確認あり・途中で中止可・キーの誤りや回数上限で自動停止)
  • コマンド「直前のタイトル付けを元に戻す」
  • ファイル一覧で右クリック(スマホは長押し)→「AIでタイトルを付ける」
  • APIキーはObsidianのキーチェーンに保存。設定ファイルや同期ファイルには残りません
  • 対象外のフォルダ、ノートごとの除外(プロパティに auto-title: false)、タイトルの最大文字数、追加の指示(例:「先頭に案件名を付ける」)を設定可能

入れ方

  • コミュニティプラグインから(公開承認後):設定 → コミュニティプラグイン → 閲覧 →「Japanese Auto Title」で検索 → インストール → 有効化
  • BRATから(iPhoneでもOK):コミュニティプラグインで「BRAT」を入れて有効化 → コマンドパレットで「BRAT: Add a beta plugin for testing」→ skmo0507/ja-auto-title を入力 → 「Japanese Auto Title」を有効化
  • 手動:最新リリースの main.js と manifest.json を <保管庫>/.obsidian/plugins/ja-auto-title/ に入れて有効化

初期設定

  1. APIキーを取得
    • Gemini(おすすめ・無料枠あり):Google AI Studio →「Get API key」→ キーを作成(AIza… で始まる)
    • Claude(有料・日本語の質が高め):Anthropic Console →「API Keys」
  2. 設定 → Japanese Auto Title →「使うAI」を選び、「APIキー」にキーを登録
  3. 「接続テスト」→「テストする」で「成功:…」と出ればOK

キーチェーンは端末ごとなので、iPhoneなど他の端末でも一度キーを設定してください。

設定項目

設定既定値内容
待ち時間8秒入力が止まってから付けるまでの秒数
最低文字数20文字これより短いメモには付けない
タイトルの最大文字数30文字5〜60文字
「無題」とみなす名前無題のファイル / Untitled後ろに数字が付いた名前も対象
対象外のフォルダなしデイリーノートのフォルダなど
追加の指示なしタイトルの付け方の好みを自由に

通信とプライバシーについて

  • タイトルを作るときだけ、ノートの本文(プロパティ・コメント・画像埋め込みを除き、最大約8,000文字)を、選んだAI(Google Gemini API または Anthropic Claude API)に送ります。それ以外の通信や利用状況の収集は一切ありません。
  • 各サービスのAPIキー(アカウント)が必要です。Geminiは無料枠あり、Claudeは有料です。
  • Geminiの無料枠では、送った内容がGoogleのサービス改善に使われる場合があります。機密性の高いメモは「対象外のフォルダ」に入れるか、有料枠を使ってください。

うまくいかないとき

  • 何も起きない → ファイル名が「無題のファイル」か、本文が20文字以上あるかを確認
  • 「モデル名が見つかりません」→ 設定の「モデル」で「一覧から選ぶ」を押して選び直す
  • 「利用上限に達しました」→ 無料枠の回数制限です。少し待つと戻ります
  • エラーが出ると自動実行は1分間止まります(コマンドからはいつでも実行できます)

不具合・要望は Issues へ。

Development

Plain JavaScript, no build step. Run tests with npm test (mocks the Obsidian API).

License

MIT

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.