You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you use DefaultValue & ShowDefaultValue together, that works well when I'm asking questions or adding something new. But when I need to edit something that is existing I would like the prompt to appear with the value there for editing.
Maybe there is already a way to do this, but I can't seem to find it if there is.
Probably explaining this horribly. But if I'm having the user edit a setting for instance. I don't want them to have to retype everything to change 1 char. Or do a bunch of copy/pasting. I would like the old value to be there to edit. So sort of like DefaultValue behaves, but it's as if the person has typed the value into the prompt and can now edit it.
Maybe call it InitialValue or InitialText
If this is not something that already exists, where would one implement this? Would it be in AnsiConsoleExtensions.ReadLine in AnsiConsoleExtensions.Input.cs ?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
When you use DefaultValue & ShowDefaultValue together, that works well when I'm asking questions or adding something new. But when I need to edit something that is existing I would like the prompt to appear with the value there for editing.
Maybe there is already a way to do this, but I can't seem to find it if there is.
Probably explaining this horribly. But if I'm having the user edit a setting for instance. I don't want them to have to retype everything to change 1 char. Or do a bunch of copy/pasting. I would like the old value to be there to edit. So sort of like DefaultValue behaves, but it's as if the person has typed the value into the prompt and can now edit it.
Maybe call it InitialValue or InitialText
If this is not something that already exists, where would one implement this? Would it be in AnsiConsoleExtensions.ReadLine in AnsiConsoleExtensions.Input.cs ?
Thanks. Love the library btw.
Beta Was this translation helpful? Give feedback.
All reactions