janisdd / vscode-edit-csv

vs code extension to edit csv files with an excel like table ui
MIT License
211 stars 30 forks source link

add feature resize columns and rows. #111

Closed devinschumacher closed 1 year ago

devinschumacher commented 1 year ago

Version?

Feature

add feature resize columns and rows. my spreadsheets have long values. the columns are enormous. how is there now right click > resize??

janisdd commented 1 year ago

Not sure what you mean... like in excel, you can resize the columns by clicking and dragging between the column borders?

devinschumacher commented 1 year ago

yes click and drag is the only way, by my columns are so wide that it takes multiple times doing that before it all is in screen. can you add a right click + enter value that will work?

here is an example of the pain, @janisdd :)

https://www.loom.com/share/89452bf6f4f749d8b48b62782305b187

janisdd commented 1 year ago

Ah yes, have seen time sometimes... specifying a width via the context menu seems a good idea. However, I'm wondering how the ui should look like.

Actually, there is a feature that already fixes this... the setting doubleClickColumnHandleForcedWith. When you double click on the handle it shrinks the column to the configured size (default 200px) (if the current size is the auto size). But I link a ui option would also be good. Maybe we can use the value from doubleClickColumnHandleForcedWith and don't need a value input?

(As I checked the doubleClickColumnHandleForcedWith I found that this is broken after you use the btn Resize all column widths to match their content.)

devinschumacher commented 1 year ago

that would be fine for me! i just tried double clicking an it didnt do anything though. i havent hit any other buttons

devinschumacher commented 1 year ago

any update on this issue? @janisdd

janisdd commented 1 year ago

No yet. But this will be the next issue I'm working on.

devinschumacher commented 1 year ago

thanks!

devinschumacher commented 1 year ago

whens the next update?

janisdd commented 1 year ago

This is already live (0.7.5). Right click on header cell

devinschumacher commented 1 year ago

@janisdd awesome thank you! how about rows next? 🤓