Richardsl / heatmap-calendar-obsidian

An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Apache License 2.0
614 stars 102 forks source link

Feature: Add an option that allows users to separate months in calendar views. #131

Open afterglowu opened 1 month ago

afterglowu commented 1 month ago

Hi Richardsl, I added an feature that allows users to separate months. This option works globally, the effect of this option is similar to LeetCode streak, shown as below:

image

By the way, I also fixed a small glitch in this commit. By adding the following css snippet, "today" is highlighted correctly in Obsdian dark mode. (Please see the picture above for the effect)

.theme-dark .heatmap-calendar-boxes .today {
  border: solid 1px white;
}

Hope you like this new feature and consider merging my code 🙏

afterglowu commented 1 month ago

After consideration, I added a local option in addition to the global one. So users can use

separateMonths: true
separateMonths: false

in dataviewjs query to force enable/disable this feature.