@linxiraos/editor
v1.5.19
Published
Zeta's built-in terminal editor (the termide panel-editor, editor-only entry), per-platform binary payload resolved by path
Readme
@linxiraos/editor
Zeta's built-in terminal editor, as a per-platform binary payload.
The editor is a full-screen text editor with LSP (completion, code actions,
diagnostics), tree-sitter highlighting, vim mode and git diff markers — the
panel-editor of the vendored TermIDE workspace (termide/), built as its
own editor-only entry point (termide/src/bin/termide-editor.rs). It
opens files the way $EDITOR consumers expect:
# Absolute path to the payload, then the editor's own command line:
termide-editor FILE[:line[:col]]... [DIRECTORY]FILE:line:col/FILE:line/FILE— open with the cursor placed (1-based; a Windows drive letter is never a position separator).DIRECTORY— becomes the project root (LSP/git/config resolve there).- No argument — one empty editor in the current directory.
- The process blocks until the editor is closed, and closing the last panel
returns control to the caller, so it works as
$EDITORforgit commit,crontab -e,visudo, and for tools that spawn an editor by path.
No command, by design
This package installs no command: there is no bin entry, and the editor
is not part of the user-visible command surface (zetawork / zetacode /
zetaide). Consumers resolve the platform leaf's executable and spawn it:
| Consumer | How it resolves the payload |
|---|---|
| plugins/official/pi-messenger (/editor) | editor-binary.ts — require.resolve("@linxiraos/editor-<platform>-<arch>/bin/…"), auto-installing this package when missing |
| other integrations | node_modules/@linxiraos/editor/launcher.js (node launcher.js FILE[:line[:col]]), or require("@linxiraos/editor/launcher.js").resolveEditor() |
The platform leaf that matches your system (@linxiraos/editor-windows-x64,
@linxiraos/editor-linux-x64) carries the executable in its bin/
directory through optionalDependencies.
Install
npm install -g @linxiraos/editorOr as a dependency:
npm install @linxiraos/editorPlatform support
| Package | OS | Arch | Status |
|---|---|---|---|
| @linxiraos/editor-windows-x64 | Windows | x64 | supported |
| @linxiraos/editor-linux-x64 | Linux | x64 | supported |
Only x64 (amd64) builds of Linux and Windows are provided. macOS and ARM (arm64/armv7) builds are not available yet.
Migration from 1.2.1 (the TTT handover)
@linxiraos/[email protected] on npm is still the retired TTT editor: it carries
bin/zeta-editor.js and its platform leaves carry ttt.exe. From the next
published version the package is the payload described above:
- the old editor command is gone (this package has no
binby design; spawn the payload, ornode launcher.js), - the leaves carry
termide-editor[.exe]instead ofttt.exe, - the editor's command line is
FILE[:line[:col]]($EDITORsemantics: no sessions, no detach, no layout persistence).
Nothing else in the repository refers to TTT; the package name stayed because
it is the slot $EDITOR consumers point at.
License
MIT. The payload is built from the vendored TermIDE snapshot; see
VENDOR.md and termide/VENDOR.md in the source repository
for the modification-layer ledger.
