Undo, Redo 기능 추가

This commit is contained in:
2026-05-15 22:24:25 +09:00
parent 31ecf94142
commit a1df424485
4 changed files with 96 additions and 2 deletions
+2
View File
@@ -266,6 +266,7 @@ function _moveSingle(srcIdx, targetIdx) {
Array.from(_grid.children).forEach((c, i) => { c.dataset.idx = i; });
_cb.updateNumberBadges();
_cb.updateNewNameLabels();
_cb.pushHistory?.([moved.path]);
}
function _moveMulti(targetIdx) {
@@ -301,6 +302,7 @@ function _moveMulti(targetIdx) {
_cb.updateNewNameLabels();
_cb.refreshCardSelection();
_cb.updateSelCount();
_cb.pushHistory?.(movedFiles.map(f => f.path));
}
// ── 자동 스크롤 ───────────────────────────────────