-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: create flag prompt should be on the same line as text #135
Conversation
This pull request has been linked to Shortcut Story #239302: create flag prompt should be on the same line as text. |
@@ -24,6 +24,7 @@ func NewCreateFlagModel(client flags.Client, accessToken, baseUri string) tea.Mo | |||
ti.Focus() | |||
ti.CharLimit = 156 | |||
ti.Width = 20 | |||
ti.Prompt = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this gets rid of the ">"
@@ -68,8 +69,7 @@ func (m createFlagModel) View() string { | |||
MarginLeft(2) | |||
|
|||
return fmt.Sprintf( | |||
"Name your first feature flag (enter for default value %q):\n\n%s", | |||
defaultFlagName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i removed this because the prompt felt a little long to have on one line with the input. plus with the new confirmation step they'll see the value that was used.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
before:
after: