View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0001733||OpenMPT||Feature Request||public||2023-10-25 15:04||2023-10-25 21:10|
|Product Version||OpenMPT 1.31.04.00 / libopenmpt 0.7.3 (current stable)|
|Summary||0001733: Center row to undo/redo toggle|
It would be nice to, under the miscellaneous options under OpenMPT's setup, include a toggle for centering the cursor to the position of an undone/redone edit. I frequently lose track of exactly where I entered what I'm undoing/redoing so this would be immensely helpful.
|Tags||No tags attached.|
|Has the bug occurred in previous versions?|
|Tested code revision (in case you know it)|
Definitely a good idea, not sure if we'd even need an option for it. It's how undo/redo works almost anywhere, after all.
The biggest question I see here is actions that span multiple cells. For example you make a 10x10 selection and delete its contents, then undo that. Just pointing the cursor to the upper-right corner of the selection would be weird, because maybe that deletion only removed a single note in the center of the selection. Should the whole selection be restored, not just the cursor? (practically cursor and selection are the same thing in OpenMPT, so it's not a question of technical feasibility.)
The only problem I see is some people won't like it due to jumping cancelling selections. I believe a toggle would be the best way to implement it considering how long it's been this way. Alternatively, the feature could have a toggle that determines if, when a selection is active, whether undoing or redoing moves the cursor or not.
To answer your question, though, other software usually reselects the affected portion so I do believe that's most intuitive.
Okay, one technical detail that would be quite relevant to this feature that is missing is that the undo buffer keeps no record of individual columns within a pattern cell; i.e. it doesn't know