No description
Find a file
阿多 8a7de5d10d
Merge pull request #7 from Azunyan-/master
Fixed spelling error in readme.md
2021-11-20 14:15:14 +08:00
.editorconfig refactor: remove innerHTML 2021-06-25 17:20:53 +08:00
.eslintrc.js refactor: remove innerHTML 2021-06-25 17:20:53 +08:00
.gitignore first commit 2021-06-19 11:39:13 +08:00
LICENSE Create LICENSE 2021-06-19 12:28:44 +08:00
main.ts feature: enable html 2021-09-18 00:15:18 +08:00
manifest.json feature: enable html 2021-09-18 00:15:18 +08:00
obsidian.d.ts fix: #3 2021-08-01 01:01:57 +08:00
package.json feature: enable html 2021-09-18 00:15:18 +08:00
README.md Fixed spelling error in readme.md 2021-10-31 00:56:39 +02:00
rollup.config.js first commit 2021-06-19 11:39:13 +08:00
screemshot.png feature: enable html 2021-09-18 00:15:18 +08:00
styles.css refactor: remote MarkdownRenderChild 2021-06-22 00:41:30 +08:00
tsconfig.json first commit 2021-06-19 11:39:13 +08:00
versions.json first commit 2021-06-19 11:39:13 +08:00

Obsidian Habit Tracker Plugin

This plugin for Obsidian creates a simple month view for visualizing your punch records.

How To

To show the view above, just create a code block and type:

```habitt
[month:2021-06]
(1,💮)(2,💮💮)(3)(5)(6)(7)(9, ⚽)(10, 🏄)(12)(18,💮💮💮)(22,🏆)(28,Pass) 
```
  • [month:YYYY-MM]: Which month to display
  • (date_num, tag): The day (date_num) you want to punch in, with a tag in it. If tag is missing, such as (12), a default tag ✔️ is given to that day.
  • [width: css_width]: Restrict the Month-view table to css_width, such as [width: 50%], [width: 500px]

Rich Text

Some people like to insert rich text (e.g. links or images). Since v1.0.4, Habit Tracker plugin adds a new configuration Enable HTML to activate HTML parsing. For some security reasons, this config is "off" as default.

To insert Web URL:

```habitt
(1, <a href="https://www.google.com">Google</a>)
```

To insert other note in the Vault (Using Obsidian url):

```habitt
(1, <a href="obsidian://open?vault=my-notes&file=xxx">Google</a>)
```

Learn more about Obsidian url.

To insert a image (from web):

```habitt
(1, <img src="https://www.xyz.com/img.jpg" />)
```

Since now, in Obsidian, we are not able to link the local image using <img /> tag. See Does ANY HTML work in Obsidian w/local files? - Resolved help - Obsidian Forum.

Installation

You can install the plugin via the Community Plugins tab within Obsidian. Just search for "Habit Tracker"