osmeditor4android icon indicating copy to clipboard operation
osmeditor4android copied to clipboard

Add extension when saving files

Open felagund opened this issue 1 year ago • 3 comments

File... > Export changes to OSC file or Save to JOSM file saves files without the appropriate extensions (.osm for JOSM and .osc for OSC). JOSM seems to be unable to read the files without proper extensions, so it would be handy if they were added automatically.

felagund avatar Jun 25 '24 14:06 felagund

The problem is that Android has no way to do that (or else we would have done so from day one) without using a custom filepicker which in turn causes pain because of SAF (and general inconsistent UI).

simonpoole avatar Jun 25 '24 15:06 simonpoole

Oh, I would not have imagined that something like that can be a missing functionallity. Is there a way to somehow hint what the correct extension is? I am bound to forget. Though it is not so hard to rename it later on the computer.

By the way, is my understanding correct that if I want to add to an existing file, I need to download an area first, then load the file, do my changes and then save the file again, right?

felagund avatar Jun 25 '24 17:06 felagund

It might be possible to rename the file after the data has been saved (I need to check that), which has the downside that the user wouldn't see the actual file name in the file picker.

By the way, is my understanding correct that if I want to add to an existing file, I need to download an area first, then load the file, do my changes and then save the file again, right?

Yes.

simonpoole avatar Jun 26 '24 09:06 simonpoole