Skip to main content

Search and Top Navigation

#5729 closed enhancement (wontfix)

Opened June 15, 2010 06:44PM UTC

Closed June 15, 2010 07:39PM UTC

Last modified October 11, 2012 09:15PM UTC

Separator support for jquery.ui.autocomplete / complete only part of input

Reported by: blueyed Owned by:
Priority: minor Milestone:
Component: ui.autocomplete Version: 1.8.2
Keywords: Cc:
Blocked by: Blocking:

The auto-completer is not very useful for tag completion currently: it will autocomplete the whole field and does not know anything about a separator, like ",".

I've added support for this and think that /\\s*,\\s*/ would be a good default for this (that is "," surrounded by any white space).

This would be even more useful, if it could complete parts which are not at the end of the input, e.g. "f_ , bar" would complete "foo" at the cursor position "_".

For this to work however, we would need to get the current cursor position and there appears to be nothing useful in jQuery or jQuery UI core already (I've found e.g.

This could be added later quite easily, by not only remembering the current prefix, but also a suffix (and massaging the value according to the current cursor position).

Attachments (0)
Change History (4)

Changed June 15, 2010 06:54PM UTC by blueyed comment:2

Oh well, I've just seen - where it's possible to get a similar behaviour via different callbacks.

I still think that a simple option to get this behaviour would be handy though.

Changed June 15, 2010 07:39PM UTC by scottgonzalez comment:3

resolution: → wontfix
status: newclosed

We don't plan on building multiple support into autocomplete. There will be a separate plugin that builds on top of autocomplete to provide this functionality. Feel free to contribute ideas, specs, etc. on the list builder wiki page.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:4

milestone: TBD

Milestone TBD deleted