-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Allow users to paste several "k=v" tag pairs into the raw tag editor #6185
Comments
Sorry, but I disagree with repurposing the "Add Field" dropdown for this. If you are copy pasting tags like this, you should probably just hide the "All fields" section completely and use the "All tags" section.
Yeah this makes sense.. Currently it only supports pasting a single key-value pair, but we could allow people to paste several. |
Well, I use both. But I see now that the "Add field" box really belongs to the fields section.
+1 |
I totally understand.. iD has to balance a lot of design concerns and we value simplicity over mapper efficiency and speed, so you might want to use a different tool like JOSM in the mean time. I do want to make pasting tags work great, but this really is a niche need (most users don't and shouldn't care about what the tags are), so I don't want to just add a textbox for people to paste tags into and close the issue. This actually is a very good idea and we might build something like that, but make it spark joy, you know? |
This sounds a lot like what I tried to commented/request at #5070 (comment). Maybe this new issue will nudge @AndreasHae to have another look at it :-). |
Ah, so that's what you meant @tordans. Wasn't quite sure back then 😅 |
@AndreasHae thanks for working on this! Since it is merged recently, I tested it at http://preview.ideditor.com/master/#background=Berlin-2018&disable_features=boundaries&locale=en&map=20.00/52.49902/13.39265 Some cases work great, some have issues yet. Testcase: (the one from above) Testcase:
Result: Same Testcase:
Result: Testcase:
Testcase:
Source: https://wiki.openstreetmap.org/wiki/DE:Conditional_restrictions Testcase:
|
I'm working on this today. I think I can make the raw tag editor toggle between text and list modes, so that people who who want to copy and paste things can just use the text mode to do it. |
Also, kind of amusing, but the code from #6211 which accepts pasted |
(Reverts: #6211, #5070, #5024) The old code allows users to circumvent the readonly tag protection see #6185 (comment) We'll offer a text-mode instead, with stricter checks on which keys can be modified.
It would be nice if we could use the "Add field" textbox to add new tags, e.g. by pasting
roof:levels=1
into it.Currently one has to scroll all the way down to the end of the current tags list, hit + and then paste - this is cumbersome.
Furthermore it would be awesome, if we could enter several tags at once this way, e.g. by pasting:
roof:levels=1 roof:shape=gabled
.The text was updated successfully, but these errors were encountered: