mirror of
https://github.com/dominiczaq/obsidian-plugin-time-diff.git
synced 2026-07-22 06:40:30 +00:00
No description
|
|
||
|---|---|---|
| .github/workflows | ||
| .editorconfig | ||
| .eslintignore | ||
| .eslintrc | ||
| .gitignore | ||
| .npmrc | ||
| esbuild.config.mjs | ||
| LICENSE | ||
| main.ts | ||
| manifest.json | ||
| package.json | ||
| README.md | ||
| styles.css | ||
| tsconfig.json | ||
| version-bump.mjs | ||
| versions.json | ||
| yarn.lock | ||
Obsidian TimeDiff Plugin
This is a plugin for Obsidian (https://obsidian.md).
How to use
- Calculates time diffs in
timediffmarkdown 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 filecommand, which calculates total sum of alltimediffblocks on the page.TimeDiff plugin - Insert timediff blockcommand, which insertstimediffblock in current cursor position.TimeDiff plugin - Insert current timecommand, 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-namefolder. - Install NodeJS, then run
yarnin the command line under your repo folder. - Run
yarn run devto compile your plugin frommain.tstomain.js. - Make changes to
main.ts(or create new.tsfiles). Those changes should be automatically compiled intomain.js. - Reload Obsidian to load the new version of your plugin.
- Enable plugin in settings window.