Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (18 sloc) 1.13 KB
title search_terms description
Multi-Choice Presets
multi-choice presets, multi-choice dynamic variables, select variables
Sometimes you might have a set of values that are often used interchangably. Multi-choice preset variables are the perfect use case for this.

Sometimes you might have a set of values that are often used interchangably. Multi-choice preset variables are the perfect use case for this.

In this example, URL is a regular variable with a default of https://. Instead of using regular variables for Request Type and Content-Type, they specify a list of options to choose from.

curl '#{[URL=https://]}' -X '#select{[Request Type=GET,POST,DELETE,PUT]}' -H 'Content-Type: #select{[Content Type=application/json,text/html;charset=utf-8]}'

The Syntax for a multi-choice preset is

#select{[Name=option 1,option 2,option 3]}

Notice the select keyword and each option is listed after the = and seperated by ,.

When triggering the copy process for a command the first 5 options have keybinds (1,2,3, etc).

Multi Choice Preset Variables

You can’t perform that action at this time.