New: Area Split/Join Pie #7

Merged
Demeter Dzadik merged 1 commits from new_editor_split_merge_pie into main 2024-08-21 02:31:39 +02:00
Collaborator

This PR adds a new pie menu on the Alt+` (grave key) shortcut, for joining and splitting areas without having to precisely right-click on a border or click-drag on a corner. It does not include the Swap Areas functionality because I don't think I can make that work unless someone changes the C-side implementation to be a modal operator like Join Areas.

Looking for a better shortcut

There is currently a downside to this shortcut choice that it doesn't work in text/python editors because the editor consumes the input. Ctrl+` doesn't have this issue, but that shortcut is already taken in the 3D view by Toggle Manipulators, which seems to take precedence for some reason. The only other way I found around this is to use Ctrl+Alt+Shift+`, but that's too uncomfortable to be useful.

This PR adds a new pie menu on the Alt+` (grave key) shortcut, for joining and splitting areas without having to precisely right-click on a border or click-drag on a corner. It does not include the Swap Areas functionality because I don't think I can make that work unless someone changes the C-side implementation to be a modal operator like Join Areas. <video src="/attachments/3b90298e-27dc-4a40-8ed3-e4a8891e1426" title="NVIDIA_Share_Hh8F2rJTa4.mp4" controls></video> ## Looking for a better shortcut There is currently a downside to this shortcut choice that it doesn't work in text/python editors because the editor consumes the input. Ctrl+\` doesn't have this issue, but that shortcut is already taken in the 3D view by Toggle Manipulators, which seems to take precedence for some reason. The only other way I found around this is to use Ctrl+Alt+Shift+\`, but that's too uncomfortable to be useful.
Demeter Dzadik added 1 commit 2024-08-17 22:36:54 +02:00
Demeter Dzadik merged commit 2950dd310d into main 2024-08-21 02:31:39 +02:00
Demeter Dzadik deleted branch new_editor_split_merge_pie 2024-08-21 02:31:40 +02:00
Contributor

I have tried this pie (on the latest Blender 4.3 alpha from 2024-08-25 03:57, hash: 6bd515e0d2a2) but for some reason, it doesn't display all the slices that are shown in your mp4 video.

Here is what I see (only "Split Area):

blender_Cibxk76xtC

I have tried this pie (on the latest Blender 4.3 alpha from 2024-08-25 03:57, hash: 6bd515e0d2a2) but for some reason, it doesn't display all the slices that are shown in your mp4 video. Here is what I see (only "Split Area): ![blender_Cibxk76xtC](/attachments/d44f44c1-9157-40af-91fd-057c2e0078a6)
Author
Collaborator

So, I didn't know this while making this pie menu, but it turns out that the area merge/split UX is actually being reworked (feedback thread) in core Blender for 4.3 by Harley Acheson.

So, I'm waiting for that work to be completed before figuring out what to do with this pie menu. In the meantime, the Merge operators have been removed from 4.2, so that's why they aren't showing up. But this is a temporary, in-development state.

My hope is that the new Area Split/Merge operator can ship with a default shortcut, and then this pie menu can be removed.

So, I didn't know this while making this pie menu, but it turns out that the area merge/split UX is actually being [reworked](https://projects.blender.org/blender/blender/issues/124915) ([feedback thread](https://devtalk.blender.org/t/interactive-editor-docking-is-now-experimental/35800/64)) in core Blender for 4.3 by Harley Acheson. So, I'm waiting for that work to be completed before figuring out what to do with this pie menu. In the meantime, the Merge operators have been removed from 4.2, so that's why they aren't showing up. But this is a temporary, in-development state. My hope is that the new Area Split/Merge operator can ship with a default shortcut, and then this pie menu can be removed.
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: extensions/space_view3d_pie_menus#7
No description provided.