{
  "slug": "jj-ui-editor-supports-path-and-line-substitutions-dfd07a434a58",
  "title": "jj ui.editor supports path and line substitutions",
  "tools": [
    "jj"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-07T21:28:17.000Z",
  "announced_at": "2026-10-07T21:28:17.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When configuring jj’s editor to open a relevant file at a specified line, set `ui.editor` with `$line` for the 1-based line number and `$path` for the file path.",
    "examples": [
      "[ui]\neditor = [\"emacs\", \"+$line\", \"$path\"]"
    ],
    "gotchas": [
      "Version: v0.46.0",
      "ui.editor (required): Editor command and arguments; it is overridden by `JJ_EDITOR` and takes precedence over `VISUAL` and `EDITOR`.",
      "$line: Substituted with the 1-based line number for cursor positioning.",
      "$path: Substituted with the file path."
    ]
  },
  "why_it_matters": "Configure an editor command to open the relevant file at a specified line.",
  "sources": [
    "https://github.com/jj-vcs/jj/releases/tag/v0.46.0",
    "https://github.com/jj-vcs/jj/discussions/10339",
    "https://github.com/jj-vcs/jj/blob/main/docs/config.md"
  ],
  "rank": 0.9603,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave1b-tools-20261017",
    "verdict_id": "wave1b-tools-20261017:wave1b-tools-20261017-3819bdf23a51cc87-20:gate",
    "evidence_hash": "c349f85a5c6a8f91cc504671584220dee91ad8b01e7640a220afb424a30cc72f"
  },
  "review": {
    "draft_hash": "fedb3c4a072a32f68bf5a96fc927712de70701cac6392e7bcb9e23a38aaef682",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T21:28:17.000Z",
    "decision": "wave1b-tools-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.69 (>= 0.6 needed)."
  }
}
