4.0.0 (2026-05-18)
⚠️ Breaking Changes
- Command ID renamed:
yearly-glance:open-yearly-glance → yearly-glance:open-view. If you have hotkeys or third-party plugins (e.g. Spacekeys) referencing the old command ID, please re-bind them.
- Minimum Obsidian version: raised from 1.8.0 to 1.10.0 (required for Bases API and
getLanguage()).
🚀 Added
- Daily Note Events: Create, edit, and delete events directly in daily note frontmatter properties ✨
- Note Events: Any note with an
event_date property can serve as an event source ✨
- Bases View Integration: Use
.base files to create custom aggregated calendar views ✨
- Multi-Day Events: Events support a duration field to span multiple days ✨
- Event Preset Types: Define named types (e.g. "健康 🌿") with emoji and color for consistent event styling, with type-based filtering support
- Multi-Token Search in Event Manager: Combined filters like
@year:2026 @month:3 @type:健康 with a token suggestion panel
- Emoji Picker: Searchable emoji picker for event icons — supports custom keyword mapping in settings
More details on v4 features
✨ Improved
- Title Styling: Improved year number font and interactive styling in the calendar header
- Right-Click Context Menu: Right-click any event to edit, open its source note, or delete
- Delete Button in Edit Modal: Delete button added to the bottom-left of the edit form
- Remember Last Event Type: Event creation form defaults to the last used type
- Color Swatches in Color Selector: Colored circles shown before each preset color option
- Compact Tab Bar: Tab bar collapses to emoji-only when there is insufficient space
- Event Click Action Setting: Choose what happens when clicking an event — "Show preview" (default), "Edit event", or "Open note"
- Simplified Source Note Display: Shows filename only; hover to see the full path
- Unified Tooltip Style: Consistent hover hint styling across all buttons
- Event Detail Trimming: Only meaningful attribute values are shown, reducing visual noise
- Zodiac/Animal Stored as Locale-Independent Keys:
zodiac and animal in data.json now store English identifiers (e.g. capricorn, jia-zi:rat) and are translated at display time, preventing mixed-language data when switching locales
- Hide Past/Future Months State Persisted: Toggle states are now saved and restored on reload
- Date Validation: Invalid dates like
2026-04-220 are now properly rejected
- Settings Tabs: Settings panel reorganized into 5 tabs (Basic / Layout & Display / Note Events / Daily Note Events / Presets)
🐛 Fixed
- Year Switch Corrupts Event Dates: Switching the display year no longer permanently overwrites the original event date
- Birthday Age/Zodiac for Legacy Date Format: Events saved in the old date format now correctly calculate age and zodiac
- CSS: Various minor CSS fixes
中文说明(点击展开)
⚠️ 破坏性变更
- 命令 ID 已重命名:
yearly-glance:open-yearly-glance → yearly-glance:open-view。如果你在快捷键或第三方插件(如 Spacekeys)中绑定了旧的命令 ID,请重新绑定。
- 最低 Obsidian 版本要求:从 1.8.0 提升至 1.10.0(Bases API 和
getLanguage() 所需)。
🚀 新增
- 日记事件:现在起,你可以在日记的 frontmatter 属性中直接添加当天的事件 ✨
- 笔记事件:以及,数据终于不再只存在在插件内——你可以将任意笔记作为事件来源 ✨
- Bases 集成:现在,可在
.base 数据库内添加 yearly-glance 视图,自定义不同笔记事件的聚合显示 ✨
- 多日事件:事件支持设置持续天数(duration) ✨
- 事件类型预设(EventPresetType):定义带 emoji 和颜色的命名类型(如"健康 🌿"),指定给事件后统一样式,支持按类型筛选
- 组合搜索:事件管理页面,支持
@year:2026 @month:3 @type:健康 组合筛选,并提供候选词提示面板
- Emoji 选择器:新增 emoji 图标选择弹窗,支持搜索,并可在设置中添加自定义关键词
v4 功能详情
✨ 提升
- 标题样式优化:年历标题的年份数字字体和交互样式改进
- 右键上下文菜单:右键事件可编辑、打开笔记或删除
- 编辑表单删除按钮:在编辑表单左下角新增删除按钮
- 记忆上次事件类型:新建事件时默认使用上次选择的类型
- 预设颜色圆形提示:颜色选项前显示彩色圆点预览
- 导航栏响应式 Emoji 模式:空间不足时自动折叠为纯 emoji 显示
- 事件点击行为设置:可设置点击事件的行为——预览(默认)、编辑、或打开来源笔记
- 笔记来源显示简化:仅显示文件名,悬停查看完整路径
- 统一 Tooltip 组件:所有按钮的悬停提示风格统一
- 事件专属信息:仅显示有意义的属性值,节省空间
- 生肖/星座存储为与语言无关的 key:避免切换语言时数据混乱
- 隐藏过去/未来月份状态持久化:切换后的状态现在会保存,重启插件后不再重置
- 日期验证:拒绝
2026-04-220 等格式非法的日期输入
- 设置页改进:设置面板重新整理为 5 个标签页(基础 / 布局与显示 / 笔记事件 / 日记事件 / 预设)
🐛 修复
- 切换显示年份导致事件日期被覆写:切换到 2027 年等操作不再永久修改事件的原始日期
- 生日旧格式数据不计算年龄/生肖:兼容旧格式保存的生日数据
- CSS:修复各种 CSS 内的小错误
🔧 构建
- 降级 React 到 18:将 React 19 替换为 React 18.3.1,修复 Obsidian 插件审核报告的错误
- 移除废弃依赖:用 Node.js 内置模块替换依赖
- 发布流程优化:移除 Release 中多余的
.zip 文件;为 main.js、manifest.json、styles.css 添加构建来源证明(artifact attestation)
- CI 升级:CI 工作流中 Node.js 从 18 升级到 20