denisidoro/cheats

Default values and cycling backwards through parameters

Closed this issue · 1 comments

Two quick questions for you:

  1. I'd often like to see a default value appear for a variable with the option of typing to replace it with something else. I came up with the following as a way to e.g. optionally select a minimum_length of 16, but do you know of a more elegant way to do this?
    $ minimum_length: echo "16 " | tr ' ' '\n'

  2. Sometimes I use CLI commands with a lot of parameters and after entering a few, I might see that I made a mistake in an earlier one and want to go back to change it. Is there a way to do this in the interactive CLI tool? (A logical way to do this would be Shift+Tab since that's the convention used in a lot of software).

P.S. You should consider starting your documentation with Hey! Listen! 😂

Oops, meant to post this in the Navi repo.