No description
Find a file
2025-06-25 21:53:15 +09:00
.github/workflows obsidian-todo-txt-mode 1.0.0 2025-05-09 21:32:46 +09:00
src feat: add Jest configuration and update dependencies for TypeScript 2025-06-25 21:53:15 +09:00
.editorconfig Initial commit 2025-05-08 17:08:08 +09:00
.eslintignore Initial commit 2025-05-08 17:08:08 +09:00
.eslintrc Initial commit 2025-05-08 17:08:08 +09:00
.gitignore obsidian-todo-txt-mode 1.0.0 2025-05-09 21:32:46 +09:00
.npmrc Initial commit 2025-05-08 17:08:08 +09:00
CLAUDE.md obsidian-todo-txt-mode 1.0.0 2025-05-09 21:32:46 +09:00
dummy.txt obsidian-todo-txt-mode 1.0.0 2025-05-09 21:32:46 +09:00
esbuild.config.mjs Reorganize project structure and update configuration files 2025-06-09 21:19:51 +09:00
jest.config.js feat: add Jest configuration and update dependencies for TypeScript 2025-06-25 21:53:15 +09:00
LICENSE obsidian-todo-txt-mode 1.0.0 2025-05-09 21:32:46 +09:00
manifest.json feat: bump version to 1.0.1 in manifest and package files 2025-06-25 00:30:45 +09:00
package-lock.json feat: add Jest configuration and update dependencies for TypeScript 2025-06-25 21:53:15 +09:00
package.json feat: add Jest configuration and update dependencies for TypeScript 2025-06-25 21:53:15 +09:00
README.md Update README.md 2025-06-21 09:18:31 +09:00
styles.css Reorganize project structure and update configuration files 2025-06-09 21:19:51 +09:00
tsconfig.json Initial commit 2025-05-08 17:08:08 +09:00
tsconfig.test.json feat: add Jest configuration and update dependencies for TypeScript 2025-06-25 21:53:15 +09:00
version-bump.mjs Initial commit 2025-05-08 17:08:08 +09:00
versions.json feat: bump version to 1.0.1 in manifest and package files 2025-06-25 00:30:45 +09:00

Todo.txt Mode for Obsidian

Todo.txt Mode is an Obsidian plugin that provides support for the todo.txt file format in Obsidian.

Image from Gyazo

