janisdd / vscode-edit-csv

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

Zoom support #155

Closed jolsen-mitsu closed 3 weeks ago

jolsen-mitsu commented 3 months ago

Please add the feature to to zoom in and out (with option to enable/disable this, if not everyone might like this functionality), similar to what's available in the VS Code editor when enabled. Control+Mousewheel is very convenient to quickly zoom in and out. Buttons/UI Controls and shortcut keys for zooming would also be nice.

Thanks!

janisdd commented 3 months ago

Actually, this is not so easy because handsontable (used for rendering the table) does not support zoom: https://forum.handsontable.com/t/whenever-font-size-is-increased-cell-content-starts-overlapping/6290

I've been fiddling around a bit, and maybe it will work. However, a few questions come to mind:

Again, I'm not sure whether this will work at all. Some features may depend on the fixed default cell height (22px), e.g.

(these are just the ones I can think of, but there are many more features)

janisdd commented 1 month ago

After a few experiments, only the table cells (not the header rows) will be zoomed.