napretep / hjp-bilink

hjp bilink is an anki addon, a toolbox dedicated to make the structureless cards more structable
https://vu2emlw0ia.feishu.cn/wiki/wikcnZcvoqg7x7R2eeQM4IxsNXd
GNU Lesser General Public License v3.0
18 stars 6 forks source link

Prog didn't remove "intext link" from the clipboard content. #2

Open ccchan234 opened 1 year ago

ccchan234 commented 1 year ago

hi, using anki v2.1.54, bjp v2.6.2b8.w

not sure what function is this: image

card1 and 2: image

when i highlight card1 and copy as intext-link: it gives: [[link:1682338060234_card1[[link:1682338064521card2]]_]]

in which there is a duplicate of card2...

Q1 is that normal? thanks.

btw, i am using windows /w portable version (see anki's manual). i saw that your program backup in the database's folder. Q2. so does it mean that i dont have to worry the backup? thanks

as mine is portable, my routine backup is backup the whole folder.

Q3. and is it ok to move around my portable anki e.g. to machine B etc?

thanks

napretep commented 1 year ago

Hello,

The "delete_intext_link_when_extract_desc" switch controls whether to ignore the intext_link tags when the program extracts the description from the cards.

If you have enabled "delete_intext_link_when_extract_desc" but still encounter issues like "[[link:1682338060234_card1[[link:1682338064521card2]]_]]", it means that the switch is not functioning properly, and I will fix this problem in a future version.

The backup file is a complete copy of the original file with a timestamp appended to the file name. The default backup path is hjp-linkmaster/user_files/. You can change this location in the configuration table, and backup files are not recommended for synchronization between multiple devices.

If you want to synchronize the database of this program across multiple devices, you can use services like WebDAV to directly sync the database itself instead of the backup. Because if you use backups, you would need to rename them, which can be cumbersome.

你好, delete_intext_link_when_extract_desc 这个开关控制着当程序要从卡片中提取描述时,是否要忽略intext_link的标记.

如果你开启了 delete_intext_link_when_extract_desc 但是仍然出现"[[link:1682338060234_card1[[link:1682338064521card2]]_]]"这样的问题, 说明这个开关并未正常工作, 我会在后面的版本修复这个问题.

备份文件是对源文件的完整拷贝并追加时间戳作为文件名, 默认的备份路径是hjp-linkmaster/user_files/ 这个位置你可以在配置表中修改, 备份文件不推荐用于多设备之间同步. 如果你想要多设备之间同步本程序的数据库,可以使用一些webdav之类的服务来直接同步数据库本身而非备份.因为使用备份的话那还需要改名,比较麻烦.

napretep commented 1 year ago

"我测试了你说的情况,但没有发现异常. 你能提供可重复的操作吗? 另外你可以删除多余的文字, 这不会影响链接的效果, 举个例子, [[link:1682560034814123]]中 123是可以删除或替换的, 不会影响链接的识别" "I tested the case you mentioned, but did not find any abnormalities. Can you provide reproducible steps? Also, you can remove unnecessary text without affecting the link's effectiveness. For example, in [[link:1682560034814123]], 123 can be deleted or replaced without affecting the link recognition."

ccchan234 commented 1 year ago

hi, i tried again on portable v2.1.54 on win10, still have extra text. image

but that's ok as i'll use the ankilink:// method instead, thanks

btw, i forget where your 2 QR code is, and cant find them now. pls provide me if possible, at ccchan234@gmail.com thanks

ccchan234 commented 1 year ago

v2.1.54, qt6, btw.

ccchan234 commented 1 year ago

btw, by using the anki addon code, i can only upgrade to the image as the latest. thx