insomnia icon indicating copy to clipboard operation
insomnia copied to clipboard

[Feature Request] Quick variable editing

Open Cretezy opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. Editing variables currently take at least 3 clicks:

  • The environments dropdown
  • Manage Environment button
  • (Select environment)
  • Click inside the text field

Describe the solution you'd like When clicking on a variable, in the "Edit Variable" dialog, should have a quick way to change the variable. This would be simpler:

  • Click variable where it's used
  • Click field

Would be either below or above the preview: image

Describe alternatives you've considered Can't think of any simple solution that would be low effort like this one.

Cretezy avatar Jan 14 '20 23:01 Cretezy

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jun 01 '21 23:06 stale[bot]

This would be kinda tricky

  • You have to know which environment to edit, either the currently selected one or the base environment
  • When using templated variables {{_.url}}/{{_.path}}/{{ _.userID }}, it wouldn't be clear which variable to edit. I think the best UX would be to have an input field to edit for each variable that is used in the template, but that might be difficult.
  • Custom templates are even more tricky and probably should/could not be editable

If this is limited to only editing plain variables, with no templating, it should be pretty straightforward and add some value.

I attempted that and got it sort of working, but I don't think I'm familiar enough with Nunjuncks to get it fully working. https://github.com/nbgraham/insomnia/pull/1

nbgraham avatar Jul 21 '23 18:07 nbgraham