Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ensure spec and builtin commands show up before misc ones #240724

Merged
merged 37 commits into from
Feb 19, 2025

Conversation

meganrogge
Copy link
Contributor

@meganrogge meganrogge commented Feb 13, 2025

fix #239977

Screen.Recording.2025-02-14.at.2.50.24.PM.mov

@meganrogge meganrogge requested a review from Tyriar February 13, 2025 22:04
@meganrogge meganrogge self-assigned this Feb 13, 2025
@meganrogge meganrogge added this to the February 2025 milestone Feb 13, 2025
@meganrogge meganrogge enabled auto-merge (squash) February 13, 2025 22:05
Tyriar
Tyriar previously requested changes Feb 14, 2025
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Nice solution to start with! I wanted built-ins specifically boosted but we can now do that by adding more details as needed to the shell/ files

@meganrogge meganrogge changed the title ensure spec commands show up before misc ones ensure spec and builtin commands show up before misc ones Feb 14, 2025
@meganrogge meganrogge requested a review from Tyriar February 18, 2025 17:00
Tyriar
Tyriar previously approved these changes Feb 18, 2025
Copy link
Member

@Tyriar Tyriar left a comment

Choose a reason for hiding this comment

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

Looks good to merge and polish up after once CI passes. I made #241128 for me to follow up, please create any other issues from this that we should close out afterwards if you have any.

@@ -8,20 +8,20 @@ import cdSpec from '../../completions/cd';
import { testPaths, type ISuiteSpec } from '../helpers';

const expectedCompletions = ['-'];

const cdExpectedCompletions = [{ label: 'cd', description: (cdSpec as any).description }];
Copy link
Contributor Author

@meganrogge meganrogge Feb 19, 2025

Choose a reason for hiding this comment

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

@Tyriar fyi these as any casts were needed bc it said description did not exist on fig.spec, which makes no sense

rebornix
rebornix previously approved these changes Feb 19, 2025
@meganrogge meganrogge merged commit edac0c5 into main Feb 19, 2025
8 checks passed
@meganrogge meganrogge deleted the merogge/sort-order branch February 19, 2025 01:58
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.

Terminal suggest: Prioritize built-ins and commands with fig specs for same scored items
5 participants