Workspace
Arrange sessions and tabs
Find every session in the sidebar, pin the ones you want in the title bar, and act on several at once.
On this page
#Pick a layout
Settings › Appearance › Tabs and sessions sets where sessions and tabs show. Three presets set everything at once:
| Preset | What it shows |
|---|---|
| Focused | Sessions in the sidebar tree, pinned tabs in the title bar. A new install starts here. |
| Classic | Every open tab in one row, and the sidebar with projects and worktrees. |
| Everything | The tree and every open tab. |
After a preset, each option can change: where sessions live, what the title bar shows, how a state looks (icon, dot or word), grouping by project, how sessions sort, projects with nothing running, long titles and the sidebar width.
#Read the sidebar
With Focused, the sidebar lists every session of every project, under its project. Each row has a mark for its state:
| Mark | Means |
|---|---|
| A ring | It works. |
! | It needs you. |
| A cross | It failed, or its checks failed. |
| A check | Its checks passed. |
| A faint dot | It is idle. |
The end of the row says what wants you, or the number of the pull request.
#Sort sessions
Sessions sort by Recent by default. The session that moved last, whether its agent or you moved it, is on top of its project. Without project headings, it is on top of the whole tree. The sort button in the tree's heading says the order in use. Click it to pick another:
- Recent puts the session that moved last on top.
- Name sorts sessions by title.
- Manual keeps the order you drag them into. Drag a session onto another row and it takes that row's place. Dragging while on Recent or Name switches that project to Manual, from the order on screen. New sessions go first.
The same menu holds Group by project and Show archived. Under Applies to, All projects gives the order to every project. Select projects… gives it only to the projects you tick in the list beside the menu, and the rest keep the order for all. Each project's order is kept in state.json. Settings › Appearance › Tabs and sessions › Sort sessions sets the order too.
In the list:
- Sessions pinned to the title bar go first, with a pin at the end of the row and a rule under them.
- In Recent and Name, the sessions with a tab open come next, with a rule under them.
- A session with no tab open is dimmed, unless it works or needs you.
- Sessions that need you go to the Needs you list above the projects.
- The rows hold still while the pointer is over the sidebar.
#Fold what is done
A project's sessions whose pull request was merged or closed fold into one quiet line after the others, with a check and the count, such as "2 done". Click it, or press Enter on it, to open them in place or fold them again. Each project remembers that in state.json. A search, the session on screen and a pinned session never fold.
A project with nothing running folds. The project on screen and any project with a session that works or needs you stay open. Click a project to fold or open it. Settings can keep such projects open or hide them.
#Move with the keyboard
Alt+1 to Alt+9 go to the first nine projects, in the sidebar's order. Up and Down move through the project's sessions, Left and Right fold and open it, and Enter opens a session. A hidden sidebar opens first.
#Archive sessions
Point at a session that is not working and the end of its row gives way to an archive button. Click it to archive that session. The session you have open has the button too: archiving it closes its tab, which stops its agent, and opens a new session. Sessions on a server have no button.
Archived sessions stay out of the list. The archived toggle shows them. To have Arakun delete old ones, see Remove archived sessions.
#Pin sessions to the title bar
With sessions in the sidebar, the title bar holds the sessions pinned to it, from any project, plus the tab on screen and pages, files and views.
- Drag a row up to the bar. A line marks where it lands.
- Or pick Pin to the title bar in the row's right-click menu.
- Or press Alt+P while the pointer is on the row. On the bar, Alt+P pins or unpins the tab on screen.
Close a pinned tab with Ctrl+W, or drag it back to the sidebar, to unpin it. The session stays in the tree. With nothing pinned, the session you open pins itself.
When the bar fills, tabs shrink and the rest go under N more, which can also unpin the ones that are done. With the sidebar hidden, a Sessions button opens the tree as a menu with a search. It shows how many sessions need you.
#See what needs you
With Focused, the Needs you list sits above the projects in the sidebar. It holds the sessions of every project that wait on you, failed or whose checks failed, the worst first. Each row starts with its project's icon and ends with how long it has waited or why it failed.
- Its title shows the count. The list is gone when nothing needs you.
- A session in it leaves its project's list, so it shows once. It goes back when it works again or its checks pass.
- While the pointer is over the sidebar, no row moves. The order catches up once the pointer leaves.
With Classic, the Active list at the top of the sidebar shows the sessions of every project that need you, because they wait for an answer or failed, then the ones that run. A click opens the session in its project. Move or remove either list from Customize › Sidebar.
An environment needs you when:
- a session asks something,
- a session finished a turn you haven't opened yet,
- CI on its branch fails,
- its pull request has changes requested or conflicts.
#Start a session in any project
The + next to the tree's Sessions heading opens New: a session in the open project or another one, or a project to add.
Point at a project in the tree and its count gives way to a +. Click it to start a session in that project. The project comes on screen and opens, so the new session shows under it.
#Act on several at once
Ctrl+click (Cmd+click on macOS) rows to pick them, and Shift+click to pick a run of them. Esc clears the pick.
In the sidebar tree, you pick sessions. A bar under the tree shows how many you picked and can:
- pin them to the title bar, or unpin them when they all are,
- archive the ones that are not working, which hides them from the lists,
- close their tabs. The sessions stay in the tree.
In the projects list of Classic, you pick worktrees. A bar under them can:
- settle their sessions,
- close them: their tabs close and idle agents stop, and the worktrees stay,
- delete the worktrees, after one question. Branches stay, and so does the main checkout.
Right-click one of the picked rows to get the same actions in a menu, for every picked row. A right-click on a row you did not pick drops the pick.
#Move between tabs
The window has one row of tabs for every environment. Going to a tab shows its environment, and going to an environment shows the tab it showed last.
| Keys | What they do |
|---|---|
| Ctrl+Tab, Ctrl+1…9 | Switch tabs, across environments |
| Alt+Up, Alt+Down | Switch environments |
| Ctrl+W | Close the tab |
| Ctrl+Alt+T | Reopen the last closed tab where it was |
| Ctrl+Shift+PageUp, Ctrl+Shift+PageDown | Move the tab left or right |
| Ctrl+Alt+B | Toggle the workspace panel |
A middle click closes a tab. Drag a tab left or right to move it; the order stays after a restart.
Ctrl+D (or Ctrl+Shift+D to split down) shows up to three panes side by side. The first press splits the tab, the second adds a third pane beside the focused one, and the third press ends the split.
- Ctrl+Alt+Left or Ctrl+Alt+Up moves the focus to the previous pane, Ctrl+Alt+Right or Ctrl+Alt+Down to the next one.
- Ctrl+Alt+Shift+arrows, or Swap sides in the tab's menu, swaps the focused pane with the next one.
- Drag a divider to resize the two panes beside it. Double-click a divider to make every pane the same size.
- Closing the tab in one pane closes only that pane. The split ends when one pane is left.
A split can hold tabs of different environments side by side. Clicking a pane switches to its environment.
Did this page help?
Tell us about a mistake on this page, or ask for help with Arakun.