TableTool icon indicating copy to clipboard operation
TableTool copied to clipboard

Fit-to-size all columns

Open weshooper opened this issue 7 years ago • 4 comments

Currently we can double click in between columns and it will fit-to-size. It'd be wonderful if, when doing this with multiple columns selected, they all magically resized as appropriate.

weshooper avatar Feb 07 '18 16:02 weshooper

Can you please confirm if Excel, LibreOffice, Numbers does it this way. Or do they do something different?

fulldecent avatar Apr 08 '18 20:04 fulldecent

@fulldecent I don't have access to Excel or LibreOffice, but here are a few screenshots - after doing that I think the experience in Numbers makes most sense...

Table Tool

Opens with all columns identically sized:

table-tool-as-opened

There's no way to resize all columns to fit at the same time. Double-clicking each individual heading resizes the column to the width of maximum data, but headings are obscured:

table-tool-double-clicked-headings-resized

Google Docs

Opens with all columns identically sized:

gdocs-as-opened gdocs-select-columns

Selecting all columns and choosing to resize, does headings and data:

gdocs-resize-columns gdocs-columns-resized

Numbers

Opens with all columns (headings and data) sized to fit:

numbers-as-opened

weshooper avatar Apr 15 '18 11:04 weshooper

Presently, Table Tool does not allow you to select individual columns. When using the click-drag gesture, a column is selected and then moved to reorder.

Would you please recommend specifically how the resize multiple columns feature might be implemented?

fulldecent avatar Apr 16 '18 00:04 fulldecent

@fulldecent Thanks for getting back to me! Sure, here's a GIF of how Numbers does it:

  1. Opens with all columns (headings and data) sized to fit
  2. (To simulate how TableTool opens, I've manually resized each column to approx. the same width in the GIF)
  3. Multiple columns can be selected with cmd+click
  4. Selected columns can be resized to fit either via a right-click menu, or double-clicking between columns

kapture 2018-05-11 at 17 08 10

The aim here is to make it easier for the user to quickly see all data in a CSV via auto-sizing - two issues currently prevent this:

  • data in columns is hidden when the fixed/default column width is too narrow for the data within
  • data in files (having many columns) may be horizontally scrolled off the screen, because the fixed/default column width is too wide for the data within (so horizontal screen space is wasted)

I think there are three alternative implementations for the feature:

  1. Auto-resize all columns to fit when opening a file (my preference, it just works)
  2. An 'Auto-resize' button on the toolbar (avoids changing the current open-file behaviour, though adds UI clutter)
  3. The ability to select multiple columns, with double-click and/or right-click menu option to auto-resize (less discoverable for the user, and sounds like more work to implement!)

weshooper avatar May 11 '18 16:05 weshooper