GitMurf / csv-to-roam-table-md

Prepare/convert your CSV tables to be ready to import into your Roam Research database.
MIT License
8 stars 1 forks source link

If only one .CSV file in the directory you are targeting, have script suggest that file. #4

Closed GitMurf closed 4 years ago

GitMurf commented 4 years ago

Is your feature request related to a problem? Please describe.

Trying to minimize the amount of user input required.

Describe the solution you'd like

Once the user enters the Path where the .CSV file is located, grab the first .CSV file in that folder and suggest it to the user to ask if that is the file they want to convert. Even if there are multiple .CSV files in the folder, maybe we get lucky by selecting the right one by just suggesting the first it finds. If it is wrong then the user will simply enter the correct name.

Describe alternatives you've considered

Should I just ask for the full path and filename from the beginning and not worry about trying to find the current path the script is in and then asking what .CSV file to choose?

GitMurf commented 4 years ago

This is likely the next "feature" I will add.