No description
Find a file
2025-07-08 02:56:51 +08:00
.gitignore remove main.js in .gitigore 2025-05-07 10:23:16 +08:00
command_shortcut.gif update gif 2025-07-08 01:51:07 +08:00
demo.gif Update README.md 2025-07-04 13:59:09 +08:00
insert_position.png Update README.md 2025-07-08 02:03:09 +08:00
LICENSE first commit 2025-04-13 23:14:24 +08:00
main.js - V1.0.3 2025-07-08 01:43:05 +08:00
manifest.json - V1.0.3 2025-07-08 01:43:05 +08:00
README.md update README.md 2025-07-08 02:56:51 +08:00
README.zh.md update README.md 2025-07-08 02:55:43 +08:00
right_click.gif Add Source Code and English README.md 2025-05-06 23:17:38 +08:00
settings_close.gif compress gif 2025-07-08 02:49:19 +08:00
settings_never.gif compress gif 2025-07-08 02:49:19 +08:00
settings_quit.gif compress gif 2025-07-08 02:49:19 +08:00
styles.css first commit 2025-04-13 23:14:24 +08:00

English | 中文

Text Block Timer Plugin

A text block timing tool designed for Obsidian, allowing you to add a count-up stopwatch function to any text line in your notes.

Features

Demo

  • Add timers to any text line, supporting multiple timers running simultaneously (stopwatch function).
  • ▶️/⏸️ Start, pause, and resume timing for tasks.
  • Real-time display of cumulative time cost.
  • 💾 Persistent storage of timing data.
  • 🔄 Users can optionally choose whether to continue timing when files or Obsidian is closed (by default, closing a file will not cause failure of the real-time stopwatch).

Usage

  1. Configure a shortcut for the command "Text Block Timer: Toggle timer" for quick access.
  2. When the cursor is on a text block, press the shortcut key to start, pause, or resume.
  3. The timer will be displayed in the format 【⏳00:00:00 】 at the beginning of the text line.

Command Shortcut

2. Mouse Operations

  1. Right-click on a text line.
  2. Select "Start Timer," "Pause Timer," or "Resume Timer."

Right Click

Custom Settings

Users can customize the following options in the plugin Settings:

1. Whether to continue timing after the file or Obsidian closed

Users can freely choose whether to continue the timing after closing the file or disabling Obsidian.

1.1 never stops unless the user stops manually

After a user closes a file or exits Obsidian, the timer will still "time in the background". When the file is opened next time, the time spent during the closure period will be counted as the timer time and the timing will automatically resume.

After the user closes a file, the timer will still "time in the background". When the file is opened next time, the time spent during the closing period will be counted as the timer time and the timing will automatically resume. However, once the user exits Obsidian, all timers will stop immediately to prevent significant data errors caused by the user forgetting to manually close the timers.

1.3 auto-stop immediately when closing a file

After the user closes a file, all timers will stop immediately. However, if a file is closed by mistake, it may cause the timer to pause.

2. Timer insert position

Users can choose to insert a timer label either before or after the text block.

Version Log:

  • V1.0.3
    1. ==Major Optimization==: Closing a file no longer causes the timer to fail. Users can freely choose whether to continue timing when the or Obsidian is closed (see custom settings).
    2. Added custom settings: Users can now choose the position to insert the timer (before or after texts).
    3. Improve compatibility with markdown, adding support for ordered checkboxes and headings.
  • V1.0.2
    1. Added language support for Chinese, English, Japanese, and Korean.
  • V1.0.1
    1. Improved display effects by adding a space before the time label.
    2. Fixed the issue where adding a timer to a task list caused the task checkbox to fail.
  • V1.0.0
    1. Plugin release

Development Information

  • Developer: frankthwang
  • Version: 1.0.3