Skip to content

Selection alignment #675

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

Merged
merged 5 commits into from
Dec 4, 2021
Merged

Selection alignment #675

merged 5 commits into from
Dec 4, 2021

Conversation

mbfraga
Copy link
Collaborator

@mbfraga mbfraga commented Dec 4, 2021

Summary / How this PR fixes the problem?

Implements automatic alignment of objects.

Steps to Test

Use Ctrl-3 through Ctrl-8 to test the different alignments.

Screenshots

Known Issues / Things To Do

It probably isn't 100% correct in its behavior, but it is a start.

Copy link
Member

@Alecaddd Alecaddd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

Comment on lines 174 to 179
typing_accelerators.set (ACTION_ALIGN_LEFT, "<Control>3");
typing_accelerators.set (ACTION_ALIGN_HCENTER, "<Control>4");
typing_accelerators.set (ACTION_ALIGN_RIGHT, "<Control>5");
typing_accelerators.set (ACTION_ALIGN_TOP, "<Control>6");
typing_accelerators.set (ACTION_ALIGN_VCENTER, "<Control>7");
typing_accelerators.set (ACTION_ALIGN_BOTTOM, "<Control>8");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Little nit: I'd prefer these to use the Alt modifier, and start from 1 to 6.
The Ctrl + number modifier should be reserved for quick zooms (eg. zoom to fit, zoom to item, etc.)

@mbfraga mbfraga merged commit d4d699d into main Dec 4, 2021
@mbfraga mbfraga deleted the selection_alignment branch December 4, 2021 05:12
@Alecaddd Alecaddd mentioned this pull request Dec 4, 2021
46 tasks
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.

2 participants