Snipline Docs

Multi-Choice Presets

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

Found an issue with our documentation? Submit an issue/pull request!