Skip to content

"Disable sorting of wildcards before processing" should be the default. #715

@schwern

Description

@schwern

Problem

By default, cyclical options in prompts and cyclical options in wildcards behave differently. ${number={@3|2|4}} will produce 3, 2, 4, 3, ... but in a wildcard file it will always sort them: 2, 3, 4, 2, ... This behavior is surprising and makes refactoring prompts into wildcard files difficult and confusing.

I spent quite some time trying to debug the problem and even wrote up a whole bug report before I found the "Disable sorting of wildcards before processing" option by searching the code.

Solution

"Disable sorting of wildcards before processing" should be on by default so options cycling behaves the same whether they're in a prompt or a wildcard file. This makes creating wildcard files easier.

Alternatively, document "Disable sorting of wildcards before processing"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions