Dialog prompts
Any chance you could provide a mechanism for using []'s in the dialog prompts for custom commands? %d[] thinks it's finished the prompt when it finds the first ']'. Perhaps allow \ as an escape so \] would show up as ] and not terminate the prompt? \n is already handling newlines...
It's hard to write syntax style reminders like {one|of} <named_arg> [optional] if you can't, err, use a ] in the string...
|