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

[Feature Request] Add option to automatically update the table on source file changed #147

Closed urjeetpatel closed 2 months ago

urjeetpatel commented 5 months ago

Version?

Feature

There is an configurable option that will watch the source file for changes and will prompt the user to refresh to update the table. Can another configuration be added to this so that the table gets automatically refreshed on source file changes? This can default to false to have the existing behavior but for my use case i would love to have the parsed csv table interface automatically update as the source file changes.

Maybe have the option next to this in the settings. image

and have the title be Automatically reload table on source file change.

janisdd commented 5 months ago

Do you use the table to display data or do you also edit it?

This can be important, as reloading the file means that all changes made to the table will be discarded.

urjeetpatel commented 5 months ago

I use it for both editing and for displaying data. However I would still like to have the option to automatically refresh the table even if it overwrites any edits made.

This is why it should be user configured and allow people to make the decision if they want their changes overwritten or not.

janisdd commented 2 months ago

I've changed the shouldWatchCsvSourceFile option to be an enum:

Will ship with the next update