News for hackers. Stuff that matters.
Re:Bye Bye Microsoft Office, Hello LibreOffice by tzs on Monday November 25, 2019 @03:20PM (#21632342)
Every spreadsheet I've used has managed to annoy me, but LibreOffice and Apple's Numbers both manage to do it even with simple spreadsheets with simple (or even no) calculations. Excel at least waits until I'm doing something slightly complicated before irritating me.

Example: create four rows of four cells each, like this:

  1  2  3  4
  2  4  6  8
  3  6  9 12
  4  8 12 16
Select rows 1 and 3 (but not 2), copy, and paste just below row 4.

In Excel, that pastes a copy of row 1 at row 5, and a copy of row 2 at row 6.

In Numbers, row 1 is copied to 5, and row 3 is copied to 7.

In LibreOffice, row 1 is copied to 5, and row 3 is not copied.

So we have three ways to handle copy/paste of a non-contiguous selection: make it contiguous on paste (Excel), past non-contiguously (Numbers), and just copy the topmost row (it's topmost, not first row selected--if you select row 3, then non-contiguously add row 1, it is row 1 that copy grabs) (LibreOffice).

I'm not sure which of these is actually the most right from a theoretical perspective, but I bet Excel is the one most likely to be based on data about which method best matches what users actually do with the spreadsheets.

Joel Spolsky has an article [1] where he talks about what they found when he was on the Excel team at Microsoft and they actually started visiting customers to see how they used Excel. A couple quotes:

> Over the next two weeks we visited dozens of Excel customers, and did not see anyone using Excel to actually perform what you would call “calculations.” Almost all of them were using Excel because it was a convenient way to create a table.

and

> What was I talking about? Oh yeah… most people just used Excel to make lists. Suddenly we understood why Lotus Improv, which was this fancy futuristic spreadsheet that was going to make Excel obsolete, had failed completely: because it was great at calculations, but terrible at creating tables, and everyone was using Excel for tables, not calculations.

Looking at my own spreadsheets...I find that most of them are indeed really just lists or tables with maybe a little calculation. The few that I would say are actually heavily calculation oriented would probably do just as well in LibreOffice or Numbers.

[1] https://www.joelonsoftware.com/2012/01/06/how-trello-is-diff...

Re:Bye Bye Microsoft Office, Hello LibreOffice by CmdrKrool on Monday November 25, 2019 @04:28PM (#21633005)
I've just tried that row copying activity myself in LibreOffice, and it's behaving the same as you describe for Excel - row 1 copied to 5, row 3 copied to 6.

I selected the rows by clicking the row numbers (while holding Ctrl for the second one), and the version is 6.3.3.2.0, FWIW (I'm on Arch Linux so I suppose this is right up to date).

Re:Bye Bye Microsoft Office, Hello LibreOffice by tzs on Monday November 25, 2019 @04:46PM (#21633163)
I've got 6.3.3.2 on a Mac.

I was selecting by just selecting the four columns in row 1 by clicking and holding on 1 while dragging to 4 and releasing, then doing the same thing with row 3 while holding the command key down which is how you do non-contiguous selection on Mac, then clicking on column 1 of row 5, and doing paste.

I just tried it with clicking the row number, to do whole row selection. So click the number for row 1, then command-click the number for row 3. Then I clicked the first cell in row 5 and hit paste. Same result as I got before...just row 1 copies.

I also tried it where I clicked the row number for 5, to select the whole row, before pasting, and no difference.

Good to see that it is working better on Linux. That probably suggests this is just a bug in their Mac port rather than intentional behavior.

Re:Bye Bye Microsoft Office, Hello LibreOffice by CmdrKrool on Monday November 25, 2019 @05:17PM (#21633407)
Yeah, if I select the cells in the way you just described then I get both the rows copied, again. It does sound like something in the Mac port. Certainly I would find that an annoying behaviour if I saw it.

Tangentially, and perhaps weirdly, if the ranges I select don't span the same columns - eg. if I select A1:B1 and C3:D3, a dialog box pops up upon Copy which says "This function cannot be used with multiple selections". Even though the ranges are still the same size. That seems undesirable, to me.

Re:Bye Bye Microsoft Office, Hello LibreOffice by chopin on Monday November 25, 2019 @04:56PM (#21633238)
Works as well in version 5.1.6.2 on Linux Mint.