Skip to content

fix(browse): simplify direct browse targeting#247

Merged
barrettruth merged 1 commit intomainfrom
fix/browse-command-simplify
Apr 14, 2026
Merged

fix(browse): simplify direct browse targeting#247
barrettruth merged 1 commit intomainfrom
fix/browse-command-simplify

Conversation

@barrettruth
Copy link
Copy Markdown
Owner

Problem

:Forge browse had grown a custom address language that mixed repo, revision, file, and range targeting in ways that felt foreign for the common case. It also behaved badly in special buffers by trying to derive file context where none existed.

Solution

Reduce direct browse to the common cases: browse the current file, optionally on a plain rev=, and fall back to the repo or revision root when there is no real file buffer. The command docs, completion, parsing, dispatch, and tests now match that smaller interface. This also scopes two leaked compose locals from main so the branch passes CI cleanly.

Keep direct browse focused on the current file or repo root instead of a
custom repo/rev/path address language, and make special buffers fall back
to repo or revision roots predictably.

Also scope two compose locals introduced on origin/main so the branch
passes CI cleanly.
@barrettruth barrettruth merged commit d341d14 into main Apr 14, 2026
8 checks passed
@barrettruth barrettruth deleted the fix/browse-command-simplify branch April 14, 2026 00:09
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