Modify

Opened 15 years ago

Last modified 8 years ago

#5097 new enhancement

[α Patch] possibility to repeat the last action (macro recording)

Reported by: skyper Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: repeat action google summer of code Cc: openstreetmap.org-user-d1g

Description (last modified by simon04)

Hi

Nice work you doing - Thanks.
Even if I repeat myself, I mean it and think there are not enough compliments and recognitions about work that is done, especially when it is voluntarily.

I often find myself doing actions over and over again.

It would be nice if JOSM would provide a possibility to repeat these actions.

Maybe it is possible to have even a number of actions repeated.

Thanks

skyper

Attachments (1)

5097v1.patch (14.0 KB ) - added by simon04 11 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 by stoecker, 15 years ago

Keywords: google summer of code added
Summary: posibility to repeat the last actionposibility to repeat the last action (macro recording)

What you describe is actually a form of "macro" (i.e. a macro recorder and playback). Even if for you it means "repeat a action" for the program usually this means repeat action, but with different variables. This is not that easy.

This sounds like a good idea for Google Summer of code (not for this year anymore).

comment:2 by fsteggink, 14 years ago

I second this change request. I'd like to see macro commands for at least search and validation. The reason is that I'm busy importing landuse data in the Netherlands, and have to do lots of repeated actions. It should also be possible to save macros in the config file, and assign them to toolbar buttons.

comment:3 by skyper, 14 years ago

Summary: posibility to repeat the last action (macro recording)possibility to repeat the last action (macro recording)

comment:4 by anonymous, 14 years ago

Why not just map this action to a single letter hotkey? I remapped copy and the Ctrl-Shift-V (insert only tags) to a single letter, as I hate these unintuitive windows copy/paste keys and want to fast repeat my tags and also have to press only one instead of two keys, if you not want to use mass edit after selecting the objects.

comment:5 by simon04, 11 years ago

Description: modified (diff)

attachment:5097v1.patch adds a vim-like feature: [Ctrl]+[Alt]+[.] repeats the last command if it an instance of RepeatableCommand. Exemplified for ChangePropertyCommand and SequenceCommand.

comment:6 by simon04, 11 years ago

Summary: possibility to repeat the last action (macro recording)[α Patch] possibility to repeat the last action (macro recording)

by simon04, 11 years ago

Attachment: 5097v1.patch added

comment:7 by openstreetmap.org-user-d1g, 8 years ago

Cc: openstreetmap.org-user-d1g added

in reply to:  1 comment:8 by openstreetmap.org-user-d1g, 8 years ago

Replying to stoecker:

This is not that easy.

  1. 2D/3D geometry construction is complex, but in many extrude-like operations it can be applied to multiple objects at once

https://www.youtube.com/watch?v=eSd7KcZI5_w#t=2m08s - note how push/pull tool was applied to 2 objects

It makes no sense to repeat geometry tools, many of them should work on multiple geometries naturally (similar to CAD).

What about multiple-geometry extrusion in JOSM? I don't think it is possible now.

  1. Then, what is left is relation-based operations (are very complex to get right due to links/parent relations) or...
  1. Tag editing

Yes, we can automate tag editing to come degree. But I prefer to export tags to Calc/Excel and to edit tags here, they are used in schools, anyone can use them and script them with a good manual.

There many editors much less complex than vi/vim Visual mode.

We can get data back to JOSM thanks to https://josm.openstreetmap.de/wiki/Help/Action/PasteTags#Textformats

in reply to:  2 comment:9 by openstreetmap.org-user-d1g, 8 years ago

Replying to fsteggink:

I second this change request. I'd like to see macro commands for at least search and validation. The reason is that I'm busy importing landuse data in the Netherlands, and have to do lots of repeated actions. It should also be possible to save macros in the config file, and assign them to toolbar buttons.

If you serialize all actions and their crucial parameters as text, you could select only commands you need to re-execute:

  1. save them in a script file, name this file
  2. send these commands over communication channels, so that others can adapt them

IMO plug-in specific commands should be prefixed with plug-in name (more likely) and possibly version (less likely, only if plug-in is frequently updated). Reason is that "action" in the script will be "outdated", you never want to update scripts manually as user.

Version 2, edited 8 years ago by openstreetmap.org-user-d1g (previous) (next) (diff)

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 skyper.
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.