charmbracelet / gum

A tool for glamorous shell scripts 🎀
MIT License
17.94k stars 339 forks source link

Gum write can no longer add new lines #572

Closed jscarrott closed 4 months ago

jscarrott commented 4 months ago

Describe the bug Pressing enter completes the prompt

Previously esc or ctrl-d would complete the prompt To Reproduce Steps to reproduce the behavior: Use gum 0.14.0

Expected behavior A way of doing multi-line strings

MikaelFangel commented 4 months ago

Apparently adding huh? is breaking change when it comes to keybindings and the help message for gum write is:

alt+enter / ctrl+j new line • ctrl+e open editor • enter submit

maaslalani commented 4 months ago

Hey, apologies for the breaking change. Alt+Enter or Ctrl+J would add new lines as @MikaelFangel mentioned!

jscarrott commented 4 months ago

Aha the help text was overwritten in the scripts that use it so I didn't see that change.