Skip to content

Remembering prompts between requests #591

@MichaelXavier

Description

@MichaelXavier

Did you search for existing issues already?
Yes

Is your feature request related to a problem? Please describe.
I make use of the prompt() function for pieces of my recipes that may vary, which is especially important because I commit my slumber file to source control. I tend to hit the same recipe multiple times while testing and it gets pretty tedious to have to keep filling in the same value in the prompt. When I have multiple prompts I usually have to have a scratch pad open and keep copying and pasting the prompts.

Describe the solution you'd like
I don't know if the persistence system or if there's any concept of a session when you start slumber but I would like prompts with a given message to default to the last value entered for that prompt, or at least to be configurable to do so. Ideally this would key on the message and span the entire collection so e.g. a prompt for Order Id would be pre-filled across multiple recipes. If it could just apply to a single recipe that would still be a big improvement.

Describe alternatives you've considered
I've also tried pushing the prompt into profile data but it still prompts every time with no defaulting.

Additional context
None

Metadata

Metadata

Assignees

No one assigned

    Labels

    qolImprovements that make usage smoother, without introducing new functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions