Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
[Prompt] Optionally make the prompt plugin pre-fill the last entered value #1597
I have added an option to the prompt plugin to save the last entered value and have that set as default value the next time the prompt shows. This saves you from having to enter all details for each request while still being able to change them if needed.
This should be full backwards compatible as the old behaviour is used when a storage key is set explicitly.
Hmm, Insomnia already has the ability to store the last value using the "Storage Key" field.
I like your PR but, since Insomnia already offers such similar functionality, I'm hesitant to merge this one. Can you describe a bit more how they are different or how they might work together?
I tried as best as I could but okay. I know very well Insomnia has that ability but this is not the same.
When you use the "storage key" method, Insomnia will not prompt again until you change the key. I'm sure there are advanced use cases but to me it is no use.
This plugin offers an option to remember the last entered value and will prompt the user every time, just like a regular prompt instance. Except this plugin will pre-fill the value field with the last entered value. No need to change keys to change your value etc.
This plugin should be fully backwards compatible and all the old functionality is still there. I set it to enabled by default but I can change this to disabled if you want.