1package soy.iko.opencode
3import android.os.Bundle
4import androidx.activity.ComponentActivity
5import androidx.activity.SystemBarStyle
6import androidx.activity.compose.setContent
7import androidx.activity.enableEdgeToEdge
8import androidx.compose.runtime.getValue
9import androidx.lifecycle.compose.collectAsStateWithLifecycle
10import androidx.lifecycle.viewmodel.compose.viewModel
11import soy.iko.opencode.ui.OpencodeApp
12import soy.iko.opencode.ui.theme.OpencodeTheme
14class MainActivity : ComponentActivity() {
15 override fun onCreate(savedInstanceState: Bundle?) {
17 statusBarStyle = SystemBarStyle.auto(
18 lightScrim = 0xFF0F1115.toInt(),
19 darkScrim = 0xFF0F1115.toInt(),
22 super.onCreate(savedInstanceState)
25 val vm: CoreViewModel = viewModel()
26 val state by vm.core.view.collectAsStateWithLifecycle()
27 OpencodeApp(state = state, dispatch = vm.core::dispatch)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list