Commit
1de5317
Grant works. Closed https://github.com/dtinth/toolbox/issues/16 with a link here. Next up is the layout tree. @dtinth is 20px enough for a finger, and should an undocked window go back to its old spot?
GitHubToolbox development · Issue #16 · dtinth/toolbox@dtinth-claw[bot]
- 20px enough
- Yes
Recorded both and closed https://github.com/dtinth/toolbox/issues/24. The undock and cascade rules moved to drag-to-dock (#25). That one waits on its prototype, https://github.com/dtinth/toolbox/issues/20. I suggest that next: a touch-first drag-to-dock lab for you to try.…
GitHubLayout tree: split panes with resizable dividers · Issue #24 · dtinth/toolboxQuestion Build the Layout tree: split panes with resizable dividers. The geometry engine underneath docking. A tree of split nodes and leaf panes, where a leaf holds whatever the pane-shape ticket ...
On it. Taking the drag-to-dock prototype (#20). First I need to set up the build tools here. I'll post when the lab is ready to try.
@dtinth The drag-to-dock lab is live: https://toolbox.dt.in.th/?lab=dock
Three variants. Switch them with the bar at the bottom.
A: drag a window near a pane's edge to split it. A tinted box shows the result.
B: drag onto big compass buttons. Only a button docks.
C: no drag.…
toolbox.dt.in.thtoolbox
For A - I cannot float a window at all. Because it either goes to the edge or opens as another tab, the only way to float it is to click on the float button. Once floated, I cannot move its position. So I cannot judge because I'm not sure if this behavior is intended.
For B - It…
Thanks. A's problem is real, not a bug in the lab: the panes fill the screen, so every spot is a dock target. A window can never just move. That rules A out.
So B wins. To cut its UI, I can make B2: show the five buttons only in the pane under your finger, and the edge buttons…
- For A, since there is always a tab bar, it is possible to make it dock only when hovering on the tab bar.
- For B, let's try B2.
On it: B2, plus A2. In A2, touching a pane's tab bar arms that pane, then its edge zones work until you leave it. Anywhere else, the window just moves.
@dtinth A2 and B2 are live: https://toolbox.dt.in.th/?lab=dock&variant=A2 (and ?variant=B2)
A2: drag across a pane's tab bar to arm it (cyan ring). Then its edges split and its middle adds a tab, until you leave the pane. Elsewhere, the window just moves.
B2: only the pane under…
toolbox.dt.in.thtoolbox
B2 is nice. Let's do that.
B2 it is. I'll record that on #20, move the lab to a branch, then start building real drag-to-dock (#25). That one takes a while, so I'll post when there's something to try.
@dtinth Drag-to-dock is live on the real desktop: https://toolbox.dt.in.th/
Drag a window by its title onto the compass to dock it. Drag a tab out to float it, or press ⇱ on the tab to float it back where it was. Escape cancels.
One thing is missing: a keyboard way to dock.…
toolbox.dt.in.thtoolbox
Let's leave that for later.
OK. I closed #25 and moved the keyboard part to #33. Next, I suggest #26: save the workspace, so a layout survives a reload. Or #22 first, a tiny doc fix. Which one?
Yeah, that sounds about right. But if work is independent, you can spawn subagents to do it.
#22 is done. Starting #26 now. #27 and #28 build on it, so they can't run in parallel; I'll do them after. #29 is big and mostly separate. #30 needs your answers first.
re.30, come with questions pls
#30 Q1: a tool's main window is docked, and the tool opens a sub-window. Where does it appear the first time?
A) a tab in the main window's pane (it covers the main window)
B) floating at the usual cascade spot (today's behavior)
C) the tool decides
I suggest B: a sub-window is often a preview you want beside the main one, and one drag docks it. After the first time, it always comes back to where you put it.
commit 1de5317