charmbracelet / gum

A tool for glamorous shell scripts 🎀

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gum write can no longer add new lines

jscarrott opened this issue · comments

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

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

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

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