navi icon indicating copy to clipboard operation
navi copied to clipboard

Add optional arguments

Open Signum21 opened this issue 11 months ago • 2 comments

It would be useful to have optional arguments for commands, possibly with selectable values.

An example that works for the ls command.

# List files
ls <parameters>

$ parameters: echo -e "-l\n-a\n"
screen

The last \n creates a blank line that can be selected to avoid choosing an option.

This method doesn't work for optional parameters that require a value, for example head -n 5

Signum21 avatar Mar 11 '24 02:03 Signum21