Commit
305fad1
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…
Done and live: #22, #26, #27, #28, #30.
Try: open a tool at /, press "Save as workspace", name it. The URL becomes ?workspace=<name>, and it saves as you go. ?tool=counter,echo opens two tools.
One gap: if a tool fails to load during restore, it drops out of the workspace.
Left:…
#29 is live. Click ⧉ on a window's title bar, or on a docked tab. The window opens in its own browser window. Its place stays, with a "Bring it back" button. Closing the popup also brings it back. Widget state survives the trip.
Only #33 (keyboard docking) is left on the map.
commit 305fad1