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

can dev add toggle word-wrap? #128

Closed lzygitk7 closed 1 year ago

lzygitk7 commented 1 year ago

Version?

Feature

Describe the feature you want to suggest.

janisdd commented 1 year ago

Not 100% sure what you mean ,but there is an option csv-edit.enableWrapping that wraps cells.

janisdd commented 1 year ago

@lzygitk7 is csv-edit.enableWrapping the feature you described?

lzygitk7 commented 1 year ago

Sorry for delay reply. Not really, but thank you for your reply.

Outlook for Androidhttps://aka.ms/AAb9ysg


From: janisdd @.> Sent: Friday, August 4, 2023 7:38:28 PM To: janisdd/vscode-edit-csv @.> Cc: lzygitk7 @.>; Mention @.> Subject: Re: [janisdd/vscode-edit-csv] can dev add toggle word-wrap? (Issue #128)

@lzygitk7https://github.com/lzygitk7 is csv-edit.enableWrapping the feature you described?

— Reply to this email directly, view it on GitHubhttps://github.com/janisdd/vscode-edit-csv/issues/128#issuecomment-1665469910, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6YQSGCUSQUAMXPYMP5FV2LXTTNLJANCNFSM6AAAAAA25TLXMA. You are receiving this because you were mentioned.Message ID: @.***>

janisdd commented 1 year ago

So what do you mean by word-wrap then? Or how it is different from the current functionality of csv-edit.enableWrapping?

lzygitk7 commented 1 year ago

I open the this function, but the second time I opened the csv, the block still is in a line instead of automatically wrap. But it works for me, thank you.

Outlook for Androidhttps://aka.ms/AAb9ysg


From: janisdd @.> Sent: Friday, August 4, 2023 7:43:34 PM To: janisdd/vscode-edit-csv @.> Cc: lzygitk7 @.>; Mention @.> Subject: Re: [janisdd/vscode-edit-csv] can dev add toggle word-wrap? (Issue #128)

So what do you mean by word-wrap then? Or how it is different from the current functionality of csv-edit.enableWrapping?

— Reply to this email directly, view it on GitHubhttps://github.com/janisdd/vscode-edit-csv/issues/128#issuecomment-1665475250, or unsubscribehttps://github.com/notifications/unsubscribe-auth/A6YQSGHVDVXAX4UFXRWS6UTXTTN6NANCNFSM6AAAAAA25TLXMA. You are receiving this because you were mentioned.Message ID: @.***>

janisdd commented 1 year ago

You know the cell is only wrapped if you change the column size manually... by default the cell will auto size to fit the content on a single line.

You could set csv-edit.initialColumnWidth to a small value and see the wrapping immediately.

janisdd commented 1 year ago

@lzygitk7 Can this be closed? You have to manually resize the column first. How should the table know which width is the best? For this reason, the initial width is adjusted to the contents of the cell.