Features

  • Syntax Highlighting: Automatically highlights elements within todo.txt files

    • Strikethrough for completed tasks (lines beginning with x )
    • Highlighting for project tags (+project)
    • Highlighting for context tags (@context)
    • Highlighting for priority markers ((A), (B), (123))
    • Highlighting for due dates (due:yyyy-mm-dd)
    • Color Customization: Customize colors with the Style Settings Plugin
  • Task Management:

    • Command to move completed tasks to a dedicated file
    • Extracts completed tasks (lines beginning with x )
    • Removes them from the original file
    • Adds them to the top of the specified done file (newest tasks at the top)
  • Task Sorting:

    • Sort by priority
    • Sort by project
    • Sort by context
    • Sort by due date
    • Support for boundary marker (lines below the marker won't be sorted)
  • Editor Monitoring and Syntax Highlighting Mechanism:

    1. User Open and edits a todo.txt file
    2. Changes are detected via Obsidian's workspace.on('editor-change') event
    3. Checks if the modified file is in todo.txt format
    4. Examines file content for special characters:
      • "x " (completed task indicator)
      • "@" (context tag prefix)
      • "+" (project tag prefix)
      • "(A)" (priority indicator)
      • "due:" (due date indicator)
    5. Applies decorations

Installation

Manual Installation

  1. Download the zip file from the latest release
  2. Extract the zip and copy the folder to .obsidian/plugins/
  3. Restart Obsidian and enable the plugin in settings

Community Plugin Installation

  1. Open Obsidian settings
  2. Go to "Third-party plugins" → "Community plugins" → "Browse"
  3. Search for "Todo.txt Mode" and install

Usage

Settings

  1. Open Obsidian settings
  2. Select "Third-party plugins" → "Todo.txt Mode"
  3. Configure:
    • Todo.txt File Patterns: Paths to your todo files (relative to vault root)
    • Done File Path: File path where completed tasks will be moved
    • Boundary Marker: Line marker indicating where sorting should stop
    • Highlight Settings: Enable/disable options for highlighting
    • Color Customization: Install the Style Settings Plugin to customize colors

Commands

  • Todo.txt: Move completed tasks to done file:
    • Available from the command palette
    • Moves all completed tasks at once
  • Todo.txt: Sort by priority:
    • Sorts tasks by priority
  • Todo.txt: Sort by project:
    • Sorts tasks by project tag
  • Todo.txt: Sort by context:
    • Sorts tasks by context tag
  • Todo.txt: Sort by due date:
    • Sorts tasks by due date

About todo.txt format

Basic todo.txt format:

x 2023-05-08 Completed task +project @context
Today's task +work @office
(A) High priority task +project
A task with due:2023-05-15 date

Visit the official website for more details.

For Developers

Release Process

# Update version number
npm run version

# Create and push tag
git tag -a 1.0.0 -m "1.0.0" && git push origin 1.0.0

Pushing a tag will automatically create a GitHub release.


Todo.txt Mode for Obsidian [JA]

Todo.txt Mode は Obsidiantodo.txt ファイル形式をサポートするためのプラグインです。

特徴

  • シンタックスハイライト: todo.txtファイル内の要素を自動的に強調表示

    • 完了タスク(x で始まる行)に取り消し線表示
    • プロジェクトタグ(+project)をハイライト
    • コンテキストタグ(@context)をハイライト
    • 優先度((A)(B)(123))をハイライト
    • 期日(due:yyyy-mm-dd)をハイライト
    • 色のカスタマイズ: Style Settings Pluginで色をカスタマイズ可能
  • タスク管理:

    • 完了タスクを専用ファイルに移動するコマンド
    • 完了タスク(x で始まる行)を抽出
    • 元のファイルから削除
    • 指定したdoneファイルの先頭に追加新しいタスクが上
  • タスクのソート:

    • 優先度でソート
    • プロジェクトでソート
    • コンテキストでソート
    • 期日でソート
    • 境界線マーカーのサポート(この線以下の行はソートされません)
  • エディタ監視とシンタックスハイライトの仕組み:

    1. ユーザーがtodo.txt関連ファイルを開き、編集したとき
    2. Obsidianのworkspace.on('editor-change')イベントで変更を検知
    3. 変更されたファイルがtodo.txt形式であるか確認
    4. ファイル内容を各チェックし、特殊文字の存在を確認
      • 「x 」(完了タスクの標識)
      • 「@」(コンテキストタグの先頭)
      • 「+」(プロジェクトタグの先頭)
      • 「(A)」(優先度の標識)
      • 「due:」(期日の標識)
    5. 装飾を適用

インストール

手動インストール

  1. 最新のリリースからzipファイルをダウンロード
  2. zipを解凍し、フォルダを .obsidian/plugins/ にコピー
  3. Obsidianを再起動し、設定からプラグインを有効化

Communityプラグインからのインストール

  1. Obsidianの設定を開く
  2. 「サードパーティプラグイン」→「コミュニティプラグイン」→「閲覧」
  3. "Todo.txt Mode" を検索してインストール

使い方

設定

  1. Obsidianの設定を開く
  2. 「サードパーティプラグイン」→「Todo.txt Mode」を選択
  3. 以下の設定を行う:
    • Todo.txt File Patterns: todo.txtファイルとして認識するパスVaultのルートからの相対パス
    • Done File Path: 完了タスクを移動する先のファイルパス
    • Boundary Marker: ソートの境界線を示すマーカー(この行以下はソートされません)
    • Highlight Settings: ハイライト表示の有効/無効設定
    • 色のカスタマイズ: Style Settings Pluginをインストールすると色をカスタマイズできます

コマンド

  • Todo.txt: Move completed tasks to done file:
    • コマンドパレットから利用可能
    • 完了したタスクを一括で移動
  • Todo.txt: Sort by priority:
    • タスクを優先度でソートAが最高
  • Todo.txt: Sort by project:
    • タスクをプロジェクトタグでソート
  • Todo.txt: Sort by context:
    • タスクをコンテキストタグでソート
  • Todo.txt: Sort by due date:
    • タスクを期日でソート

todo.txt形式について

todo.txt形式の基本:

x 2023-05-08 完了したタスク +プロジェクト @コンテキスト
今日のタスク +仕事 @オフィス
(A) 優先度の高いタスク +プロジェクト
期日 due:2023-05-15 のあるタスク

詳細は公式サイトをご覧ください。