1package soy.iko.opencode
3import android.os.Bundle
4import androidx.activity.ComponentActivity
5import androidx.activity.compose.setContent
6import androidx.activity.enableEdgeToEdge
7import androidx.compose.runtime.getValue
8import androidx.lifecycle.compose.collectAsStateWithLifecycle
9import androidx.lifecycle.viewmodel.compose.viewModel
10import soy.iko.opencode.ui.OpencodeApp
11import soy.iko.opencode.ui.theme.OpencodeTheme
13class MainActivity : ComponentActivity() {
14 override fun onCreate(savedInstanceState: Bundle?) {
16 super.onCreate(savedInstanceState)
19 val vm: CoreViewModel = viewModel()
20 val state by vm.core.view.collectAsStateWithLifecycle()
21 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