iamhyc / Overleaf-Workshop

Open Overleaf/ShareLaTex projects in vscode, with full collaboration support.
https://marketplace.visualstudio.com/items?itemName=iamhyc.overleaf-workshop
GNU Affero General Public License v3.0
469 stars 10 forks source link

[Feature Request] Citation intellisense with better matching for middle words #190

Open wzunknown opened 9 hours ago

wzunknown commented 9 hours ago

Disclaimer

Please make sure all the items below is checked (i.e., prefixed with "- [x]")

  • [x] The request feature has not been addressed in the feature request list.
  • [x] The design of the feature does not require detailed discussion, or existing discussion with drawn conclusion can be found in Discussions Area at: [paste the link here]

Motivation

Please give strong enough reason(s) why the feature is demanded.

The matching logic is different from overleaf website.

Feature Description

A clear and concise description of what you want to happen under what circumstance.

Current citation autocompletion matches the item starting from the first character. For example, I have an item with key ullah2024llms, I cannot match it with llms but only with u....

[Optional] Additional context

Please strike out any inappropriate items below. If you are not aware of the difference, please ignore this section.

  • Applicable Overleaf Edition: Official / Community / Enterprise (Server Pro)
  • Applicable Extension Range: Desktop Extension / Web Extension
iamhyc commented 2 hours ago

Hi @wzunknown , thanks for the suggestion. We now provide a manually fuzzy match to provide the feature. Please check the temporary extension built here: https://github.com/iamhyc/Overleaf-Workshop/actions/runs/11103394949?pr=191

@QianrenLi Please help take care of the following up problems. I think the other completion items may also suffer from the same problem. The match is only a simple prefix matching w.r.t. the label for provided completion items.