question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Request] Fix Nunjucks Comments

See original GitHub issue

(Somewhere between a bug report and a feature request!)

  • Insomnia Version: 5.14.3
  • Operating System: OSX 10.13.3

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!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
gte451fcommented, Jan 20, 2019

+1 for the option to edit comments. When working on APIs it’s useful to temporarily omit some parts of the payload.

3reactions
gschiercommented, Aug 22, 2019

Sorry! Not sure why Statebot closed this one

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nunjucks error reporting on imported file - Stack Overflow
In my code structure I have a main file, and import files containing macro's for the actual rendering of output. I want to...
Read more >
nunjucks templating docs
nunjucks does not sandbox execution so it is not safe to run user-defined templates or inject user-defined content into template definitions. On the...
Read more >
Pages - JMWE for JIRA Cloud - Confluence - Projects
A workflow post-function that copies all comments, or just the latest comment, ... comments to copy based on the results of a Nunjucks...
Read more >
Nunjucks templating explained on the basis of AsyncAPI ...
Edit 14.04.2021 In this post, I explain how you can use Nunjucks to template information extracted from an AsyncAPI file.
Read more >
Nunjucks Templating and CSS Styling | Eleventy RSS Reader ...
We conclude the Eleventy features by adding a final filter and some conditional template logic with Nunjucks. Then, we make progress adding ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found