# A file opened from a terminal joins the column a FILE PANE was last used in. # a.txt boots on the left and b.txt joins it there; b.txt is then dragged into # the RIGHT column and worked in, so that column is the newest one a doc was # read in while a.txt keeps the lowest pane id. The c.txt look then comes from # the right shell and must land under b.txt. Slot order — the rule this # replaces — would have answered a.txt (pane 0) and put c.txt back on the left. file a.txt AAA file b.txt BBB\nB-TWO file c.txt CCC # a FILE boots alone (and always outranked -n), so the shell whose ls output # the looks below are clicked in is opened here: Alt-n stacks it below a.txt # and Alt-c moves it into a column of its own on the right — the layout the # boot used to hand over — and SPC w h comes back to a.txt, which is where the # boot left focus. (`New`/`Newcol` open an empty +New scratch now, not a # shell, so the shell has to be asked for by name.) # Builtins announce themselves by default, and an announcement is a band at # the top of the body -- which moves every row this script clicks. What the # verbs do is what is under test, not the announcement. config Verbose off # pins the pardes placement rule (Placement pardes), which it covers config Placement pardes start 31 100 a.txt wait 8000 AAA stable 700 20000 key a-n key a-c wait 8000 c.txt stable 700 20000 key space w h stable 400 5000 snap boot # look b.txt in the shell's ls output: the second doc splits the first, so # both docs are in the left column and a.txt is the lower-numbered pane press right 60 6 release right 60 6 wait 10000 BBB stable 700 20000 snap two-docs # drag b.txt's layout box (the gutter cells of its tag row) into the right # column, below the shell press left 1 18 drag left 75 21 release left 75 21 stable 700 15000 snap moved # use a.txt, then b.txt: what counts is the doc last USED, so a.txt being the # most recent for a moment must not survive the click into b.txt press left 5 5 release left 5 5 stable 400 5000 press left 60 23 release left 60 23 key j stable 400 5000 snap worked # look c.txt from the shell: below b.txt, in the right column press right 67 6 release right 67 6 wait 10000 CCC stable 700 20000 snap third