Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

mobile: a sidebar button for the projects and threads

RoversXb62dfa0db3bf
diff --git a/android/app/src/main/java/com/roversx/thinkterm/TerminalScreen.kt b/android/app/src/main/java/com/roversx/thinkterm/TerminalScreen.kt
index 4d9d5cff..cd184e67 100644
--- a/android/app/src/main/java/com/roversx/thinkterm/TerminalScreen.kt
+++ b/android/app/src/main/java/com/roversx/thinkterm/TerminalScreen.kt
@@ -41,6 +41,7 @@ import androidx.compose.material.icons.automirrored.filled.ArrowBack
import androidx.compose.material.icons.filled.Add
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.GridView
+import androidx.compose.material.icons.outlined.ViewSidebar
import androidx.compose.material.icons.filled.Warning
import androidx.compose.material.icons.filled.CheckCircle
import androidx.compose.material.icons.outlined.Circle
@@ -481,6 +482,10 @@ private fun TopBar(
)
ConnectionMenu(model, expanded = connectionMenu, onDismiss = { connectionMenu = false }, onEditHost = onEditHost)
}
+ // The desktop's sidebar: the projects and threads, as a sheet.
+ IconButton(onClick = onTree, modifier = Modifier.size(36.dp)) {
+ Icon(Icons.Outlined.ViewSidebar, contentDescription = tr("threads"), tint = Color.White, modifier = Modifier.size(20.dp))
+ }
val scroll = rememberScrollState()
val positions = remember { mutableStateMapOf<String, Int>() }
val currentKey = if (twoLevel) model.threads?.current?.id?.let { "thread:$it" } else model.tabs?.current?.tab?.let { "tab:$it" }
diff --git a/ios/Sources/TerminalScreen.swift b/ios/Sources/TerminalScreen.swift
index 6d23e1dd..b7e1b55e 100644
--- a/ios/Sources/TerminalScreen.swift
+++ b/ios/Sources/TerminalScreen.swift
@@ -147,7 +147,11 @@ struct TerminalScreen: View {
.toolbarBackground(model.background, for: .navigationBar)
.toolbarBackground(.visible, for: .navigationBar)
.toolbar {
- ToolbarItem(placement: .principal) { tabStrip.frame(width: max(barWidth - 150, 120)) }
+ ToolbarItem(placement: .principal) { tabStrip.frame(width: max(barWidth - 190, 120)) }
+ ToolbarItem(placement: .topBarLeading) {
+ // The desktop's sidebar: the projects and threads, as a sheet.
+ Button { showTree = true } label: { Image(systemName: "sidebar.left") }
+ }
ToolbarItem(placement: .topBarTrailing) {
Button { if overviewShown { overviewShown = false } else { openOverview() } } label: {
Image(systemName: "square.grid.2x2")