-
Notifications
You must be signed in to change notification settings - Fork 141
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
feat: option to disable external editor in Text field #516
base: main
Are you sure you want to change the base?
Conversation
hey! thanks for the PR! would you mind adding a test for it as well? |
Yes, I can do that 👍🏽 |
I added a test and squashed the commits. |
huh_test.go
Outdated
if !strings.Contains(view, "alt+enter / ctrl+j new line • enter submit") { | ||
t.Log(pretty.Render(view)) | ||
t.Error("Expected field to contain help, without ctrl+e.") | ||
} |
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.
probably safer to check that view doesn't not contain 'ctrl+e'?
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 was trying to mirror the other text field test, but I agree with you. I updated it.
Adds the ability to disable the external editor option in text fields. I was looking for this feature when I noticed that someone else had asked for the same thing in issue #512