sidebery icon indicating copy to clipboard operation
sidebery copied to clipboard

[v5] Generic Undo Last Change Button

Open megamorphg opened this issue 2 years ago • 3 comments

Description

Having a button/action to be able to "undo" the last change to the tree structure (dragging a tab, closing tab, etc.) would be useful.

Currently the system is tracking this for tab closure including mass tab closure (which is recognized as a single action) and prompts with a dialog.

It would be awesome if this feature can be expanded to include all other actions including moving tabs around.

Would not necessarily want a dialog prompt for every tree update (like there is currently for multiple tab closure), but would be great to have a button we could add to the panel and a keybinding.

The use case this would be especially useful in is when I drag a tab around sometimes, it messes up the tree structure, even flattening tabs. This is a hard-to-reproduce issue and may be a bug.

But even outside of this it is definitely useful when I move something in the wrong place and want to move it back.

Also having multiple "levels" of undo would be totally next-level.

megamorphg avatar Jul 21 '23 17:07 megamorphg

I was just looking for this functionality due to the flattening bug you mentioned, where drag-and-drop for some reason flattens unrelated subtrees near where I drop a tab. Would love an undo to mitigate the bug (or just a bugfix).

SeijiSuenaga avatar Jan 09 '24 07:01 SeijiSuenaga

Hi guys,

Is there any news on this undo function? I'm asking, because I am also running into this "flattened tree bug", and it seems more frequently lately. It is kind of driving me crazy 😥

It usually happens when I try to drag a tab with a sub-tree (meaning, there is one parent tab with any number of children)

  • I start to drag the parent tab, so as to move the whole structure to another location in the tree
  • OR I accidentally slightly grab and move the parent tab
  • Somehow it sometimes then stops the mouse drag action for no apparent reason: I did NOT release the mouse button
  • The entire tree (meaning: everything on the same level and below the dragged parent tab) is than FLATTENED entirely...
  • All the tabs are now on the same level, but in the order they were in when they were still in separate trees

Anyway, as the original poster also stated, I am entirely unable to intentionally reproduce it, unfortunately.

I hope the undo function will become available. It would be a HUGE time saver. Or a solution to the "flattened tree bug" issue, of course. That would also be really great 😊 But that'll be a tough one, probably.

JohnVKRDam avatar May 09 '24 12:05 JohnVKRDam