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 )
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)
Change History (10)
follow-up: 8 comment:1 by , 15 years ago
Keywords: | google summer of code added |
---|---|
Summary: | posibility to repeat the last action → posibility to repeat the last action (macro recording) |
follow-up: 9 comment:2 by , 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 , 14 years ago
Summary: | posibility to repeat the last action (macro recording) → possibility to repeat the last action (macro recording) |
---|
comment:4 by , 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 , 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 , 11 years ago
Summary: | possibility to repeat the last action (macro recording) → [α Patch] possibility to repeat the last action (macro recording) |
---|
by , 11 years ago
Attachment: | 5097v1.patch added |
---|
comment:7 by , 8 years ago
Cc: | added |
---|
comment:8 by , 8 years ago
Replying to stoecker:
This is not that easy.
- 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.
- Then, what is left is relation-based operations (are very complex to get right due to links/parent relations) or...
- 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
comment:9 by , 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:
- save them in a script file, name this file
- send these commands over communication channels, so that others can adapt them
IMO plug-in specific commands should be prefixed with a plug-in name (more likely) and possibly with 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.
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).