Skip to content

Commit

Permalink
Merge pull request #1 from a-nano-dust/future-编写readme
Browse files Browse the repository at this point in the history
Future 编写readme
  • Loading branch information
a-nano-dust committed Apr 1, 2024
2 parents ff3b5f7 + 9d82026 commit f249cb8
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 2 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 a-nano-dust

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
52 changes: 52 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<h1 align="center">Dust Obsidian Calendar</h1>

<p align="center">
<img alt="Release version" src="https://img.shields.io/github/v/releasea-nano-dust/dust-obsidian-calendar?style=for-the-badge">
<img alt="Download count" src="https://img.shields.io/github/downloads/a-nano-dust/dust-obsidian-calendar/total?style=for-the-badge">
</p>
<p align="center">
<span>Dust Obsidian Calendar 更符合中国习惯的 Obsidian 插件,它提供了日历浏览以及与日历联动的周期性笔记功能。</span>
</p>

## 关于插件

更符合中国习惯的日历插件,支持同时显示公历、农历、星期、节气、节假日、调休等信息,支持切换月视图和年视图,支持关联创建周期性笔记。周期性笔记包括:每日笔记、每周笔记、每月笔记、季度笔记、年度笔记。

![](./resource/overview.jpg)

## 日历视图

鼠标移动到日历顶部的年份区域,年份区域左右会出现切换年份的箭头,点击即可切换年份。日历顶部的月份和季度区域操作方式同理。

点击日历顶部的 ``,可能会出现以下几种情况:

- 如果已经选中了月视图下的日期,日历视图会切换选中到当前日期;
- 如果已经选中了月视图下的周序号,日历视图会切换选中当前周序号;
- 如果已经选中了年视图下的月份,日历视图会切换选中当前月份;
- 如果已经选中了年视图下的季度序号,日历视图会切换选中当前季度序号。

点击日历顶部的 ````,可以从月视图切换到年视图,或从年视图切换到月视图。

## 如何创建周期性笔记

首先,我们需要在插件设置中打开对应的选项。

然后,我们需要配置周期性笔记的模板路径(包含笔记所在文件夹和笔记文件名),模板控制字符与 [luxon](https://moment.github.io/luxon/#/formatting?id=table-of-tokens) 相同。

如下展示了一个可能的配置内容:

![](./resource/setting.jpg)

配置完成后,按照如下方式进行操作即可创建笔记:

- 创建每日笔记:在月视图下双击日期;
- 创建每周笔记:在月视图下双击周序号;
- 创建每月笔记:在年视图下双击月份,或双击日历顶部的月份;
- 创建季度笔记:在年视图下双击季度序号,或双击日历顶部的季度;
- 创建年度笔记:双击日历顶部的年份。

如果与日历关联的每日笔记、每周笔记、每月笔记、季度笔记、年度笔记存在,日历视图会在关联的显示区域下方标注一个 **·**

## 联系和反馈

如果你在使用该插件过程中,遇到各种问题、或有什么好的建议,欢迎在 [GitHub issues](https://github.com/a-nano-dust/dust-obsidian-calendar/issues) 中提出。
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"name": "Dust Obsidian Calendar",
"version": "1.0.0",
"minAppVersion": "0.15.0",
"description": "一款更适合中国人的日历插件,可以显示农历、节气、节假日、调休信息,支持月视图和年视图切换,支持关联创建周期性笔记。",
"description": "更符合中国习惯的日历,可以显示农历、节气、节假日、调休信息,支持月视图和年视图切换,支持关联创建周期性笔记。",
"author": "纳米级尘埃",
"authorUrl": "",
"authorUrl": "https://github.com/a-nano-dust/dust-obsidian-calendar",
"fundingUrl": "",
"isDesktopOnly": true
}
Binary file added resource/overview.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resource/setting.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f249cb8

Please sign in to comment.