WIP: Area Editor Cycling #105161

Draft
Harley Acheson wants to merge 3 commits from Harley/blender:AreaCycle into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Member

Operator to cycle through an Area's previous Editors. As in instant
Back and Forward through editors in the same screen area.


Possibly an anti-feature, unwanted, or dumb. But this seems fairly useful.

Currently you can change any area from one Editor type to another, usually by using the Editor menu at the header's top-left. Our keymap also allows directly changing to specific editors by pressing Shift + Fx, ie Shift-F5 for 3D Viewport.

But what if you could just click "back" to get back to the previous one? With this patch you can. Alt-F1 gives you the previous editor, while Alt-F2 moves you to the next in the list.

This could open up new ways of using Blender. You could choose to use less - but larger editors - and just jump between them as if they were tabs within an area. It also fits nicely with docking - #104665 - because that allows dragging one area onto another, and this allows flipping between both instantly.

The code might be a bit suspect, mostly just copied from portions of ED_area_newspace. Would need close review from someone who knows this area well.

Once applied this uses Alt-F1 for back, and Alt-F2 for forward - but just for testing this. I'm sure someone (else) could find a better way to invoke these.

Operator to cycle through an Area's previous Editors. As in instant _Back_ and _Forward_ through editors in the same screen area. --- Possibly an anti-feature, unwanted, or dumb. But this seems fairly useful. Currently you can change any area from one Editor type to another, usually by using the Editor menu at the header's top-left. Our keymap also allows directly changing to specific editors by pressing Shift + Fx, ie Shift-F5 for 3D Viewport. But what if you could just click "back" to get back to the previous one? With this patch you can. Alt-F1 gives you the previous editor, while Alt-F2 moves you to the next in the list. This could open up new ways of using Blender. You could choose to use less - but larger editors - and just jump between them as if they were tabs within an area. It also fits nicely with docking - #104665 - because that allows dragging one area onto another, and this allows flipping between both instantly. The code might be a bit suspect, mostly just copied from portions of ED_area_newspace. Would need close review from someone who knows this area well. Once applied this uses Alt-F1 for *back*, and Alt-F2 for *forward* - but just for testing this. I'm sure someone (else) could find a better way to invoke these.
Author
Member

@blender-bot build

@blender-bot build
Harley Acheson force-pushed AreaCycle from 46ca8511bb to 9ec75411d6 2023-05-18 18:58:51 +02:00 Compare
Member

This is pretty neat!

As someone who doesn't just navigation all that often, I won't comment on the utility if it (I'm sure others will love it!)

A few things to note while testing it out:

  1. the "BACK" (ctrl+f1) didn't seem to work for me. The forward (ctrl + f2) worked as intended.
  2. Ctrl + f2 in the 3D view port brings up the batch rename operator. I'm sure this will mostly be used inside windows other than the 3D viewport, but I found it kinda annoying having that operator pop up.
This is pretty neat! As someone who doesn't just navigation all that often, I won't comment on the utility if it (I'm sure others will love it!) A few things to note while testing it out: 1) the "BACK" (ctrl+f1) didn't seem to work for me. The forward (ctrl + f2) worked as intended. 2) Ctrl + f2 in the 3D view port brings up the batch rename operator. I'm sure this will mostly be used inside windows _other_ than the 3D viewport, but I found it kinda annoying having that operator pop up.
Harley Acheson added 2 commits 2023-08-23 23:13:38 +02:00
Author
Member

@nrupsis - the "BACK" (ctrl+f1) didn't seem to work for me. The forward (ctrl + f2) worked as intended.

I have update this PR, mostly for all the C++ changes, and also changed the keymap to use Alt-F1 and Alt-F2 instead

> @nrupsis - the "BACK" (ctrl+f1) didn't seem to work for me. The forward (ctrl + f2) worked as intended. I have update this PR, mostly for all the C++ changes, and also changed the keymap to use Alt-F1 and Alt-F2 instead
This pull request is marked as a work in progress.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u AreaCycle:Harley-AreaCycle
git checkout Harley-AreaCycle
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
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: blender/blender#105161
No description provided.