Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature]: Support Quick-Copy/Drag-and-Drop for Annotations #2371

Open
FieteO opened this issue Jan 8, 2023 · 3 comments
Open

[Feature]: Support Quick-Copy/Drag-and-Drop for Annotations #2371

FieteO opened this issue Jan 8, 2023 · 3 comments

Comments

@FieteO
Copy link

FieteO commented Jan 8, 2023

Debug log ID

HL9V2ZBK-refs-euc

What happened?

Basically what I'd like to achieve is dragging and dropping notes from Zotero to VSCode to insert a citation that is also containing the page number.

What is working fine for me, is dragging and dropping the whole library entry to insert a citation key as defined in Edit -> Preferences -> Better BibTex -> Export -> Quick-Copy. In my case, this will yield \footcite[\vglf][\pagef]{russell2020} since that's the command that I have defined for the LaTeX citation Quick-Copy format.
What I'd like to do though, is mark something in a pdf, do an Add notes from Annotations and then drag and drop a single annotation into my text editor to get \footcite[\vglf][\pagef1]{russell2020} (note the page number here).

Expected:

\footcite[\vglf][\pagef1]{russell2020}

What I got:

“Introduction� ([Russell and Norvig, 2020, p. 1](zotero://select/library/items/CCC6AHWQ)) ([pdf](zotero://open-pdf/library/items/EYZYFJB9?page=29&annotation=DTQM433Y))

image of dragging note from Zotero to VSCode

@retorquere
Copy link
Owner

In the 2nd item of HL9V2ZBK-refs-euc, would the correct page number be 1423, or 1450?

@FieteO
Copy link
Author

FieteO commented Jan 10, 2023

Well, that's a bit of a question of definition. Zotero supports manually adjusting page numbers of annotations, such that it matches the number that is printed/visible on the page you are citing. I think I did that here and accordingly the 1423 is the page number that I wanted in the citation (even though it may be the 1450's page of the pdf in absolute terms).

You will get that, when using the Edit Page Number... dialogue and then use the This page and later pages option:
IMG-20230110-WA0002

@retorquere
Copy link
Owner

Ah, got it. OK.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants