Repository navigation
feat: open with other apps, more grammars, footer root and branch - #18
Merged
Merged
Conversation
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>
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lands four pieces of work stacked on one branch, each as its own commits:
oopens the file with its default app,eopens the browsed folder in theeditorsetting (Finder when empty),Eshows the file in Finder, andOopens an Open With picker. The picker lists youropen_withapps first, then the apps macOS suggests, and Finder always last. Everything runs through/usr/bin/openand one fixed JXA script with argv only, never a shell. The context menu gains an Open group and now scrolls..scm) and json5 come from crates. vimdoc, luadoc, luap, and just come from vendored parsers built bybuild.rswithcc. 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.⎇ branchinstead of the open file's path. The compact bar does not change..claude/worktrees/is ignored.New dependencies, approved by the owner:
tree-sitter-tsquery0.8.0,tree-sitter-json5-orchard0.1.1, andcc(build). Each parity deviation is recorded inarchitecture.mdanddocs/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 fromO), and the colours in a real terminal.🤖 Generated with Claude Code