Paste range feature #763
Replies: 2 comments 7 replies
-
Batch would create a single Undo step, but Clipboard does not work with batching. So no, for multiple hyperformula/src/HyperFormula.ts Lines 2395 to 2417 in 71677a4 A sample implementation could look like: onPaste(source: SimpleCellRange, target: SimpleCellRange) {
if (hf.isItPossibleToSetCellContents(target)) {
const data = hf.getFillRangeData(source, target)
hf.setCellContents(target.start, data)
}
} |
Beta Was this translation helpful? Give feedback.
-
I just ran into an issue with this @wojciechczerniak: The docs say this: So it does not work across different sheets unfortunately which basically means our copy/paste doesn't work across multiple sheets. Is this just a current limitation with plans to allow it cross-sheets or is it not possible? |
Beta Was this translation helpful? Give feedback.
-
Hi, sorry to post on this discussion board so much, but I think it's worth raising because currently I have no way around this issue. It's probably because I'm using every single feature of hyperformula..
So currently my spreadsheet has a paste range feature like Google Sheets & Excel.
One example of how it works is like this:
The one cell is duplicated into the selected cells.
Here's a gif showing you what I mean from GSheets:
This is currently not possible in Hyperformula.
Here's the issue in my sheet which uses hyperformula:
The only way to do it is to loop through the destination cells and use
hyperformula.paste(cellAddress)
one by one.However this messes up the internal history, so when I do CTRL + Z (Undo) it only undos the pastes individually, one by one.
What should happen is that it should undo the entire range all at once.
So a paste range feature would solve this or a way for me to turn off and on the internal history of hyperformula so that I can implement the paste range for my styles and cells correctly and just make hyperformula undo remove it all at once.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions