-
Notifications
You must be signed in to change notification settings - Fork 2
script/setup does not inherit prior setup parameters #3
Comments
Hello, and good idea. Hmm, just not sure if I should mark it as enhancement or bug report :) I will try to do it "soon" (I hope before next Sunday) |
So, this one is added too, just in a bit different way - there is option to save settings to the file (by default it is disabled). When the setup script starts, it looking for a file |
Nice! A few thoughts: settings.txt is looked for and saved into current working directory, which is in the repository. I think it'll work just fine for my part, but it's a little unconventional. The conventional solution being to save it under .tashy in user home directory. One benefit being it'll be preserved on git clean, git clone, and download. Second, using "file exists settings.txt" opens for a race condition on settings.txt being added or removed in between exists and open command. The solution being to open the file on script start (read-only), then see if the file handle is open. Not a big deal in this case, but best not make a habit of introducing race conditions. |
For now I don't want to change it for one reason: I plan to rewrite completely setup script and probably all that things will be corrected/added. For now I mostly gather information what will be need to do. I should add this task to TODO list. Unfortunately, at this moment I don't have any ETA when rewriting will starts, I'm afraid for now it is not the most important task for me. |
If setting macros by script/setup and then rerun the setup, the macros set in previous setup is overwritten by new guesses. I don't think it should be like that. Inherit old setup by default (if any), and add a button for manually guessing the macros from within the setup.
The text was updated successfully, but these errors were encountered: