Comments (1)
Hi! Thanks for the report. For now, you can change the keymap on the form to achieve the same effect:
textField := huh.NewText().
Title("...").
Value(&message)
form := huh.NewForm(
huh.NewGroup(
textField,
),
).WithKeyMap(&huh.KeyMap{
Text: huh.TextKeyMap{
Next: key.NewBinding(key.WithKeys("ctrl+enter"), key.WithHelp("ctrl+enter", "next")),
Prev: key.NewBinding(key.WithKeys("shift+tab"), key.WithHelp("shift+tab", "back")),
NewLine: key.NewBinding(key.WithKeys("enter", "ctrl+j"), key.WithHelp("enter / ctrl+j", "new line")),
Editor: key.NewBinding(key.WithKeys("ctrl+e"), key.WithHelp("ctrl+e", "open editor")),
},
})
from huh.
Related Issues (20)
- Shift tab back helper should be hidden if on first group HOT 5
- Spinner: Context ignored/dropped under Accessible mode HOT 3
- Add minimum selected option for multi-select HOT 3
- Add support for help-specific key bindings
- NewInput does not support utf characters HOT 3
- Goland 2024.1.1 doesn't render correctly in Run/Debug Terminal HOT 6
- Empty string as negative confirm should show only one affirmative button HOT 3
- Foreground color on any of the Focused.* fields do not apply HOT 3
- Foreground color not working on new line HOT 2
- FilePicker example doesn't compile HOT 1
- If the spinner drops out prematurely, input is invisible HOT 1
- Theme not applied to input HOT 1
- Black and white color Spinner HOT 1
- Releaase 0.3.1 for File Picker HOT 1
- Theme.FieldSeparator no longer supported in 0.4.x? HOT 1
- MultiSelect's filterable set to "false" will have no effect.
- Add Filterable for Select HOT 2
- Empty confirmation considered invalid in accessible mode HOT 1
- Add "Select All" and "Invert" Shortcuts to Multiselect
- Add `WithInput` to specify input stream
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huh.