AY2425S1-CS2103T-F12-1 / tp

MIT License
0 stars 5 forks source link

Implement undo and redo #158

Open lithops-zty opened 3 hours ago

lithops-zty commented 3 hours ago

UI:

Backend:

weiseng18 commented 2 hours ago

Proposed idea:

User should type in undo and press <Enter> to execute UndoCommand. Assumption for the first 2 section is that we only implement undo. The 3rd section explains how we implement redo, after implementing undo

UI

Backend:

This is not explicitly discussed yet, but I think we should go with option 1 since it is a universal method which is easier to implement.

image

Future redo support:

weiseng18 commented 2 hours ago

Other points of discussion:

  1. Are we ok that the "command history" on the right only shows commands that modify the list?
  2. This approach means that undo/redo will refer to only the modifying commands as the history timeline.
  3. How to display undo