自动删除图片功能引出的问题和建议
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 13k
- Forks
- 1.3k
- Avg merge
- 14h 3m
- Merged PRs (30d)
- 3
Description
OS Version (操作系统): Windows 10
VNote Version 2.5
Symptoms (表现):
在文档中添加一些图片后,然后在前面输入 ~~~ 或者 ,准备输入代码,然后就会跳出对话框,提示后面的图片已经不用了,是否删除?其实我只是想在前面插入一些代码,但是这个自动删除图片的检测估计太灵敏了,我还没输入代码块的结束符~~~或者呢,它就跳出来了。
How to Repro (如何复现):
直接按照上面的操作就会出现了。
建议:
- 把图片按照md文档的名称单独保存在一个目录下,当然可以对目录名特殊处理一下,否则会在目录树中显示出来。
- 每次编辑的时候,先不删除修改的图片链接,关闭文档的时候再统一扫描文档,看看有哪些图片链接被删除了,然后提示一下。可能有很多人不喜欢这样做,可以做成一个开关,喜欢的打开,不喜欢的关闭。
如果上面两条建议都比较麻烦的话,可以考虑下面的建议:
保留现在的图片自动删除机制不变,但是修改一下删除图片的提示方式,现在是弹出一个对话框提示是否删除图片,用户必须点击一下确定或者取消才能进行下一步的输入。建议在文档窗口的底部或者右侧添加一个窗口,平时这个窗口关闭,当检测到有图片链接被删除时,就显示这个窗口,内容与现在的弹出窗口一致,但不要占用这么大的屏幕,输入焦点还是在文档的编辑界面中,不影响用户的操作,如果用户想删除图片,就可以在编辑完毕后,点击确定删除,或者点击取消不删除。也可以在用户操作的过程中,持续检测,如果发现用户并不是真正的删除图片链接,就可以自动关闭这个窗口,比如我上面的操作,不是想删除图片链接,只是想插入一个代码块,这时候就可以在检测到输入代码块结束符的时候把删除确认窗口关闭。此时也不会影响用户的输入过程。
希望可以考虑我的建议。
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No files, tests, or entry points are named. Start by reproducing the behavior in VNote 2.5 on Windows 10 while typing an unfinished fenced code block after adding images; done means the editor does not interrupt this input with a premature image-deletion confirmation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, markdown
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100