No description
Find a file
2026-03-06 17:43:17 +01:00
.github/workflows Add release workflow 2022-07-05 01:18:03 +02:00
.editorconfig Initial commit 2022-07-04 22:16:59 +02:00
.eslintignore Initial commit 2022-07-04 22:16:59 +02:00
.eslintrc Initial commit 2022-07-04 22:16:59 +02:00
.gitignore Initial commit 2022-07-04 22:16:59 +02:00
.npmrc Initial commit 2022-07-04 22:16:59 +02:00
esbuild.config.mjs Initial commit 2022-07-04 22:16:59 +02:00
LICENSE Add LICENSE file 2022-07-05 00:56:23 +02:00
main.ts Add Ctrl/Cmd+Click to jump to timediff code block 2026-02-24 10:17:23 -05:00
manifest.json Version bump 2026-03-06 17:42:29 +01:00
package.json Version bump 2026-03-06 17:42:29 +01:00
README.md Merge pull request #4 from dominiczaq/feature/add-timediff-block-and-current-time-commands 2023-03-12 22:09:09 +01:00
styles.css Remove inline styles, add class to styles.css 2022-07-05 22:10:23 +02:00
tsconfig.json Initial commit 2022-07-04 22:16:59 +02:00
version-bump.mjs Initial commit 2022-07-04 22:16:59 +02:00
versions.json Initial commit 2022-07-04 22:16:59 +02:00
yarn.lock Add timediff block and current time commands, add info to readme 2023-03-12 22:05:05 +01:00

Obsidian TimeDiff Plugin

This is a plugin for Obsidian (https://obsidian.md).

How to use

  • Calculates time diffs in timediff markdown block
	```timediff
	11:10 - 12:20
	12:38 - 14:00
	23:20 - 23:59
	00:00 - 00:55
	```

In reading mode diffs between the dates will be parsed and presented in readable format. Sum of diffs will be presented at the bottom of the block.

Commands

  • TimeDiff plugin - Show total time diff count in current file command, which calculates total sum of all timediff blocks on the page.
  • TimeDiff plugin - Insert timediff block command, which inserts timediff block in current cursor position.
  • TimeDiff plugin - Insert current time command, which inserts current time in current cursor position.

Local development

  • Clone your repo to a local development folder. For convenience, you can place this folder in your .obsidian/plugins/your-plugin-name folder.
  • Install NodeJS, then run yarn in the command line under your repo folder.
  • Run yarn run dev to compile your plugin from main.ts to main.js.
  • Make changes to main.ts (or create new .ts files). Those changes should be automatically compiled into main.js.
  • Reload Obsidian to load the new version of your plugin.
  • Enable plugin in settings window.