Skip to content

Releases: Nriver/trilium-py

v1.3.0

21 Oct 05:52

Choose a tag to compare

New Feature — (Advanced Usage) 🗓️🔁 Periodic TODOs

Automatically add recurring tasks to your TODO list using the new add_periodic_todos function!

This feature supports daily, weekly, monthly, and yearly tasks.
If a task is due today and isn’t already in your list, it will be added automatically.

💡 Example

periodic_todos = [
    {"content": "Stretch body", "type": "daily"},
    {"content": "Buy milk for Nriver :)", "type": "daily"},
    {"content": "Wash clothes", "type": "weekly", "weekday": 6},
    {"content": "Write monthly report", "type": "monthly", "day": 1},
    {"content": "Annual review", "type": "yearly", "month": 12, "day": 31},
    {"content": "Pay bills", "type": "monthly", "day": 15, "end_date": "2077-01-01"},
]

ea.add_periodic_todos(periodic_todos)

🔗 More advanced usage

For more complex usage and options, please refer to the documentation.

New Feature — 📄 Create Branch (Note Clone)

In ETAPI, this is called a branch, but in the Trilium UI it represents a note clone.

Here’s an example of creating a clone of note2 under note1:

res = ea.create_branch(
    noteId="note2",
    parentNoteId="note1",
)

🗓️🔁 新功能 — (高级用法) 周期性 TODO

现在可以使用 add_periodic_todos 自动添加循环任务到待办列表!

支持 每日、每周、每月和每年 的任务。
如果任务今天到期且今天的清单中没有,它会自动添加。

💡 示例

periodic_todos = [
    {"content": "每天拉伸身体", "type": "daily"},
    {"content": "每天给 Nriver 买牛奶 :)", "type": "daily"},
    {"content": "每周六洗衣服", "type": "weekly", "weekday": 6},
    {"content": "每月 1 日写月报", "type": "monthly", "day": 1},
    {"content": "年度总结", "type": "yearly", "month": 12, "day": 31},
    {"content": "每月 15 日交账单", "type": "monthly", "day": 15, "end_date": "2077-01-01"},
]

ea.add_periodic_todos(periodic_todos)

🔗 更多复杂用法

更多高级用法和配置说明,请参考官方文档:周期性 TODO

新功能 — 创建笔记克隆(分支)

在 ETAPI 中,这个对象被称为 branch(分支),但在 Trilium 用户界面中,它表示 笔记克隆(note clone)。

下面示例演示如何在 note1 下创建 note2 的克隆:

res = ea.create_branch(
    noteId="note2",
    parentNoteId="note1",
)

v1.2.6

29 Sep 06:10

Choose a tag to compare

New Feature

  • Periodic TODOs

    • Supports recurring todos: daily, weekly, monthly, yearly
    • Supports custom date ranges (start_date, end_date)
    • Supports negative day values for monthly tasks (e.g. -1 = last day of month)
    • Avoids duplicate todos for the same day

Example

periodic_todos = [
    {"content": "Check email", "type": "daily"},
    {"content": "Wash clothes", "type": "weekly", "weekday": 6},
    {"content": "Write monthly report", "type": "monthly", "day": 1},
    {"content": "Pay rent", "type": "monthly", "day": -1},
]
ea.add_periodic_todos(periodic_todos)

新功能

  • 周期性 TODO

    • 支持周期性任务:每日、每周、每月、每年
    • 支持自定义日期范围(start_date, end_date
    • 支持 负数日期 用于月度任务(如 -1 = 每月最后一天)
    • 自动避免重复添加相同任务

示例

periodic_todos = [
    {"content": "检查邮件", "type": "daily"},
    {"content": "洗衣服", "type": "weekly", "weekday": 6},
    {"content": "写总结报告", "type": "monthly", "day": 1},
    {"content": "交房租", "type": "monthly", "day": -1},
]
ea.add_periodic_todos(periodic_todos)

v1.2.5

11 Sep 06:56

Choose a tag to compare

Release Note

  • Beautify note has been further enhanced:

    • Headings are now automatically normalized (highest level unified to H2) for clearer structure
    • Code blocks are now preserved and excluded from global beautification
    • Leading and trailing blank lines inside code blocks are automatically removed
    • Improved spacing between images and paragraphs
    • Enhanced overall formatting consistency, making notes cleaner, clearer, and easier to read
  • Beautify note 功能进一步完善:

    • 标题层级现在会自动规范化(最高统一为 H2),结构更加清晰
    • 代码块内容会被完整保留,不再参与全局美化
    • 自动去除代码块内部首尾多余的空行
    • 优化图片与段落之间的间距
    • 提升整体排版一致性,让笔记更加简洁、清晰、易读

beautify-note

v1.2.2

08 May 06:37

Choose a tag to compare

v1.2.1

21 Apr 02:48

Choose a tag to compare

What's Changed

Full Changelog: v1.2.0...v1.2.1

v1.2.0

12 Mar 08:23

Choose a tag to compare

v1.1.0

04 Mar 07:45

Choose a tag to compare

This release implement web API client for Trilium

v1.0.1

25 Feb 07:04

Choose a tag to compare

Some photo are rotated 90 degrees after conversion. Correct image orientation based on EXIF data, if available

v1.0.0

19 Feb 00:51

Choose a tag to compare

v0.9.9

19 Dec 01:27

Choose a tag to compare

What's Changed

  • New feature: Automatically Add Internal Links

Before:

After:

You can find more details in the documentation:
Advanced Usage - Automatically Add Internal Links.

Full Changelog: v0.9.8...v0.9.9