-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feat: Customization of folders and files #92
Feat: Customization of folders and files #92
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wladimirgrf thanks for working on this big feature for the theme! As I was testing this out, it seems like the syncing stopped working when adding new icons. A good test is to duplicate one of the files and add a new entry. Usually, the sync logic would pick this up and prompt for a reload and in your PR it appears to no longer prompt for sync. Mind taking a look to see if that can be fixed?
Besides that, it's working great 👏🍻
@miguelsolorio sure, I'll take a look. |
@miguelsolorio I did an update. There was an error with removing the settings. Icons were not updated. Changing the About the main problem. I would like your opinion on Which approach do you think is better? Did we remove the file compare from this function or do you have a better idea how to handle this? |
I'd like to keep the original source theme file and then generate a modified version that has whatever customizations the user has added, I believe that was the original intention of the sync and it would check for new icons that were added and update the modified version with them. I do see now in the updated PR that you get prompted to reload each time because of the conflict you mentioned (files are always different). If you can find a way to make it work with the new settings you've added, be it another method or the same, that would work for me. As long as users can customize their settings and the theme reflects that, that works for me. |
@miguelsolorio I created a "backup" logic. All customization and current theme will be registered in the modified and the bkp has the purpose to synchronize new icons or basically any update in See if it needs any more changes or if it's OK to merge. |
This is getting closer! As I was testing out the other setting, CleanShot.2023-05-30.at.10.21.41.mp4 |
@miguelsolorio Found the problem. This forces the workspace settings to be compared with the project settings. As the object has no default value, it triggers the update function that considers only the "new" information, thus filling I've removed key verification, this way we keep what's in the user's workspace. Let me know if you find any more issues. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 This is now working as expected, thanks so much for fixing the various bugs that came up! Will merge this and ship a new release shortly.
This pull request adds a new feature to the project, specifically the ability to customize the icons of folders and files using the
settings.json
.Solving this issue: Add the possibility to set folders/files associations #73
Example: