Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fit-to-size all columns #50

Open
weshooper opened this issue Feb 7, 2018 · 4 comments
Open

Fit-to-size all columns #50

weshooper opened this issue Feb 7, 2018 · 4 comments
Labels
enhancement New feature that might be in scope for this project help wanted If you PR, we will merge :-)

Comments

@weshooper
Copy link

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.

@fulldecent
Copy link
Collaborator

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

@weshooper
Copy link
Author

weshooper commented Apr 15, 2018

@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

@fulldecent
Copy link
Collaborator

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?

@weshooper
Copy link
Author

weshooper commented May 11, 2018

@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!)

@fulldecent fulldecent added enhancement New feature that might be in scope for this project help wanted If you PR, we will merge :-) labels Nov 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature that might be in scope for this project help wanted If you PR, we will merge :-)
Projects
None yet
Development

No branches or pull requests

2 participants