Replies: 8 comments
-
👋 Thanks for opening your first issue! If you're reporting a 🐞 bug, please make sure To help make this a smooth process, please be sure you have first read the |
Beta Was this translation helpful? Give feedback.
-
Thanks for posting this @tooolbox! The editing should be an easy fix but making the highlighting wor requires writing a custom JSON highlighter and linter (currently using the CodeMirror-provided one). Not impossible, but a lot more work. |
Beta Was this translation helpful? Give feedback.
-
Huh. Yeah, I had a look at the CodeMirror parser and that looks rough, man. ...Just to throw it out there, what if you swapped any Bit of a hack, so I'd understand any objections. |
Beta Was this translation helpful? Give feedback.
-
+1 for the option to edit comments. When working on APIs it's useful to temporarily omit some parts of the payload. |
Beta Was this translation helpful? Give feedback.
-
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. |
Beta Was this translation helpful? Give feedback.
-
Any updates on this issue? |
Beta Was this translation helpful? Give feedback.
-
could we reopen this? i stumble upon this issue too! |
Beta Was this translation helpful? Give feedback.
-
Sorry! Not sure why Statebot closed this one |
Beta Was this translation helpful? Give feedback.
-
(Somewhere between a bug report and a feature request!)
Details
Per #646 Insomnia uses Nunjucks as a templating language, which supports comments in the format of
{# comment #}
such as:{ "heck": "yeah" {# great data #} }
Currently Insomnia does support this technically, but when you complete typing one of these comments, it turns into a light blue clickable button thingy embedded in the text. When you click it, it brings up a modal that has the title "Edit" but no body or other options. There's no other way to edit the comment.
As long as I'm griping, the presence of one of these comments also spoils the otherwise pristine and gorgeous syntax highlighting of my JSON payload! So they are a mixed blessing currently.
Thanks for an awesome REST client!
Beta Was this translation helpful? Give feedback.
All reactions