1package soy.iko.opencode.data.model
3import kotlinx.serialization.Serializable
5/** Entry from `GET /file?path=` (directory listing). */
10 val type: String? = null,
12 val isDirectory: Boolean get() = type == "directory"
15/** Response of `GET /file/content?path=`. */
17data class FileContent(
18 val type: String? = null, // "text" | "binary"
19 val content: String = "",
20 val diff: String? = null,
21 val mimeType: String? = null,
22 val encoding: String? = null,
24 val isBinary: Boolean get() = type == "binary" || encoding == "base64"
27/** Entry from `GET /file/status` (VCS status). */
29data class FileStatusEntry(
30 val path: String = "",
33 val status: String? = null, // "added" | "deleted" | "modified"
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