Timetracker

approved

by Nils Dammenhayn

A stopwatch whose value can be inserted in the editor with a hotkey.

9 stars7,660 downloadsUpdated 1mo agoGPL-3.0
View on GitHub

Obsidian Timetracker plugin


This plugin's code moved to Codeberg: https://codeberg.org/hedgehog1833/obsidian-timetracker

This repository will no longer receive updates and only contains tags and releases mirrored from Codeberg for releasing to Obsidian. Please create any new issues or feature requests in the Codeberg repository.


This Obsidian plugin adds a stopwatch to track time of something. Per hotkey the stopwatch's current value can be inserted into the editor, to make notes to this precise moment in time. If you forgot to activate the stopwatch, you can set a custom start value. The stopwatch functionality is a completely rewritten clone of https://github.com/tokuhirom/obsidian-stopwatch-plugin

Configuration

Time format: hours, minutes, seconds

The format for how to print the stopwatch's current value. Default is to display hours, minutes and seconds 00:00:00. Each can be turned on and off separately.

Trimming

Allows cutting off leading zeros. With this setting activated, 01:10:01 will be displayed as 1:10:1.

Line break

Adds a line break after the inserted timestamp instead of the default whitespace.

Text color

The inserted timestamp's text color can be chosen via color picker. The color is applied via an html span.

Printed time format

The format for how to print the stopwatch's current value. If left blank the default is to display the value just as it is shown in the sidebar. There are three placeholders available: ${hours}, ${minutes} and ${seconds} that are simply replaced with the respective value. The trimming parameter still applies to the printed time format. Maximum length for the printed time format is 256 characters.
The print format Time: ${hours}h ${minutes}m ${seconds}s will result in Time: 1h 10m 1s being pasted for a stopwatch value of 01:10:01 with trimming parameter active.

Persistence

When closing the app the stopwatch's value can be saved and restored on the next application start. When activated, saving the value takes place once every 60 seconds while the timer is running or if stopped/resetted or the value is changed manually. The values are saved in the workspace so they are shared between devices but not between mobile and desktop platform.

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.