Modify

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#6857 closed enhancement (fixed)

Right-click->copy value directly from properties dialog

Reported by: hjart Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: Cc:

Description

I very often find myself copying streetnames this way: Selecting a key/value pair in the properties dialog, then opening the edit dialog, selecting the value, pressing ctrl-c then Escape. This helps to avoid introducing unneccesary spelling errors, but when done many times in a single session, it starts to feel quite cumbersome.

So I would very much appreciate if it was possible to just select a key/value pair in the properties dialog, right-click and select "copy value". Thank you.

Attachments (0)

Change History (14)

comment:1 by skyper, 13 years ago

Even better would be if you could select several key/vaulue pairs and copy or delete them.

I often find me deleting several pairs to copy the left ones into buffer, undo the detetion and copy from buffer.

comment:2 by hjart, 13 years ago

As I'm usually copying streetnames from imported address nodes (with addr:street keys) to nearby streets (with name keys), I only want to copy the value, not the key, nor do I want to copy more than exactly this one value.

comment:3 by simon04, 13 years ago

What about separate entries for "Copy Value(s)" and "Copy Key(s) and Value(s)"?

How should a key-value-pair be formatted (= delimited?)?

comment:4 by simon04, 13 years ago

Replying to skyper:

Even better would be if you could select several key/vaulue pairs and copy or delete them.

This requires deeper changes than just copying a single selected tag.

What about separate entries for "Copy Value" and "Copy Key and Value" and "Copy all Keys and Values"?

in reply to:  4 ; comment:5 by hjart, 13 years ago

Replying to simon04:

What about separate entries for "Copy Value" and "Copy Key and Value" and "Copy all Keys and Values"?

That would be very nice. It's allready possible to copy all keys and values via Ctrl-c; Ctrl-Shift-v, so that one should be fairly (I'm not a coder, so I'm only guessing here) simple. I'm sure skyper will be happy though if "Copy Key and Value" becomes "Copy Selected Keys and Values" or just "Copy Selected Tags".

I'm looking forward to at least seeing my original wish come true ;-)

in reply to:  5 ; comment:6 by simon04, 13 years ago

Replying to hjart:

That would be very nice. It's allready possible to copy all keys and values via Ctrl-c; Ctrl-Shift-v, so that one should be fairly (I'm not a coder, so I'm only guessing here) simple.

Please note that [Ctrl]+[C] copies only the id to the system clipboard and handles the insertion of tags via [Ctrl]+[Shift]+[V] internally, whereas your request should only write the value of the selected tag to the system clipboard. Right?

I'm sure skyper will be happy though if "Copy Key and Value" becomes "Copy Selected Keys and Values" or just "Copy Selected Tags".

As mentioned above, selecting multiple tags is currently not implemented, though, could be thought of an enhancement. Here, some questions arise, e.g., what should happen when selecting multiple tags and then performing edit?

in reply to:  6 ; comment:7 by hjart, 13 years ago

Replying to simon04:

Please note that [Ctrl]+[C] copies only the id to the system clipboard and handles the insertion of tags via [Ctrl]+[Shift]+[V] internally, whereas your request should only write the value of the selected tag to the system clipboard. Right?

Ah, I had no idea how it worked. And correct. I only want the value of the selected tag copied to the system clipboard.

I'm sure skyper will be happy though if "Copy Key and Value" becomes "Copy Selected Keys and Values" or just "Copy Selected Tags".

As mentioned above, selecting multiple tags is currently not implemented, though, could be thought of an enhancement. Here, some questions arise, e.g., what should happen when selecting multiple tags and then performing edit?

Yeah, I see. Implementing that is not simple.

in reply to:  7 comment:8 by skyper, 13 years ago

Replying to hjart:

Replying to simon04:

I'm sure skyper will be happy though if "Copy Key and Value" becomes "Copy Selected Keys and Values" or just "Copy Selected Tags".

I am already happy about a developer showing interest and thankful + excited once implemented.
For sure, Copy Value and Copy Key/Value would be a big enhancement.

As mentioned above, selecting multiple tags is currently not implemented, though, could be thought of an enhancement. Here, some questions arise, e.g., what should happen when selecting multiple tags and then performing edit?

I think either a dialog with all selected keys like upper part of the relation editor should open or a seperate window for each key.

Should I open a new ticket on that, as it is not only about properties but could be used for the relations list, aswell.

comment:9 by simon04, 13 years ago

Resolution: fixed
Status: newclosed

In [4454/josm]:

fix #6857 - add copy [[all] key/]value to properties dialog

comment:10 by simon04, 13 years ago

Please open a separate ticket for further enhancements like editing several tags at once.

in reply to:  10 comment:11 by skyper, 13 years ago

Replying to simon04:

Thanks for your work !

Please open a separate ticket for further enhancements like editing several tags at once.

#6883, done.

comment:12 by hjart, 13 years ago

Thank you!

comment:13 by skyper, 13 years ago

Thanks copy value works nice, but how am I supposed to use the other two functions ?
Are they only for txt files/editing ?

I am not able to add a single pair or all key/value to an another objects.

r4465

in reply to:  13 comment:14 by simon04, 13 years ago

Replying to skyper:

Are they only for txt files/editing ?

Yes, they written to the operating system clipboard only, see my previous remark, 6:

Please note that [Ctrl]+[C] copies only the id to the system clipboard and handles the insertion of tags via [Ctrl]+[Shift]+[V] internally, whereas your request should only write the value of the selected tag to the system clipboard. Right?

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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