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

增加 粘贴图片到本地 (非 base64 ) #123

Closed
yiyungent opened this issue Apr 4, 2022 · 4 comments
Closed

增加 粘贴图片到本地 (非 base64 ) #123

yiyungent opened this issue Apr 4, 2022 · 4 comments

Comments

@yiyungent
Copy link

yiyungent commented Apr 4, 2022

目前使用 Windows yn v3.27.0
很棒的软件,感谢!

希望能增加 粘贴图片到本地文件夹,但不要转换为 base64, 而是使用设置好的本地路径,就像 Typora 那样,Typora 甚至会自动将远程图片下载到本地(若设置),最好能像 Typora 一样,直接 Ctrl+V 就能粘贴到本地

image

目前只能 粘贴图片为 base64, 和选择图片文件

Typora 图片设置
image

@yiyungent yiyungent changed the title 增加 粘贴图片 (非 base64 ) 增加 粘贴图片到本地 (非 base64 ) Apr 4, 2022
@purocean
Copy link
Owner

purocean commented Apr 4, 2022

首先本地图片都是保存在当前仓库的,不会超过仓库的范围,所有的资源引用都仅限于本仓库。保存的位置,可以在设置中自定义。

  1. 你可以使用菜单中的添加图片功能来插入仓库外的图片到文档中。根据菜单不同图片会复制到当前仓库或者上传图床。
    image
  2. 针对剪切板中的图片,可以直接使用 Ctrl/Cmd+V 或使用右键菜单直接粘贴到本地或使用菜单粘贴为 Base64。不过你可以在设置中配置上传到图床。
    image
  3. 针对外链网络图片,Yank Note 支持右键下载到本地
    image
  4. 针对本地图片,Yank Note 支持右键上传到图床
    image
  5. 针对本地图片、复制富文本/导出 HTML功能可以选择内联图片(Base64形式)或上传到图床
    image
  6. 本仓库的图片编辑器支持补全方便快速编辑
    image
  7. 应用中支持使用 file 协议引入仓库外的图片,但不建议这样做。
    如:![Img](file://O:/test/yndata/FILES/image.md/cb5b26bb.png)

如果还有什么不能满足需求的,可以自己写插件来实现

@purocean purocean closed this as completed Apr 4, 2022
@yiyungent
Copy link
Author

没懂,这占位符,我想保存到与当前文件名相同文件夹里, ./${filename}

@yiyungent
Copy link
Author

yiyungent commented Apr 4, 2022

懂了,直接, ./{docSlug} ,不过会自动转英文,测试 ./{docName} 没反应

test1

@purocean
Copy link
Owner

purocean commented Apr 4, 2022

因为 ./docName 就是当前文件文件名字,冲突了。这里下个版本做个提示吧

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

No branches or pull requests

2 participants