Closed ThachNgocTran closed 8 months ago
The default link text is generated from getNoteTitle
, which slices the first 120 chars of the first line of a note. So to answer your question, it's by design by Zotero, not this plugin.
You could modify the QuickInsert
template to customize the link text, though.
This is not a bug, so I will close this issue.
@windingwind You're right. This is not a bug. Thanks for the quick response. 👍
Nevertheless, to get the full text note (instead of being truncated as showed above), one needs to modify the QuickInsert template, and play with the javascript a little bit.
In Template Editor of Better Notes:
In Note Workspace tab, the result will end up as I desired:
Cool! If you don't mind, I'd like to convert your reply to a discussion as a template share, which might be helpful to others.
Also, subNoteItem.getNote()
might not work very well with embedded images. You can use the API provided by this plugin to import note content into another note, see https://github.com/windingwind/zotero-better-notes/discussions/245
Cool! If you don't mind, I'd like to convert your reply to a discussion as a template share, which might be helpful to others.
Please go ahead. You're welcome.
Is there an existing issue for this?
Are you using the latest Zotero and the latest plugin?
Environment
Describe the bug
Description
After linking a Note within a currently opened PDF to a Note Workspace, thanks to Better Notes plugin, the inserted link works as expected. However, it is truncated. It seems to have a max length of 120 characters.
Not sure if this is by-design, or a bug. Hope that this limitation is configurable somewhere.
Reproducibility
Screenshots
Debug Output
The Debug Output:
Debug Output.zip
Anything else?
I tried creating a link with text description more than 200 characters, and got no problem. So probably this bug is not by-design by Zotero. When generating the link in Note Workspace, it got truncated beforehand.