[Feature Request] Remove "_." prefix when displaying or accessing variables
See original GitHub issueHello everybody,
I’ve been using insomnia for along time, but I have an issue with some workspaces:
1- When declaring an env variable I was able to access them using {{name}}
but now I always got {{_.name}}
.
2- I was able to use nested variable declaration for example:
Workspace
│
└─ Environments:
│
└── Development (Sub-Env) // json: {"base_url": "https://example.com"}
│
└─ Folders
│
└── API (Folder) // json: {"base_url": "{{base_url}}/api"}
│
└─── V1 (Folder) // json: {"base_url": "{{base_url}}/v1"}
│
└──── // etc..
// At the end we need to get full joined url for example:
// {{base_url}}: https://example.com/api/v1/etc..
In some workspaces I got the correct result but in other I got something like:
http:///%7B%7B%20_.base_url%20%7D%7D/v1/v1/v1/v1/v1/v1/v1/v1
I’ve export data and reinstall app and import data again but same problem.
Any suggestions!
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:9 (2 by maintainers)
Top Results From Across the Web
How to remove prefix for number variables for existing records ...
Solved: How to remove prefix for number variables for existing records in Incident table, Example: usually number like INC0010043 , but my.
Read more >Remove prefix (or suffix) substring from column headers in ...
I had a similar request, needed to strip off a prefix for the columns headers. In my case the prefixes ...
Read more >Custom Prefixes for Amazon S3 Objects
If you are using an AWS Lambda function to create partitioning keys for your source data, you must specify an S3 bucket prefix...
Read more >Use environment variables in solution custom connectors ...
Enter the environment variable name, which contains the publisher Id prefix. (Don't use the name in the Display name field.).
Read more >Variable substitutions - Octopus Deploy
This is sometimes referred to as using Composite variables, ... to force the replacement to ignore the substitution and remove the extra #....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, just chipping in that almost a year later, there is still a big confusion for me (new user) on why autocomplete inserts
_.
when my env vars do not specify them. Even more confusing is why it still works without the prefix… It leads me to believe the prefix should just be removed from insomnia? At minimum the docs should briefly cover why it existsThanks for commenting on this. It’s good to understand why this was changed.
Personally, I think the
_.
prefix looks a little messy and makes things a bit less readable, so I’d definitely +1 any improvements that can be made there.I like the idea of using hyphens in variables though.