Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
eceb0e3
Initial plan
Copilot Feb 27, 2026
bd62cc4
Add GitHub contribution graph display mode for habits
Copilot Feb 27, 2026
14a9cb0
Simplify month label logic in ContributionGraph.svelte
Copilot Feb 27, 2026
cfaf01f
Fix contribution graph loop order: iterate weeks then days for correc…
Copilot Feb 27, 2026
0a789f1
Merge pull request #1 from MySTerY1747/copilot/add-habit-graph-mode
MySTerY1747 Feb 27, 2026
9c0cc6c
Initial plan
Copilot Feb 27, 2026
11b472d
docs: add graph (contribution graph) mode to README documentation
Copilot Feb 27, 2026
b898cbd
docs: document contribution graph mode in README
MySTerY1747 Feb 27, 2026
ade9c90
Initial plan
Copilot Mar 8, 2026
99aa0b0
Add streak support to ContributionGraph display mode
Copilot Mar 8, 2026
d8c2624
Merge pull request #3 from MySTerY1747/copilot/add-streak-support-to-…
MySTerY1747 Mar 8, 2026
51364ba
Initial plan
Copilot Mar 8, 2026
b65bff2
Fix misaligned month labels in contribution graph
Copilot Mar 8, 2026
b52cbb5
Merge pull request #4 from MySTerY1747/copilot/fix-month-label-logic
MySTerY1747 Mar 8, 2026
6a26afb
Initial plan
Copilot Mar 8, 2026
f20662a
Refactor shared logic, fix error.message bug, explicit showStreaks, m…
Copilot Mar 8, 2026
2d74e7b
Remove habitData.js, revert Habit.svelte, inline ContributionGraph fi…
Copilot Mar 8, 2026
69396f1
Merge pull request #5 from MySTerY1747/copilot/refactor-shared-logic-…
MySTerY1747 Mar 8, 2026
ddf40aa
Initial plan
Copilot Mar 22, 2026
9b89fb8
Align graph mode UI and behavior with default tracker
Copilot Mar 22, 2026
275cd26
Polish graph mode parity and visual consistency details
Copilot Mar 22, 2026
87dd393
Refine graph month headers and cell visual clarity
Copilot Mar 22, 2026
8f41ecf
Polish graph readability and month-column labeling behavior
Copilot Mar 22, 2026
8abfca2
Polish graph mode readability: light-color fallback, larger cells, an…
Copilot Mar 22, 2026
e8a1061
Refine graph-mode rendering: rebalance scale, restore color semantics…
Copilot Mar 22, 2026
5901b66
Fix minor clipping of graph today marker
Copilot Mar 22, 2026
79116e4
fix: add padding to avoid clipping bottom of today marker
MySTerY1747 Mar 22, 2026
4f986c3
Fix aesthetic consistency of graph mode to default mode
MySTerY1747 Mar 22, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Transform your [Obsidian](https://obsidian.md) vault into a habit-building power
- **Smart Folder Support** - Track individual files or entire habit folders
- **Flexible Streak Counting** - Optional gap tolerance (`maxGap`) keeps streaks intact across short breaks while counting only days you actually completed
- **Daily Note Integration** - Click any date in the header to jump straight to your daily note for that day
- **Contribution Graph Mode** - Switch to a GitHub-style contribution graph view for a different way to visualize your habits
- **Debug Mode** - Comprehensive debugging gives you all the info you need to figure it out

## Quick Start
Expand Down Expand Up @@ -107,6 +108,7 @@ Access via **Settings > Community plugins > Habit Tracker** to set defaults for
- **Days to Show** - Number input (default: 21)
- **Show Streaks** - Toggle streak indicators and counts on/off (default: on)
- **Open daily note on date click** - Click a date in the header row to open the corresponding daily note (default: on). Requires the Daily Notes core plugin or the Periodic Notes community plugin
- **Display Mode** - Choose between "Default" (grid) and "Contribution Graph" (GitHub-style graph). Can be overridden per-tracker with `"mode"` in code blocks
- **Debug Mode** - Toggle debug output on/off
- **Match Line Length** - Fit tracker to readable line width

Expand Down Expand Up @@ -139,6 +141,7 @@ Override global settings in individual code blocks:
| `color` | string | "" | Custom color for this tracker (hex, RGB, or CSS color name) |
| `showStreaks` | boolean | true | Display streak indicators and counts |
| `debug` | boolean | false | Enable debug console output |
| `mode` | string | "default" | Display mode: `"default"` for grid view, `"graph"` for GitHub-style contribution graph |
| `matchLineLength` | boolean | false | Match readable line width |

### Per-Habit Settings (frontmatter)
Expand Down Expand Up @@ -263,6 +266,19 @@ Track habits for the entire month of November 2024:
```
````

### Contribution Graph Mode

Display habits as a GitHub-style contribution graph:

````markdown
```habittracker
{
"path": "Habits",
"mode": "graph"
}
```
````

### Debug Mode

Enable detailed logging:
Expand Down
58 changes: 0 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading