Implement "Copy Layout to Clipboard" functionality #195
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hi!
I recently needed to customize my UI layout, but I found it a bit tedious to modify position numbers directly. So I thought what if you could serialize the UI layout back to a string and put it into the clipboard, so you could adjust positions in WYSIWYG style and then just copy-paste the layout string to your config? So I implemented it. It was pretty convenient. Here is a demo:
copy-layout-to-clipboard-demo.mp4
It would be kinda cool if the layout string was automatically saved to the config, but I decided not to implement this because maybe the config is meant to be modified manually and it's rude for the program to mess with it, I dunno.
Please let me know if there are any problems with the approach. I'm ready to fix them. Feel free to reject this PR entirely if this is not how you want to approach this functionality.
Thank you again for making such a useful application! ❤️