support massive cut/paste ops

This commit is contained in:
ed 2021-09-01 22:27:39 +02:00
parent 1b14eb7959
commit 5e34463c77

View file

@ -2089,9 +2089,18 @@ var fileman = (function () {
clmod(els[a], 'fcut', 1); clmod(els[a], 'fcut', 1);
}, 1); }, 1);
toast.inf(1.5, 'cut ' + sel.length + ' items'); try {
jwrite('fman_clip', vps); vps = JSON.stringify(vps);
r.tx(1); if (vps.length > 1024 * 1024)
throw 'a';
swrite('fman_clip', vps);
r.tx(1);
toast.inf(1.5, 'cut ' + sel.length + ' items');
}
catch (ex) {
toast.warn(30, 'cut ' + sel.length + ' items\n\nbut: only <b>this</b> browser-tab can paste them\n(since the selection is so absolutely massive)');
}
}; };
r.paste = function (e) { r.paste = function (e) {