Undo, Redo 기능 추가
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
// ── 자동 스크롤 ───────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user