Crate and file map
Vix is a Cargo workspace ([workspace] members = ["crates/*", "tui"]) on edition
2024. The vix-tui package (tui/, building the vix command; library crate name vix) is the thin App shell — CLI, event
loop, App state, rendering, and the explorer — and it depends on the 148
vix-* member crates under crates/ that hold every feature plus the custom
editor widget (vix-editor-core). Shared reference for where things live.
Specs are per-crate. Each member crate owns its source-of-truth spec at
crates/<crate>/spec/index.md (multi-topic crates keep spec/<topic>/index.md
sub-specs). The top-level spec/ keeps only cross-cutting / app-level and
build/meta docs (index, navigation, comparisons, emacs-menus, license,
trademarks, debian, brew, homebrew-tap-token, ci, rust-cargo-*,
rust-clippy-pedantic, main-rs-and-lib-rs-boilerplate, test, tools).
Lint posture
The root Cargo.toml [workspace.lints] table sets unsafe_code = "forbid",
missing_docs = "deny" and clippy::pedantic for every crate and every target
(each crate has [lints] workspace = true; T599). There is no blanket #![allow(clippy::pedantic)]
or #![allow(missing_docs)] anywhere — findings are fixed in code. Sanctioned
allows are only a handful of targeted #[allow(clippy::too_many_lines)] /
too_many_arguments ones on specific functions that resist further
extraction — there is no standing #[allow(clippy::struct_excessive_bools)]
anywhere in the codebase: T149 converted every bool-cluster struct (App,
Settings, SearchBar, WorkspaceSearch, DblockParams, both Editors) to
a bitflags-based Flags field instead. Prefer that over a new allow for a
struct whose bools are independent, freely-combinable toggles.
cargo clippy --workspace --all-targets -- -D warnings is clean. See
[[rust-clippy-pedantic]] / spec/rust-clippy-pedantic.
vix-editor-core — the code-editor widget (crates/vix-editor-core/src/)
The fully-custom terminal code-editor crate. Every module — reused engine and
Vix-owned alike — is held to the same workspace clippy::pedantic as
every other crate; there is no blanket #[allow(clippy::all, clippy::pedantic)]
anywhere in it. Reached from the host via vix-editor’s CodeEditor (a
re-export of
editor_core::editor::Editor).
| Module | Kind | Owns |
|---|---|---|
code | engine | Rope buffer + Tree-sitter parse/highlight + edit batches. |
history | engine | Undo/redo stacks. |
selection, utils | engine | Selection type; grapheme/width/indent/comment helpers. |
actions | engine | Editing operations (insert/delete/move/indent/comment/…). |
named | engine | snake_case named-action methods on Editor (the spec/actions.tsv catalog). |
multicursor | engine | Multiple-caret model + add/skip/spawn. |
click | Vix | ClickTracker/ClickKind: single/double/triple-click classifier. |
editor | engine+Vix | Editor state, public API, marks, folds, inlay hints, mouse. |
render | engine | Non-wrap renderer + dispatch; fold/inlay row & column mapping. |
wrap | Vix | Soft-wrap visual-row layout + wrapped renderer. |
brackets | Vix | Bracket matching (matching_bracket). |
lines | Vix | Line transforms (move/sort/join/dedupe/trim/reverse). |
editor_input | engine | KeyEvent → actions mapping (always compiled). |
code also exposes expand_to_node (offline structural selection), len_bytes,
and serde on its history types (for persistent undo); editor adds the passive
word_marks channel, relative_line_numbers, and comment_prefix.
Tree-sitter highlight queries live in repo-root langs/, embedded with
rust-embed (#[folder = "langs/"]); grammars are gated behind lang-*
features (syntax-common by default, syntax-all for everything).
App shell — package vix-tui (tui/src/)
| File | Responsibility |
|---|---|
main.rs | clap CLI, locale resolution, terminal setup, event loop, suspend. |
lib.rs | Crate root; lint config; i18n! catalog init; module declarations. |
app.rs | App state, on_key/on_mouse, run_action, overlays, behavior — dispatches most of its logic into tui/src/app/*.rs (below). |
ui.rs | All rendering: frame layout — dispatches most per-pane/overlay draw functions into tui/src/ui/*.rs (below). |
tui/src/app/*.rs (T141) holds most of App’s actual logic, one file per feature
area (75 entries today, ls tui/src/app): keymap.rs (on_key + the fourteen keymap
dispatchers), overlays.rs (the OVERLAYS table that orders drawing and key
routing, T611; see spec/overlay-priority), git.rs (git/jj), git_review.rs
(branch review, T665), git_rebase.rs (interactive rebase, T633), scripts.rs,
command_palette.rs, session.rs, lsp_dap.rs, debug_panel.rs (the Debug
panel keys, Edit Breakpoint, exception filters, T617), completion.rs (T612),
ghost.rs (inline ghost-text completion, T618), terminal.rs (terminal
overlay and the editor bridge, T666), project_env.rs (T667), dir_edit.rs
(Edit Directory, T636), compare.rs (Compare Files and filler rows, T660/T671),
roam.rs, org_table.rs, org.rs, insert_tools.rs, picker_panels.rs,
info_panels.rs; features that can be compiled out come with a *_off.rs twin.
tui/src/ui/*.rs (T142) holds ui.rs’s draw functions, one file per
overlay/panel family (36 entries today, ls tui/src/ui; ui.rs itself is under
900 lines: the dispatch chain plus shared rendering primitives).
Besides app.rs and ui.rs, tui/src/ holds main.rs, lib.rs, cli.rs
(the shared clap definition), capability.rs (build-time features),
remote.rs (vix ssh://...), mcp.rs (vix --mcp), plugin_cli.rs and
term_caps.rs.
Everything else the shell used to own now lives in a member crate, reached
through the workspace dependency graph (e.g. vix-editor, vix-menu,
vix-palette, vix-find-panel, vix-session, vix-settings,
vix-theme, vix-fileops, vix-case) — T152 (done) moved the rest out:
explorer/
messages/search are thin pub use aliases in lib.rs for
vix-left-dock/vix-right-dock/vix-find-panel, and
workspace_search/edit_outline/edit_table/column_view alias four new
crates the same way (vix-workspace-search, vix-edit-outline,
vix-edit-table, vix-column-view, below) — none of the seven has a
src/*.rs file of its own anymore.
Feature crates (crates/vix-*)
| Area | Crates |
|---|---|
| Editor | vix-editor (the CodeEditor host wrapper), vix-editor-core (the widget, above). |
| MCP | vix-mcp-server (T731: the read-only Model Context Protocol core behind vix --mcp — newline-delimited JSON-RPC 2.0 over stdio, initialize/tools/*/resources/*, six read-only tools over open buffers, offline symbols and outline, merge-conflict diagnostics and SQLite schemas; the workspace boundary and secret filter; a Host trait the App shell implements in tui/src/mcp.rs). |
| LSP / DAP | vix-lsp (process IO + host wiring), vix-lsp-core (JSON-RPC framing, builders, parsers, positions); vix-dap (Debug Adapter Protocol client, reuses lsp_core::frame; its view module is the Debug panel tree model, T617). |
| Git | vix-git (status/diff/staging via the git CLI), vix-git-graph (T681: the interactive commit graph — pure lane assignment from parent links, %D ref decorations, paged git log, checkout/branch/cherry-pick), vix-review (T665: the multi-file review model for a revision range, saved line comments, Markdown/JSON export), vix-conflict-tool (merge-marker parser). |
| OC | vix-oci (T700: drive an OCI engine — Docker/Podman/nerdctl — via its CLI: detection, argv builders, NDJSON/array parsers, the process-gated runner; T718: devcontainer reads devcontainer.json (JSONC) and devcontainer up’s result), vix-oci-panel (T702–T704: the containers/images/volumes/networks/pods list panel with confirm and input modes). |
| IM | vix-im (T750: the pure core of the IM menu — conversations, messages, presence, @nick mentions under IRC case mapping, unread tracking, slash commands, path:line code references with workspace-root resolution, the received-text sanitizer, anchored threads with re-anchoring, JSONL history), vix-im-panel (T750: the IM dock panel state — conversation cycling, message list, input line, Enter-to-open references). |
| Spellcheck | vix-spellcheck (Hunspell via spellbook). |
| Snippets | vix-snippets (JSON snippet files: scopes, parse, merge, picker), vix-snippet-tool (tabstop engine + bundled snippets). |
| Media types | vix-media-type (the MIME catalog parsed from crates/vix-media-type/spec/media-types.tsv; text/binary base, extension lookup, picker). |
| Org mode | vix-org (headline structure, TODO/checkbox, the column-view spec — format string, resolution, Markdown/HTML export), vix-column-view (T152: the interactive Column View overlay — cursor, edit modes, key handling — over vix-org’s resolved spec), vix-org-table (the built-in table editor: structural edits + TBLFM formulas), vix-org-capture (capture templates + placeholder expansion), vix-affix (prefix/suffix add/drop/toggle helpers), vix-roam (Org-roam nodes/backlinks/dailies/transclusion), vix-org-contacts (contact parsing + vCard). |
| Run / test | vix-tasks (named tasks.toml tasks, project-type lifecycle commands, task discovery, monorepo subprojects, test-at-point — Project menu), vix-test-runner (parse test output into a pass/fail tree), vix-terminal (integrated shell), vix-project-env (T667: venv/direnv/mise environment activation applied to LSP, tasks and the terminal; direnv/mise only in a trusted workspace — Project → Reload Environment), vix-diff-view (compare-with-file), vix-coverage (T210: LCOV/Cobertura XML report parsing for the coverage gutter — Tools → Load Coverage File…). |
| Config | vix-editorconfig (.editorconfig parsing, and Vim/Emacs modelines in its modeline module), vix-macros (persisted keyboard macros), vix-workspace (.toml workspace: folders + files + split pane tree), vix-settings (confy-backed Settings), vix-session (save/restore), vix-settings-bundle (T555: bundle config.toml/macros/keybindings/user dictionary/the active custom theme into one file for vix --export-settings/--import-settings and Vix → Export/Import Settings…; host-agnostic so the CLI path can call it before any App exists, same reasoning as vix-doctor). |
| Scripting | vix-script — Rhai user scripting (crates/vix-script/spec/index.md); a plain (non-optional) dependency, wired into the App shell as of T103: scripts load at startup and on script.reload, registered commands appear in the command palette (script:<stem>:<id>) and Tools → Scripts → Run…, prompt/message/error use the real prompt overlay and message drawer. T104 (wiring bind_key into the real keymap) is done as of T104j — see the Keybindings row below. Only T105 (sample scripts + docs) remains open. |
| Modal editing | vix-modal — the real modal-editing engine for the Vi/Spacemacs keymaps: modes, operator × motion composition, counts, registers, text objects, dot-repeat (crates/vix-modal/spec/index.md); replaces vim_normal_key’s ad hoc binding table in tui/src/app.rs. Design-only as of T111: no functional code until T112. |
| Tutor | vix-tutor — an interactive, in-editor tutorial: six chapters whose lessons are real, freely-editable Vix buffers copied to a working temp dir, with cheap textual progress checks against what the learner typed (crates/vix-tutor/spec/index.md); launched via vix --tutor or Help → Tutorial. Design-only as of T401: no functional code until T402. |
| Keybindings | vix-keybindings — an exhaustive, queryable registry of every built-in keybinding across all 14 keymap ids, plus the user (keybindings.toml)/script (bind_key) override layer built on it (crates/vix-keybindings/spec/index.md). Epic complete, T104a–j. All 10 keymap ids converted (Emacs T104a, Vi/Spacemacs T104b, VS Code T104c, IntelliJ T104d, Eclipse T104e, Sublime T104f, Apple T104g): emacs_key, vim_normal_key, spacemacs_leader_key, vscode_ctrl_key, intellij_key, eclipse_key, sublime_key, and apple_ctrl_key all dispatch through the registry now (Binding/ChordContext/KeymapTable/lookup/shortcuts_for, plus lookup_sequence for Spacemacs’s leader-style sequence matching); intellij-macos/intellij-windows are two genuinely different tables (unlike VS Code’s one shared table); Apple genuinely mixes Shift-guarded and Shift-agnostic letters in one keymap, the latter via IntelliJ’s “faithfully preserve an unguarded quirk” duplicate-row technique applied more broadly. global_shared_key (called identically by every keymap, not itself keyed on one) is backed by a separate keymap-agnostic SHARED/lookup_shared list for its unconditional bindings. T104h: Settings::keybindings_path() + user_bindings::{UserBinding, load, upsert} round-trip keybindings.toml for real, mirroring macros.toml’s pattern. T104i: the on_key choke point is real — overrides::{Source, Override, Conflict, Shadow, Resolved, resolve} resolves override requests against each other (two claiming one token → both rejected, reported as an error) and against a keymap’s built-ins (shadowing → not a conflict, reported once informationally); App::override_key (inserted between org_table_key and every keymap’s own dispatch) consults the resolved key_overrides map ahead of all 10 keymaps; a new keybindings.reload action (+ Tools-menu leaf) mirrors script.reload. T104j: App::resolve_key_overrides (renamed from the narrower load_key_overrides) now also walks every loaded script’s bindings (action id format!("script:{stem}:{command_id}")) into the same combined resolution — a script and a persisted override (or two scripts) claiming one key really do both get rejected now, not just in theory; script.reload re-resolves too, alongside keybindings.reload. Closes crates/vix-script/spec/index.md’s “Key bindings” conflict-handling contract for real — the original T104 ask, opened at the very start of this whole epic. T204, done: vix-keybinding-editor-panel (crates/vix-keybinding-editor-panel/spec/index.md) is a sibling crate holding Source/Row/Column/Panel for the editable Vix → Keybindings… overlay (rebind by typing a token, reset a user override) — the data/table layer, App-side row-building (tui/src/ui.rs’s draw_keybinding_editor), and dispatch wiring (tui/src/app/overlays.rs’s OVERLAYS row for keybinding_editor_key) are all in place. |
| AI | vix-ai-agents (native Codex and Claude Code conversations), vix-acp (T635: Agent Client Protocol client – newline-delimited JSON-RPC framing, a pure session state machine, workspace path/permission policy; behind its process feature, enabled only by root ai, the agent subprocess; started only for a trusted workspace – AI → Start Agent), vix-ai-panel (chat panel), vix-ai-diff (AI diff review), vix-ai-core (T124: direct HTTP clients for Anthropic/OpenAI-compatible/Ollama, an alternative to the CLI shell-out every AI feature still defaults to). |
| Database | vix-db (the DB menu workbench, crates/vix-db/spec): a full-screen overlay over embedded sqlx Any drivers (bundled SQLite, pure-Rust Postgres/MySQL over rustls). Submodules: session (one persistent connection per workbench on a worker thread; blocking run + async send/poll streaming Chunks + restart), connect (saved-connection model + URLs), catalog (schema tree + per-engine metadata/EXPLAIN/DDL SQL), relations (per-table outgoing/incoming foreign keys + dependent views), editor/highlight/complete/alias/format (SQL editor: statement split, write detection, JOIN- and alias-aware autocomplete, beautify), results (grid: filter/sort/select/append), staging (staged updates/inserts/deletes and the one-row-each commit SQL), columns (generated columns and pick lists from enums/CHECK … IN/booleans), row_filter (server-side row search WHERE builder), store (history + saved queries + session query log), export (6 formats), ai (schema-only NL→SQL, spawn_ai bridge), chart (ASCII bars), erd (Mermaid ER diagram), import (CSV/TSV → table), compare (schema compare, T785: snapshot model, read PostgreSQL/SQLite catalog readers, diff, plan phase ordering, review screens), params (:name binds), secret (credential waterfall: password_command + OS keyring), tunnel (SSH -L forward). |
| Text tools | vix-format-tool, vix-jwt-tool, vix-base-tool, vix-base64-tool, vix-url-tool, vix-uuid-tool, vix-zid-tool, vix-checksum-tool, vix-regex-tool, vix-markdown-preview, vix-convert-tabular, vix-convert-from-*-into-*-tool (12). |
| Pure text ops | vix-align (align lines on a delimiter), vix-textops (line-ending convert / squeeze blanks / ROT13 / hard wrap, plus cursor-relative rewrites: increment number, smart toggle, transpose chars/words/lines/sentences/paragraphs/sections, wrap paragraph, sentence_starts, tag_column), vix-case (selection case transforms), vix-emmet (abbreviation → HTML), vix-tags (HTML/XML matching-tag jump). Pure text → text / offset helpers with unit tests, driven from Edit/Go/Tools actions. |
| Input types | vix-input (GUI Phase 0: backend-neutral KeyEvent/KeyCode/KeyModifiers/MouseEvent, mirroring crossterm’s shapes; every key/mouse handler takes these, and only the terminal loop in tui/src/main.rs converts crossterm events, via the crossterm feature — see crates/vix-input/spec/index.md). |
| Pure list ops | vix-list-state (T144: up/down/page_up/page_down/select_index/ensure_visible — shared selected/scroll arithmetic for a scrollable single-selection list; plain functions over usizes, not a struct panels adopt, so every panel keeps its own field names — see crates/vix-list-state/spec/index.md). |
| Byte size | vix-byte-size (Run H, T521: human_bytes(n: u64) -> String, e.g. "16.0 KiB" — extracted after vix-file-information-panel and vix-system-information-panel were found hand-rolling an identical copy each). |
| Civil date | vix-civil-date (Run H, T520: Howard Hinnant’s civil_from_days/days_from_civil — extracted after vix-file-information-panel, vix-git, and vix-org were found each hand-rolling an independent copy of the same algorithm). |
| Capped stack | vix-capped-stack (Run H, T525: push_capped<T>(stack: &mut Vec<T>, item: T, cap: usize) — extracted after every vix-edit-* crate’s undo stack was found hand-rolling an identical “push, evict oldest if over cap” clamp; deliberately not named “undo,” since it isn’t undo-aware and doesn’t overlap vix-undo-store, a different, persistent-undo feature). |
| Encoding | vix-encoding (T661: TextEncoding + detect/decode_exact/decode_lossy/encode over encoding_rs/chardetng — a guessed encoding counts only if it round-trips byte for byte; UTF-16 encoded by hand; Unmappable instead of ? substitution. Used by vix-fileops reads and vix-editor saves). |
| Hex RGB | vix-hex-rgb (Run H, T530: rgb(hex: &str) -> (u8, u8, u8), lenient — missing/invalid components zero-fill rather than error — extracted after vix-editor-core and vix-base16 were found hand-rolling an identical copy each; not a replacement for vix-color-converter-tool::from_hex’s deliberately stricter, rejecting API). |
| Greedy wrap | vix-greedy-wrap (Run H, T526: wrap_line(line: &str, width: usize) -> Vec<String> — extracted after vix-welcome-panel and vix-ai-panel were found hand-rolling independent copies that disagreed on over-long-word handling; the user chose “always break” as the merged behavior. Not vix-textops::wrap/wrap_chunk, which solve the harder multi-line editor-buffer wrap problem). |
| Networking | vix-http-client (.http-buffer parser + blocking ureq send; response into a tab), vix-hl7 (T685: HL7 v2 ER7 parser, numbered field view, ACK reader, pure MLLP framing, and — behind its net feature, enabled by vix-tui’s http — a blocking timeout-bounded TCP sender; Tools → HL7 View / HL7 Send…; no PHI logged or persisted). |
| Networking | vix-http-client (.http-buffer parser + blocking ureq send; response into a tab). |
| IM (IRC) | vix-im-irc (T751: IRCv3 client for the IM menu — pure line codec with message tags and server-time, CTCP ACTION, ISUPPORT case mapping, UTF-8-safe splitting under 512 bytes, and a registration/CAP/SASL PLAIN/PING state machine emitting its own Events; behind its net feature, enabled by vix-tui’s im capability (T752), a TLS (rustls + webpki-roots) connection thread talking to the App over channels; nothing logged, the password wiped after SASL). |
| IM (Matrix) | vix-matrix-protocol (T793: Vix’s side of the Matrix bridge — the JSON-lines protocol spoken with the separate Matrix helper program in matrix/ (Request/Reply, "v": 1, error keys instead of prose, a redacted Password wiped on drop) and its total codec; behind its net feature, enabled by vix-tui’s opt-in matrix feature, finding and starting the helper and pumping its stdin/stdout on two threads, plus an in-memory Handle::pair for tests). |
| FHIR | vix-fhir (T684: HL7 FHIR client logic — .vix/fhir.json Profile with env-var-named secrets, Spec/BuiltRequest for read/search/create/update/delete/history/capabilities, parse_bundle + BundlePanel, parse_operation_outcome; optional net feature runs requests and SMART client-credentials token fetch over vix-http-client). |
| Cowork | vix-cowork (T691: pure real-time collaboration core — Loro CRDT SharedDoc, peers/permissions, SharedPath confinement, wire codec, presence, host/guest session state machines incl. per-peer undo and T696 workspace-sharing requests, the is_private never-share list, the T697 shared-terminal messages, T756 session chat (Chat/ChatMuted, mute and kick; tags 50–63 reserved for later chat messages) and the T759 shared .vix/cowork/notes.md path; no I/O), vix-cowork-net (T694: Noise-encrypted, invite-token-authenticated TCP transport for the cowork feature). App wiring: tui/src/app/cowork.rs (Tools → Cowork, T695) with cowork_off.rs stand-ins. |
| Jupyter | vix-jupyter-core (T734a: pure Jupyter protocol core — signed wire codec with size caps and constant-time HMAC-SHA256 verification before any JSON is parsed, typed messages, the connection file, kernel.json parsing and the kernelspec search path, the Output/MIME model, ANSI stripping, the Org #+RESULTS: formatter and babel header arguments, checked PNG/JPEG decoding; no I/O), vix-jupyter (T734b: kernelspec discovery; behind its process feature, enabled only by vix-tui’s opt-in jupyter feature, kernel launch with a 0700 runtime directory and 0600 connection file, IPC on Unix / loopback TCP on Windows, and a zeromq client on a current_thread tokio worker thread behind the synchronous KernelHandle + KernelEvent channel, and PrivateDir). The App wiring (T734c–T734g: Run → Jupyter, Org babel #+RESULTS:, trust, image tabs) is tui/src/app/jupyter.rs and tui/src/app/jupyter/results.rs. Design: spec/jupyter. |
| Undo store | vix-undo-store (persist/restore the undo tree per file under <config>/undo/, content-hash guarded; local_history: timestamped per-file snapshots under <config>/history/, T720), vix-undo-tree-panel (T638: Edit → Undo Tree… — the undo tree as an ASCII graph; moving the selection previews a state live, Enter keeps it, Esc restores). |
| Clipboard | vix-clipboard (process-wide serialized clipboard access; the platform pasteboard is opt-in through use_system, so a test run never touches it). |
| Themes | vix-theme (Nerd Font icons + theme style helpers + T628 color-depth fallback), vix-theme-model (the JSON theme model + serialization), vix-base16 (bundled base16 color themes), vix-theme-editor-panel (T202: Vix → Theme → Edit Theme… — list a theme’s 15 color slots, edit each via the existing X11 color picker, live preview, Save As). |
| Edit surfaces | vix-edit-value (JSON/YAML tree, Tree + Format), vix-edit-bytes (hex/ASCII byte editor, Hex), vix-edit-sql (SQL statement list, Editor), vix-edit-outline (T152: prose-hierarchy outline, Tree + Outcome), vix-edit-table (T152: CSV/TSV spreadsheet grid, Grid + Outcome). Overlay editors with their own handle_key/Outcome, under Edit → Mode. (vix-column-view, above, is this family’s Org-specific sibling.) |
| Large files | vix-large-file (T733: the Large File Viewer — a read-only, chunked view of multi-gigabyte files: Source positioned reads (read_at/seek_read, no memory map), a background sparse LineIndex (every 1,024th line), a streamed cancellable Search, and the Viewer state with handle_key → Outcome; local files only; File → Open in Large File Viewer… and the T571 size-limit confirmation). |
| Generators | vix-qr-tool (QR code via the qrcode crate, Unicode renderer), vix-lorem (deterministic lorem-ipsum text). |
| Tool dialogs | vix-calculator-tool, vix-color-converter-tool, vix-unit-converter-tool, vix-pomodoro-tool. |
| Info panels | vix-text-information-panel, vix-file-information-panel, vix-system-information-panel, vix-status-bar-panel, vix-workspace-dashboard-panel, vix-outline-panel, vix-todo-tree, vix-choice-list, vix-welcome-panel. |
| Menu / find | vix-menu (3-level dropdown + command mode), vix-palette (command palette / fuzzy), vix-find-panel (find/replace state + engine), vix-workspace-search (T152: workspace-wide search/replace panel state, across every file under the workspace root — App drives the actual scan), vix-structural-replace (T201: $X/$$X-hole pattern matching, token/bracket-based rather than regex or tree-sitter). Interactive step-through query-replace (Decision, QueryReplace) lives directly in tui/src/app.rs (T151: folded in from a former single-purpose crate whose sole consumer was always the App shell — see spec/find-and-replace/index.md); its structural sibling StructuralReplace lives there too. |
| Pickers | vix-ascii-character-picker, vix-html-character-picker, vix-nerd-font-picker, vix-x11-color-picker. |
| Boxes | vix-calendar-panel, vix-clock-panel. |
| Contacts | vix-vcard-parser (RFC 6350), vix-vcard-panel, vix-contact-panel. |
| Docks | vix-left-dock (explorer), vix-right-dock (messages), vix-bottom-dock (output buffer). |
| Authority | vix-authority (T710/T711: the process-wide authority slot — one Authority trait owning workspace file access and process spawning; LocalAuthority delegates to vix-fileops/std unchanged, FakeAuthority maps a virtual namespace onto a temp dir and records calls, conformance::run is the suite every authority must pass; SshAuthority (T712, ssh feature) works on another machine through the system ssh with ControlMaster, POSIX sh and coreutils, and ssh::SshTarget parses ssh:// and TRAMP /ssh: names; agent (T717) is the remote agent vix --remote-agent serves (a framed, batched, version-locked protocol) and AgentAuthority over it, which SshAuthority uses when a same-version vix is on the remote machine (or, opt-in, uploads one, SHA-256 checked remotely); since T718 SshAuthority is ShellAuthority<SshTransport> and container::ContainerAuthority is the same shell authority through docker/podman/kubectl exec or wsl.exe (docker://, podman://, k8s://, wsl:// names), with remote::RemoteTarget covering every remote name. Config, session, undo and other per-user state stay on std::fs on purpose — see its spec). |
| Files / ops | vix-fileops (explorer copy/cut/paste/delete filesystem helpers), vix-file-browser-panel (File → Open… browser: one folder at a time, typed paths, fuzzy/glob/ext filter, sort). |
| Models | vix-keymap-model, vix-locale-model, vix-theme-model, vix-time-zone-model. |
| Help | vix-keyboard-shortcut-panel, vix-action-catalog (T147: (action id -> i18n title key) catalog for every run_action id titled nowhere else — no vix-menu leaf and no palette::COMMANDS entry. App::action_title (F1 help, the keybinding editor) falls back to it before the raw id; the command palette’s > mode appends it directly to COMMANDS; shortcuts_for-based UI, once any exists, can pair its results with it the same way), vix-doctor (T553: environment checks — git on PATH, configured LSP servers spawnable, the active locale’s spellcheck dictionary loadable, terminal color support — for vix --doctor and Help → Run Diagnostics; host-agnostic by design so the CLI path can call it before any App exists). |
| i18n | vix-i18n (embedded rust-i18n catalog). |
Other top-level paths
| Path | Contents |
|---|---|
crates/ | The 148 vix-* workspace member crates (each with its own spec/). |
crates/vix-editor-core/langs/ | Tree-sitter highlight queries (<lang>/highlights.scm), embedded. |
crates/vix-i18n/locales/ | rust-i18n translations, one YAML file per key namespace (action, menu, msg, ui, …); English is the fallback. |
/dictionaries/ | Hunspell dictionaries — fetched separately, gitignored, absent from a fresh clone; see crates/vix-spellcheck/spec/dictionaries. |
tui/themes/ | Bundled JSON color themes (embedded by the TUI). |
spec/ | Cross-cutting / app-level and build/meta specs (per-crate specs live in crates/<crate>/spec/). |
docs/ | Architecture, keybindings, themes, i18n, LSP, configuration, panels. |
tui/examples/ | Runnable headless examples (headless_edit.rs, list_commands.rs — which also regenerates docs/reference/ with --write — generate_man.rs, render_frame.rs, org_export.rs, …), plus config/, scripts/ and the demo-workspace/. |
tui/tests/ | tui/tests/integration/main.rs (+ one submodule per area — catalog, cowork, editing, git, ide_parity, im, large_file, mcp, org, … and common), authority_*.rs and remote_*.rs (remote editing; authority_ssh.rs is opt-in against a real sshd), mcp_stdio.rs, spawn_sites.rs, action_catalog.rs, db_smoke.rs, lsp_smoke.rs, i18n_keys.rs, example_scripts.rs, snapshots.rs (+ snapshots/*.snap) — terminal-independent tests. |
fuzz/ | cargo-fuzz targets over the pure text/parse cores. |
tui/ | The terminal UI: package vix-tui (command vix, library crate vix) — the App shell’s src/, tests/, benches/, examples/, themes/, man/, wix/ (T643). |
gui/ | The desktop GUIs — GPUI, egui, iced, GTK 4, Slint and BUI front ends, each a self-contained implementation (no common GUI library) — in their own [workspace] so no GUI toolkit enters the terminal build; see gui/spec/index.md. |
tui/benches/ | Criterion benchmarks (cargo bench). |
scripts/ | check (the CI-parity gate), check-docs (documentation integrity and CSpell), check-binary-licenses, docs-coverage, bench-large-file, test-ssh-local (T719), build-linux-packages, packaging (T742: check/render the winget, Scoop and AUR templates), and the demo/theme-gallery renderers. |
packaging/, docker/, flake.nix | Install-channel templates (winget, Scoop, AUR, Nix) and the container image (T742, T743) — the templates are not published or verified, and the image is built on every version tag but its ghcr.io package is not public yet; see packaging/index.md. |
vixide.github.io/ | The public GitHub Pages site (SvelteKit + Lily Design System), a monorepo subproject — see spec/monorepo-github-pages/index.md. Maintained here; published to the read-only sibling repo git@github.com:vixide/vixide.github.io.git via git subtree push, never edited there directly. |