Modify

Opened 12 years ago

Closed 12 years ago

Last modified 7 years ago

#8437 closed enhancement (wontfix)

Option to replace a word

Reported by: naoliv Owned by: naoliv
Priority: minor Milestone:
Component: Core Version:
Keywords: Cc:

Description

I did search the open bugs and couldn't find something related with this (so sorry if it's duplicated).

Is it possible to have a find and replace option in JOSM, please?
For example, if we have a typo in the same word spread across a lot of relations, tags and etc, a find and replace all could fix this issue (instead needing to search, select and fix one by one).

Or there is some kind of problem in having this feature that I am not aware of?

Attachments (0)

Change History (11)

comment:1 by stoecker, 12 years ago

Owner: changed from team to naoliv
Status: newneedinfo

You can search for a certain tag e.g. "highway=secndary" or "hgway=secondary", select the properties list and enter the correct one. Then all instances are changed. It is not possible to do so for mixed tags or partial texts. Or do you mean something else?

comment:2 by naoliv, 12 years ago

For example, I have some boundaries with the name starting with a wrong word (but the rest of the names is all different).

Something like:
name=Wrng something
name=Wrng anotherthing
name=Wrng otherthing

It's not possible to fix only this first word on all the boundaries.
Or if the word is in different positions of the tag, or in different tags.

comment:3 by stoecker, 12 years ago

Resolution: fixed
Status: needinfoclosed

No. But there is a workaround when you need that often:

  • You can search all these objects (or select all objects).
  • Add an new useless tag to them like mydummytest=1
  • Save the file.
  • Open file in normal text editor
  • Change the texts you want to fix
  • Save file
  • Open file again in josm
  • Remove dummy text key again
  • Call "Update Modified" from first menu (if all objects selected in first step, this is essential!)
  • Upload (check that uploaded objects are really only these you want changed!).

I'll close this as wontfix, as the requirement is very special.

comment:4 by stoecker, 12 years ago

Resolution: fixedwontfix

comment:5 by naoliv, 12 years ago

But it's an enhancement request (and valid, I think). Why can't it stay open?
I don't think that I am the only one who needs to find and replace a lot of typos. It could also have other usages, like replacing abbreviated words, miscapitalized, etc.

comment:6 by stoecker, 12 years ago

Well, also enhancement requests are closed. The work involved to do what you want is a lot compared to the benefits.

comment:7 by skyper, 12 years ago

Could work with the scripting plugin

comment:8 by akks, 12 years ago

CommandLine plugin can also help, it contain regular expression replacement.

One of the main reasons we are not going to add this into core is that possibilty of easy mass-replacing leads to edit wars :)

The requeust itself is OK, nothing personal.
Feel free to suggest more enchancements, they may be implemented.

in reply to:  8 comment:11 by naoliv, 12 years ago

Replying to akks:

One of the main reasons we are not going to add this into core is that possibilty of easy mass-replacing leads to edit wars :)

But every tool/feature can be used maliciously or with good intentions :-)

comment:12 by akks, 12 years ago

Of course :-) So we allow everyone to write the plugins that support this functionalty :)
(see regexp command in CommandLine plugin, to install plugin with commands fast use script https://dl.dropbox.com/u/63393258/CommandLineInstall.xml open with F12-Advanced-Import from file)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain naoliv.
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.