Modify

Opened 3 years ago

Last modified 13 months ago

#21097 new enhancement

Add intelligent URI paste support

Reported by: gaben Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: URI paste Cc:

Description

When copying information from websites, the email and phone number values often contain Uniform Resource Identifier (URI) scheme prefix.

Examples are:

  • mailto:
  • tel:

(Full list available on the IANA website https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml)

Current procedure

Pasting these values to JOSM involves manually deleting the prefixes and changing tag types.

Ideal procedure

JOSM would recognize the tags and automatically change the tag type according to URI.

Note: there is the increasingly popular contact: prefix which should be considered when adding the tag type.

Attachments (0)

Change History (4)

comment:1 by skyper, 3 years ago

Mmh, often context of webpages are not allowed to add, due to license issues.

comment:2 by gaben, 3 years ago

It's up to the user ¯\_(ツ)_/¯

comment:3 by gaben, 13 months ago

Note to myself: the TextTagParser class has the needed parts.

comment:4 by elgaard, 13 months ago

At least in Firefox you do not have to manually delete the prefixes.

When you right-click such a link there are very handy "copy phone number" and "copy email address" options.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to gaben.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.