bl
This commit is contained in:
parent
41adeeb47f
commit
5b65c4c0e4
11 changed files with 4237 additions and 297 deletions
20
README.md
20
README.md
|
|
@ -36,21 +36,27 @@ odin run client/odin -- 49321 /path/to/workspace
|
|||
|
||||
The client sends `ping` and `workspace/open` requests and prints daemon responses.
|
||||
|
||||
Run the SDL editor window:
|
||||
Run the SDL editor window (the default mode):
|
||||
|
||||
```sh
|
||||
odin run client/odin -- --sdl /path/to/workspace /path/to/file.kt
|
||||
odin run client/odin
|
||||
```
|
||||
|
||||
The SDL mode starts the daemon automatically when no port is passed. You can still connect to an already-running daemon by passing its port before the file path:
|
||||
|
||||
Auto-started daemons are restarted automatically if the process exits or the TCP connection drops. Explicit-port mode does not restart external daemons.
|
||||
With no arguments the editor reopens the last workspace, falling back to the current directory on first launch. Workspace, daemon port, and file are all optional and can be passed in any order — a directory is the workspace, a number is a daemon port, anything else is a file to open:
|
||||
|
||||
```sh
|
||||
odin run client/odin -- --sdl /path/to/workspace <port> /path/to/file.kt
|
||||
odin run client/odin -- /path/to/workspace /path/to/file.kt
|
||||
```
|
||||
|
||||
The file path is optional. If no file is passed, the editor restores the last open files, active tab, and cursor positions for the workspace. If there is no saved state, it opens the current prototype default file under the workspace.
|
||||
The editor starts the daemon automatically when no port is passed. You can still connect to an already-running daemon by passing its port:
|
||||
|
||||
```sh
|
||||
odin run client/odin -- /path/to/workspace <port> /path/to/file.kt
|
||||
```
|
||||
|
||||
Auto-started daemons are restarted automatically if the process exits or the TCP connection drops. Explicit-port mode does not restart external daemons. The `--sdl` flag is still accepted for compatibility. Note that a bare numeric first argument (`odin run client/odin -- <port>`) selects the smoke-test mode above, so pass a workspace too when connecting the editor to an external daemon.
|
||||
|
||||
If no file is passed, the editor restores the last open files, active tab, and cursor positions for the workspace. If there is no saved state, it opens the current prototype default file under the workspace.
|
||||
|
||||
SDL mode shows a simple workspace file tree in the left sidebar. Click a file to open or focus it.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue