windingwind / zotero-better-notes

Everything about note management. All in Zotero.
GNU Affero General Public License v3.0
5.5k stars 188 forks source link

[Bug] “复制当前节”功能无效 #745

Closed RunningDog0 closed 1 year ago

RunningDog0 commented 1 year ago

Is there an existing issue for this?

Are you using the latest Zotero and the latest plugin?

Environment

Describe the bug

在笔记中点击右上角小齿轮,选择“复制当前节”或者“复制当前行”。 然后粘贴在其他笔记中,复制的内容实际上是整篇笔记而不是当前节或者当前行

该问题可100%复现,已附上debug报告,不知是否有帮助

Debug Output

1697029655860 addons.xpi WARN Checking D:\software\Zotero_win-x64\distribution\extensions for addons

[JavaScript Error: "NS_NOINTERFACE: " {file: "resource://gre/modules/ComponentUtils.jsm" line: 90}] createInstance@resource://gre/modules/ComponentUtils.jsm:90:36

1697029656426 addons.xpi WARN Addon with ID undefined already installed, older version will be disabled

[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1710}]

[JavaScript Error: "Error: Addon must include an id, version, and type" {file: "resource://gre/modules/addons/XPIProvider.jsm" line: 1710}]

[JavaScript Error: "NS_ERROR_NOT_AVAILABLE" {file: "resource://gre/modules/PartitioningExceptionListService.jsm" line: 92}]

[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]

[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]

[JavaScript Error: "NS_ERROR_FAILURE: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsITelemetry.getHistogramById]" {file: "resource://gre/modules/TerminatorTelemetry.jsm" line: 87}]

[JavaScript Error: "Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead"]

[JavaScript Error: "Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead"]

[JavaScript Error: "Passing a URI to Zotero.File.getContentsAsync() is deprecated -- use Zotero.HTTP.request() instead"]

[JavaScript Error: "The connection was refused when attempting to contact wss://stream.zotero.org/."]

[JavaScript Error: "WebSocket connection closed: 1006 "]

[JavaScript Error: "The connection was refused when attempting to contact wss://stream.zotero.org/."]

[JavaScript Error: "WebSocket connection closed: 1006 "]

[JavaScript Error: "The connection was refused when attempting to contact wss://stream.zotero.org/."]

[JavaScript Error: "WebSocket connection closed: 1006 "]

[JavaScript Error: "NotFoundError: Could not get children of file(C:\Users\Shouxiang\AppData\Roaming\Zotero\Zotero\Crash Reports\events) because it does not exist" {file: "resource://gre/modules/CrashManager.jsm" line: 682}] _getUnprocessedEventsFiles/<@resource://gre/modules/CrashManager.jsm:682:12

appName => Zotero, version => 7.0.0-beta.44+64a78412c, os => Windows 10.0 22621, locale => zh-CN, extensions => Better Notes for Zotero (1.1.4-23, extension), ZotFile (5.1.2, extension, disabled), Zotero Tag (0.3.0, extension, disabled), DOI Manager (1.4.2, extension, disabled), Sci-Hub Plugin for Zotero (1.4.4, extension, disabled), Translate for Zotero (1.1.0-17, extension, disabled), Jasminum (1.0.0-6, extension, disabled), Green Frog (0.16.02, extension, disabled), Zotero One (5.2.2, extension, disabled)

Anything else?

No response

windingwind commented 1 year ago

请提供截图

RunningDog0 commented 1 year ago

首先点击复制当前节image 以下链接被复制:zotero://note/u/FYR3DYT8/?section=(Perry-Smith%20%E5%92%8C%20Mannucci%2C%202017)%20AMR%20-%20The%20journey%20of%20an%20idea 但是,粘贴后的内容是整篇笔记,而不是当前节 image 点击编辑链接我们可以看到:zotero://note/u/FYR3DYT8/?ignore=1&section=(Perry-Smith%20%E5%92%8C%20Mannucci%2C%202017)%20AMR%20-%20The%20journey%20of%20an%20idea

windingwind commented 1 year ago
  1. 链接的定位(节/行)仅在点击链接打开时有效。
  2. 你用的功能叫做展开(嵌入)笔记链接,会将子笔记整个嵌入当前链接后。 因此不是bug,此处关闭,感谢反馈