vnotex / vnotex/vnote

图片被错误删除

Open
#790 3 comments 0 reactions 0 assignees View on GitHub

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 (如何复现):

  1. 剪切包含图片链接的文本时图片被自动删除
    a 输入一些文本,然后插入一张图片。
    b. 把文本和图片链接同时选中,剪切到同一个文档的其他位置,粘贴。
    c. 图片不再显示,已经被删除到回收站里了。

  2. 插入新的标题时图片被自动删除
    a. 开启标题自动设置编号的功能。
    b. 输入1级标题和几个2级标题。
    c. 在一个二级标题下插入一些图片和文字,此时在编辑模式下也可以正常显示。
    d.在前面插入一个新的标题,如果插入一个不行的话,可以多试几次,我是插入了3个1级标题,每个一级标题下还有3个二级标题后,发现昨天编辑文档时在后面插入的图片都不能正常显示了,但是今天插入新的标题之前插入的图片都还可以正常显示,虽然被删除的图片和没有被删除的图片都在同一个位置。

建议:提供一个选项,让用户可以选择在删除图片链接的时候是否也自动删除磁盘上的图片文件,虽然现在也有这个提示,但是每次都会提示,能不能做成不提示,或者可以选择是否提示。
我理解现在的做法应该是点击确定后才会执行删除操作,并保存复选框的状态,如果点击取消,则不删除图片,并且复选框的状态也不会保存,这个处理我觉得有点问题。

另外,我之前再看到这个提示的时候选择了不再提示,直接删除。之后我再想修改回来却找不到配置的地方,只能在配置文件中修改了。

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing both image-deletion scenarios in VNote 2.5 on Windows 10: cutting and pasting image-linked text, then inserting numbered headings before existing images. Inspect the image deletion and confirmation settings described in the issue. Done means images are not unexpectedly removed and the notification or preference behavior matches the chosen user setting.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, markdown
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.