If I type in a phrase that I know will only return one search result, I should be able to press enter and go right to that page without having to wait for the autocomplete to pop up with the full path. This would be similar to Google's I'm Feeling Lucky feature.

If I press enter without waiting for the autocomplete, and it turns out there's more than one possibility, it should show me a page with all the Teleport candidates at the top, but also plug the query into the normal Drupal search and display those results below.

(I'm taking a page from jjeff and documenting some to-do items here so folks know where I'd like to take this thing. This particular item would boost my productivity by like 500%, so it's at the top of the queue.)

Comments

jjeff’s picture

The trick here is to change the way that Drupal autocomplete works so that the first item is always selected. This is how Quicksilver (et al) work. The other trick part is that the return/enter key should submit the form, NOT simply make the autocomplete list go away. This is something that always really bothered me about the autocomplete on api.drupal.org....

incidentist’s picture

That's part of it, but I do my dev work on an old G4 and the autocomplete request takes 3 or 4 seconds, even if I type in something like "Teleport" that only returns one candidate. Why should I wait around for it if I there's only one possibility?

The trick here is to change the way that Drupal autocomplete works so that the first item is always selected.

This is a little tricky. The way QS does it, the element that shows what you've typed is separate from the element that shows the selected item. Gotta have that, because otherwise if I'm looking for a node by typing in the title, and it automatically selects the top item, it'll replace whatever I was typing with "node/XX". As you say, we gotta ditch/subclass autocomplete.

The other trick part is that the return/enter key should submit the form, NOT simply make the autocomplete list go away.

Absolutely.

incidentist’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.