0x-jerry / vscode-hexo-utils

vscode sidebar for hexo.
https://marketplace.visualstudio.com/items?itemName=fantasy.vscode-hexo-utils
MIT License
46 stars 11 forks source link

feat: support set asset folder type #89

Closed peterxcli closed 5 months ago

peterxcli commented 6 months ago

move pasted image into images folder, then the image can show image in the built post

Screenshot 2023-12-20 at 2 15 51 AM

image

peterxcli commented 6 months ago

@0x-jerry Please help me to review. Thx.

0x-jerry commented 6 months ago

@peterxcli Thanks for your contribution! Previously, I implemented this function for Hexo post asset folder, not for Global asset folder. So I think we may need an option, maybe hexo.pasteFolderType to specify the asset folder type, and the default value should be post to be compatible with the existing version.

A workaround is to disable the past image shortcut of this extension and use vscode-paste-image instead.

If you want to disable past image shortcut, here is an example: https://github.com/0x-jerry/vscode-hexo-utils/issues/45#issuecomment-1013111551

peterxcli commented 6 months ago

@0x-jerry Thanks for your opinion. I have adopted your idea, please review it again.