Skip to content
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

Implement "Copy Layout to Clipboard" functionality #195

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

rexim
Copy link
Contributor

@rexim rexim commented Feb 27, 2025

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! ❤️

@greg7mdp
Copy link

This is brilliant!

@nakst nakst merged commit e34738b into nakst:master Feb 28, 2025
1 check passed
@nakst
Copy link
Owner

nakst commented Feb 28, 2025

Thanks for sharing these changes!

@rexim rexim deleted the copy-layout-to-clipboard branch March 1, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants