DocsReferenceSuggestionIndicating priority

Indicating Priority

Fig users can locally configure a setting to present suggestions sorted by recency of use or alphabetical order.

When writing a completion spec, you can specify which suggestions should appear first by using the using the priority field.

Since Subcommands and Options both inherit properties from Suggestions, you can set their priority as well.

priority can be any value between 1 and 100. Suggestions have a default priority of 50. Fig's autocomplete engine takes this value, in addition to the user's sorting preference and command history, when ranking suggestions.