docs: opening a project from the console needs no :PiWebStart
`workspace.add`/`instance.ensure` now spawn a host-capable headless nvim on demand, so the documented flow is the browser, not the editor. protocol.md gains the missing normative bodies for the three daemon-owned writes (including `~` expansion, `name`-as-`alias`, and the ordered error codes), states that `hello` requires `lua/pi/host.lua`, and records that any relayed read implicitly ensures. deployment.md documents `PI2_NVIM_INIT`, `PI2_PLUGIN_DIR`, `PI2_NVIM_BIN` and `PI2_ENSURE_TIMEOUT_MS`, where spawn output goes, and a symptom-ordered "opening a project fails" section. README says it out loud.
This commit is contained in:
1 parent
d5d205a7eb
commit
e775b09037
3 files changed
+69
-4
No files matched your search
@@ -129,6 +129,13 @@ pi2 --version # print version
|
||||
|
||||
Runtime files, ports, auth, services and troubleshooting: [docs/deployment.md](docs/deployment.md).
|
||||
|
||||
### Open any project from the console
|
||||
|
||||
A project can be opened straight from the web console: type any absolute path, or a `~/…` one, that
|
||||
lies inside the allowed roots (`PI2_WORKSPACE_ROOTS`, default `$HOME`) and the daemon starts a
|
||||
headless pi2.nvim host for it on demand — no `:PiWebStart` first. `:PiWeb` remains the way to hand
|
||||
the browser your *existing* nvim session.
|
||||
|
||||
### Neovim plugin
|
||||
|
||||
```lua
|
||||
|
||||
Reference in new issue
Block a user