mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-10 20:41:59 +00:00
798c9a7d8b
This is an attempt to fix #5013 by doing two things: 1. Rank "obvious" matches in completions higher (see the code comment) 2. When tied: rank keywords higher than variables Release Notes: - Improved sorting of completion results to prefer literal matches. ([#5013](https://github.com/zed-industries/zed/issues/5013)). ### Before ![screenshot-2024-02-13-13 08 13@2x](https://github.com/zed-industries/zed/assets/1185253/77decb0b-5b47-45de-ab69-f7b333072b45) ![screenshot-2024-02-13-13 10 42@2x](https://github.com/zed-industries/zed/assets/1185253/ae33d0fe-06f5-4fc1-84f8-ddf6dbe80ba5) ### After ![screenshot-2024-02-13-13 06 22@2x](https://github.com/zed-industries/zed/assets/1185253/3c526bab-6392-4eeb-a2f2-dd73ccf228e8) ![screenshot-2024-02-13-13 06 50@2x](https://github.com/zed-industries/zed/assets/1185253/b5b9d513-766d-4a53-94de-b46271f5978c) Co-authored-by: Antonio <antonio@zed.dev> Co-authored-by: bennetbo <bennetbo@gmx.de> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |