Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key and value tagging autocomplete woes #2376

Closed
skylerbunny opened this issue Oct 1, 2014 · 6 comments
Closed

Key and value tagging autocomplete woes #2376

skylerbunny opened this issue Oct 1, 2014 · 6 comments
Labels
usability An issue with ease-of-use or design

Comments

@skylerbunny
Copy link

Autocompletion in iD has a tendency at times to create tags and values a user probably didn't intend. Here's how to reproduce the issue:

  1. Select a way in iD.
  2. Click on the '+' to add a new tag.
  3. Type the letters 'r' 'e', or even 'r' 'e' 'f', intending to create a new 'ref' tag.
  4. iD will autocomplete the tag, with no user intervention, to ref:bag. I figured out with http://taginfo.openstreetmap.org/search?q=ref and based on the order in which results are provided for the autocomplete, that it's using 'the most times this tag is used' as the first autocomplete hit.

The problem with this is, that it's very easy to, if in a hurry, type 'ref' to manually add a tag, and tab to the next field, and not to realize that the tool has autocompleted to ref:bag. This is a tag that has no meaning outside the Netherlands, and yet, if you consult http://taginfo.openstreetmap.org/keys/ref%3Abag#map , you can see that it accidentally gets populated in this way. There are probably other tags, values, and variations for which this also happens.

(1) If the current behavior for autocomplete is going to be kept, then when autocompleting a potential tag's key or value, the first hit - that is, the one forcefully autocompleted to - should always be 'the shortest logical tag the user may be trying to use in the autocomplete list'. IMHO 're' or obviously 'ref' really ought to produce the autocomplete 'ref' first, not 'ref:bag'.

(2) Having said this, it would be better still if autocomplete required a positive action on the part of the user, like a 'down arrow' to select the first or other entry in the list, to autocomplete it to the first suggested item.

This feature can really be difficult to work with if I'm trying to put in, say 'hov:lanes' values by pasting them from my clipboard (because I know exactly what I want it to be, like 'designated|' or 'designated|yes', and the tool autocompletes to a much longer string that is not intended, meaning the paste is a two step process (paste then delete extra).

Thanks for reading!

@bhousel
Copy link
Member

bhousel commented Oct 5, 2014

I've seen this before, but I think it may be because of Safari's overagressive autofill/autocomplete.
It is pretty annoying having Aeroways turn into Rest Areas.

Some discussions here:
http://stackoverflow.com/questions/22817801/how-to-disable-auto-fill-in-safari-7

I did try to fix this a few months ago, but nothing was working.

@bhousel bhousel added the bug-browser-specific A bug that only appears in certain browsers label Oct 5, 2014
@skylerbunny
Copy link
Author

Good point made, and having said so, I wanted to try this possibility out. So I tried Firefox, with all information cleared out and autofill fills cleared...here's the result I got with my first attempt at 'ref' once iD populated its autocomplete.

autocomplete

As you can see, it's completing out, and it can't have got this information from autofill on my browser, because it was empty.

Hope this helps!

@jfirebaugh
Copy link
Member

ref:bag is autocompleted simply because it is the most common key starting with ref. It's obvious to a human that ref is more useful, but that's because we have a lot of fuzzy background knowledge about the specific meanings and geographic usage of these tags. Autocomplete has to work across any and all tags, based on actual data that exists somewhere. Given those constraints I'm not sure what criteria iD could use to determine "shortest logical tag" other than "most commonly used".

I don't think I agree with your suggestion of requiring a positive action to accept autocomplete. You've highlighted a couple cases where autocompletion generates non-ideal behavior, but in many cases it works well, and requiring a positive action would penalize those cases.

One change I think would be helpful is to suppress autocompletion on paste.

@jfirebaugh jfirebaugh added usability An issue with ease-of-use or design and removed bug-browser-specific A bug that only appears in certain browsers labels Oct 6, 2014
@nighto
Copy link

nighto commented Oct 9, 2014

For me it always autocomplete do ref:ruian:addr, which is obviously not wanted. So everytime I want to enter a ref tag, I have to remember to press BackSpace after entering the three letters.

@nighto
Copy link

nighto commented Jan 3, 2015

Any progress on this issue? I don't want to just rant - and I know that patches are welcome - but since I'm mapping a lot of points with ref tags, this is driving me crazy. Perhaps manually overriding specifically for the ref tag?

Sometimes even if I press backspace to remove the :ruian:addr bit, when I press TAB it autocompletes wrongly again. It is very annoying.

Thanks a lot.

@bhousel
Copy link
Member

bhousel commented Dec 20, 2015

Although in an ideal world people would clean up bad data, I'm closing this issue simply by sorting namespaced keys (i.e. keys containing ':') below non-namespaced keys.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
usability An issue with ease-of-use or design
Projects
None yet
Development

No branches or pull requests

4 participants