Skip to content

Conversation

@sellout
Copy link
Contributor

@sellout sellout commented Aug 6, 2025

Overview

This implements part of #5792.

It allows the “project/branch” prefix to be omitted before UCM commands.

E.g.,

scratch/main> builtins.merge

can be written

> builtins.merge

Interesting/controversial decisions

I updated all transcripts that don’t do anything too complicated with the context to omit the context. We can drop these, or some of them, if desired.

Test coverage

There’s a new transcript that tests various aspects of the behavior. Also, all the updated transcripts work (although most of them never switch from “scratch/main”).

sellout added 4 commits August 5, 2025 16:58
I’m guessing this didn’t get caught because we only error on diffs of
committed files, and this one is new because it’s generated from
documentation.
@sellout sellout requested a review from a team as a code owner August 6, 2025 04:50
@sellout sellout requested a review from aryairani August 6, 2025 04:50
Note: this makes a network call to share to get completions. It seems to be nonfunctioning at the moment, hence the `:bug` tags.

``` ucm :bug
scratch/main> debug.tab-complete pull @uniso
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ChrisPenner random, shouldn't this tab complete work now?

Copy link
Contributor

@aryairani aryairani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉

@aryairani aryairani merged commit cb1369c into unisonweb:trunk Aug 6, 2025
17 checks passed
@sellout sellout deleted the implicit-project-context branch August 6, 2025 21:03
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.

2 participants