tecosaur / LaTeX-Utilities

An add-on to LaTeX Workshop that provides some features that go beyond the bare essentials
MIT License
474 stars 28 forks source link

VSCode Zotero citation picker cannot locate items #395

Closed jooyoungseo closed 6 months ago

jooyoungseo commented 6 months ago

Type: Bug

In the following gif, I have compared {"latex-utilities.zotero.citeMethod": "vscode"} and {"latex-utilities.zotero.citeMethod": "zotero"}.

Recording 2024-02-11 at 16 29 12

As you can notice in the video, there is a discrepancy between the two results. VSCode item picker cannot locate the author whereas the default Zotero BBT cayw picker can do. I was trying to check the "Toggle all checkboxes"in the VSCode picker, but it did not work.

I was wondering if the two results could be made the same regardless of which method was used.

Extension version: 0.4.10 VS Code version: Code - Insiders 1.87.0-insider (8fa84589eef3538dbc763ff98dc7d5a8a0c56374, 2024-02-09T05:47:15.236Z) OS version: Windows_NT x64 10.0.22631 Modes:

System Info |Item|Value| |---|---| |CPUs|11th Gen Intel(R) Core(TM) i5-1145G7 @ 2.60GHz (8 x 2611)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|undefined| |Memory (System)|15.71GB (6.52GB free)| |Process Argv|--crash-reporter-id b05b88e5-8894-4031-ae34-fa034ebddea9| |Screen Reader|yes| |VM|0%|
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vstes627:30244334 vscod805cf:30301675 vsaa593:30376534 py29gd2263:30784851 c4g48928:30535728 a9j8j154:30646983 962ge761:30841072 pythongtdpath:30726887 welcomedialog:30812478 pythonidxpt:30768918 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythontestfixt:30866404 pythonregdiag2:30926734 pyreplss1:30879911 pythonmypyd1:30859725 pythoncet0:30859736 h48ei257:30961340 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 pydisww2:30959801 d34g3935:30961436 edj9j583:30943796 fegfb526:30952798 7j2b6412:30951517 e3gdj431:30946825 ccp2r3:30958153 ```
leoleoasd commented 6 months ago

vscode calls better bibtex's search API while zotero uses cayw API. The search API seems to not support searching authors as you can see from here. This difference is expected and beyond the scope of this extension. If you want to be able to search from authors, I'd suggest you submit a feature request at https://github.com/retorquere/zotero-better-bibtex/.

leoleoasd commented 6 months ago

Oh actually they do support customizing search 🤔 I'll check later