如何更新trilium
I just downloaded the new zip file for the win64 version.
What is the correct way for updating my existing version without losing my current notes?
Thanks!
BTW: Trilium is great!!!
Answer from Zadam: Just extract the ZIP into a folder of your choosing. Trilium stores its data in C:\Users\[user]\AppData\Roaming\trilium-data
.
Note: the program is stored at D:/programfiles(x86)/trilium. Also directly use “search the position of source file”.
更新:zadam后来增加了对更新方式的解释:https://github.com/zadam/trilium/wiki/Upgrading-Trilium
总之核心在于:trilium的应用程序(坐落在applications里面)和数据(https://github.com/zadam/trilium/wiki/Data-directory)是完全分开存放的,所以更新程序的时候只要更新应用就行了。目前数据存放在downloads里面,使用百度网盘的同步空间功能进行同步(因为百度网盘只能访问这个文件夹)
trilium的笔记方式
技术文档:https://github.com/zadam/trilium/wiki/Text-notes#autoformat
总结:
- markdown使用CKE editor支持笔记的编辑功能,而cke是基于markdown的,但是与直接写代码的md不同,是WYSIWYG(所见即所得)的md,所以markdown的语法在cke中也能用,但是有时候不会即时编译。准确的来说,其markdown语法的检测是按行进行的。
- 优点:超级傻瓜
- 缺点:对markdown的支持很差,甚至于比起用自带的markdown语法写笔记(可能有bug),更好用的是利用typora等markdown编辑器先把给定的markdown代码编译成richtext,然后再把得到的richtext粘贴到这个编译器里面;或者用导入功能。
- markdown对数学公式的支持基于ketex,但是非常差,插入数学公式更不能使用markdown语法,只能调出数学公式环境然后输入公式然后关闭环境;导出数学公式时用的也不是markdown语法,而是latex语法(用\(…\)而不是 … … …来表示行内公式)
- 但是也许用rest api可以做到,所以最近需要研究一下这个东西:https://github.com/zadam/trilium/wiki/ETAPI
- trilium竟然也是支持mermaid的