Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: import/export leanote notebook structure #339

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Mrzyxing
Copy link

基于原来的插件添加了导入/导出 leanote 笔记本文件夹的功能。
导入文件夹:
选择文件夹,递归遍历所有子文件夹,将该文件夹和起子文件夹中尾缀名为.leanote的文件尝试parse为leanote笔记。
操作如下:
image
image

结果如下:
image
image

导出文件夹:
右键笔记目录,并选择保存位置,以该笔记目录名为文件夹名称,递归创建子目录并导入相应目录的笔记为leanote格式笔记

操作如下:
image

结果如下:
image

fix: app.makeSingleInstance can't start
dlgcy pushed a commit to dlgcy/desktop-app that referenced this pull request Sep 21, 2023
dlgcy pushed a commit to dlgcy/desktop-app that referenced this pull request Sep 21, 2023
@dlgcy
Copy link

dlgcy commented Sep 22, 2023

老哥,我把你这个提交合到最新的分支,点击递归导出没有效果,能帮忙看看吗?
https://github.com/dlgcy/desktop-app
https://gitee.com/DLGCY_Clone/leanote-desktop-app

@Mrzyxing
Copy link
Author

@dlgcy 我那个版本好老了,正好最近在 ubuntu 22 下用发现图标显示异常准备升级一下,顺便把这个功能带上,国庆后重新打个 commit 了。
对了我对前端不熟悉,你是怎么打包的了?我看 electron 项目打包貌似都是要写 package.json 中的 script 的,要不太麻烦了,但是这个项目貌似没有这个相关 script 不能是外部自己手写把
之前这个功能是直接 electron . 跑起来后直接备份一次数据后重新导到私服上就没用了,所以没有经历过打包

@dlgcy
Copy link

dlgcy commented Sep 29, 2023

@dlgcy 我那个版本好老了,正好最近在 ubuntu 22 下用发现图标显示异常准备升级一下,顺便把这个功能带上,国庆后重新打个 commit 了。 对了我对前端不熟悉,你是怎么打包的了?我看 electron 项目打包貌似都是要写 package.json 中的 script 的,要不太麻烦了,但是这个项目貌似没有这个相关 script 不能是外部自己手写把 之前这个功能是直接 electron . 跑起来后直接备份一次数据后重新导到私服上就没用了,所以没有经历过打包

@Mrzyxing 我也对前端不太熟悉,我试过打包(使用合并后的代码,一些文件我也提交到我那个分支了,你可以看看有没有用),但是打包后运行不起来。
直接用官方的绿色版,然后替换里面的前端文件,这样可以用(我改的导出PDF时支持文件名中有空格和“#”就可以用),就是您这个导出功能没效果。
我也是想换用私服,所以很需要这个导出功能,期待您的提交。

@dlgcy
Copy link

dlgcy commented Oct 24, 2023

@Mrzyxing 老哥,进展如何?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants