Meteor-Community-Packages/meteor-autocomplete

Optionally sort first matches starting with the query string

開放

#43 建立於 2014年5月13日

 (9 則留言) (0 個反應) (0 位負責人)CoffeeScript (106 個分叉)auto 404
enhancementgood first issue

倉庫指標

星標
 (350 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

Generally, users start typing the beginning of a word or a string. For instance, at the demo page, if I type AS, I'm more likely to be looking for ASBESTOS, rather than ACID WASTE (the example is in stark contrast to the nice fruity one on the left, but that's a different issue ;)

This "preferential matching" is mentioned briefly in the README, but it requires client side support besides a custom publish function. My initial commit implemented it on both sides, and with the added wisdom since, I can submit a patch to bring that option back in a simpler way.

As a further enhancement, records containing the query string starting from a word boundary could be prioritized between those that start with the query string, and the rest (e.g. D should prefer boiler blow Down to aciD vent.

貢獻者指南