Skip to content

feat: open with other apps, more grammars, footer root and branch - #18

Merged
riipandi merged 18 commits into
mainfrom
refactor/comment-references
Nov 28, 2026
Merged

riipandi merged 18 commits into
mainfrom
refactor/comment-references

Conversation

@riipandi

Copy link
Copy Markdown
Owner

Lands four pieces of work stacked on one branch, each as its own commits:

  • plan-00017 (RI-14, RI-15, RI-16): open in other apps. o opens the file with its default app, e opens the browsed folder in the editor setting (Finder when empty), E shows the file in Finder, and O opens an Open With picker. The picker lists your open_with apps first, then the apps macOS suggests, and Finder always last. Everything runs through /usr/bin/open and one fixed JXA script with argv only, never a shell. The context menu gains an Open group and now scrolls.
  • plan-00018 (RI-17): the rest of the grammar set. query (.scm) and json5 come from crates. vimdoc, luadoc, luap, and just come from vendored parsers built by build.rs with cc. Lua string patterns are highlighted as luap. luadoc inside Lua comments is not done, because OpenTUI 0.9.9 does not evaluate #offset!. eex stays parked because it has no licence.
  • plan-00019: the footer. At 60 columns and up, the footer shows the browsed root and ⎇ branch instead of the open file's path. The compact bar does not change.
  • Comments state their reason. No comment cites a plan, roadmap entry, decision ID, or doc file any more. This is the owner's new rule, now in AGENTS.md. .claude/worktrees/ is ignored.

New dependencies, approved by the owner: tree-sitter-tsquery 0.8.0, tree-sitter-json5-orchard 0.1.1, and cc (build). Each parity deviation is recorded in architecture.md and docs/parity.md.

just verify: 828 passed, 1 skipped. The live runs are in each plan's handover (handover-00013, -00014, -00015).

Not tested: launching a real app (o, e, E, picking from O), and the colours in a real terminal.

🤖 Generated with Claude Code

riipandi and others added 18 commits November 28, 2026 14:57
plan-00017 opens files and folders in other apps (RI-14, RI-15, RI-16);
plan-00018 highlights the rest of the owner's grammar set (RI-17). The owner
chose every recommendation. Also allows rm inside /tmp and /private/tmp in
the project's Claude settings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds services/launch.rs: open_args and run_open for /usr/bin/open (argv only, the target after --), and list_apps and
parse_apps for the one constant JXA script run by osascript. capture moves to services/mod.rs so git and the launcher
share the timeout and the cap; its errors name the program.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`o` opens the selected row, or the shown file in the reader, with the macOS default app; a folder opens in Finder. The
context menu's Open row does the same, and the binary notice names the key. A launch runs on a worker and reports in the
footer: success clears after 2 seconds, and a failure is the first line of open's stderr.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`editor` in settings.json names an app (a name or a path) that `e` opens the browsed folder with; empty, the default,
opens it in Finder. `E` shows the selected row, or the shown file, in Finder (`open -R`). The editor is not on the
Settings page. The context menu gets a Show in Finder row on a row, and an Open Folder in Editor row on empty space.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`O` opens a picker for the selected row or the shown file, folders too. Its rows are the apps the `open_with` setting names
for the file's pattern, then the apps macOS lists (the default marked), then Finder, which is always last. A picked app
gets the file through `open -a`; Finder reveals a file and opens a folder. The menu scrolls when it is longer than the
screen. The pattern table is shared with `file_associations`, so both pick the same pattern. The plan records D8 and D9.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Documents `o`, `O`, `e`, and `E`, the `editor` and `open_with` settings, and the menu's scrolling in the usage, the
configuration, and the parity pages. The agent docs record the decisions (two architecture records, the launch rules in
`rules.md`, the Rust contracts), mark RI-14 to RI-16 landed, and archive plan-00017 with handover-00013.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two grammar crates that load on the locked tree-sitter 0.27.2 with no vendored C:
tree-sitter-tsquery 0.8.0 (query files, .scm) and tree-sitter-json5-orchard 0.1.1
(.json5). Their queries and LICENSE files sit beside the registration. The query's
lua-match predicates become match, and its spell captures are dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…parsers

Four C parsers the locked tree-sitter 0.27 runtime loads once compiled, vendored at
pinned upstream commits under vendor/grammars/ and built by build.rs with cc.
vimdoc (Vim help, through a file_associations pattern) and just (justfile by name)
are filetypes; luadoc and luap are injection-only. Their queries are copied with
their LICENSE files. Cargo.toml loses the comment lines the working copy had lost,
as the owner decided, and .gitignore no longer hides vendor/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The pattern argument of find, match, gmatch, and gsub in a Lua file is injected
as a luap pattern, from nvim-treesitter's rule (Apache-2.0, LICENSE.nvim-treesitter
beside the query). The luadoc rule for --- comments is not in this commit: OpenTUI
does not evaluate the offset directive that drops the comment's leading dash, and
the luadoc grammar does not parse a body that starts with one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
RI-17 is landed in part: query, json5, just, and vimdoc are highlighted, and luap
is injected into Lua's pattern arguments. luadoc in Lua's --- comments and eex stay
parked, with their unlocks in the roadmap. The grammar-load spike's section 5 gets
the corrected links wording and the outcome. plan-00018 moves to the archive with
its handover, and the index lists both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The owner's rule: a comment in code or config never cites a plan, a roadmap
entry, a decision ID, or a doc file. Also records the vendored grammar
symbol contract in rust.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The browse poll reads the branch of the browsed root with the marks, so a
checkout in another terminal shows within one poll. A detached HEAD reads
as its short hash, and a folder outside a repository has none.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The footer's left side shows the browsed root, tildified, and the branch
as `⎇ name` (a detached HEAD shows its short hash), on the files, reader,
Settings, and changes screens from 60 columns up. The root is cut from the
left first; the branch is cut only once the root is down to its last name.
The selected path leaves the footer, and the reader's header still names
the file. Below 60 columns the bottom bar is unchanged.

This departs from Scouter, which shows the selected path there; the record
is architecture.md, "Approved deviation: the footer shows the browsed root
and the git branch", and docs/parity.md lists it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Going up a folder moves the browsed root, and the branch shown was read for
the old one. It is cleared at the move, so a stale branch never shows; the
next browse poll names the new root's branch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The footer's root and branch are documented where a fact lives: the
deviation record (architecture.md, D1 to D7, with the owner's narrowing to
60 columns and up), the usage page, the design row, and the shape of the
git and poll services. plan-00019 is archived with its owner decisions and
accepted deviations; handover-00015 records the live run and the checks
left for the owner. The index lists both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comments in code and config no longer cite a plan, a roadmap entry, an
issue, a decision or option ID, or a doc file. Each one states the reason
itself, or is deleted when it only pointed elsewhere. Where a deviation from
Scouter was cited by record, the comment now names the difference. Only
comments changed: no code, string, or test data, and the test count is the
same (828 run, 1 skipped).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@riipandi
riipandi merged commit 83cdd66 into main Nov 28, 2026
4 checks passed
@riipandi riipandi mentioned this pull request Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant