Open detly opened 6 months ago
Thanks for reporting this.
Under the hood, chezmoi uses BubbleTea's textinput component, which isn't aware of the terminal width. There are longstanding bugs open related to this (https://github.com/charmbracelet/bubbles/issues/291, https://github.com/charmbracelet/bubbles/issues/307). Rather than trying to fix this upstream, I'll fork a new text input component.
In the short term you can work around the problem by specifying the --no-tty
flag.
I've opened https://github.com/charmbracelet/bubbles/issues/483 to track this in charmbracelet/bubbles.
Describe the bug
Long prompts eg. for removing or overwriting files, are cut off at the right side in the terminal. This makes it impossible to (a) see what the options are and (b) see what they're for.
To reproduce
chezmoi rm
to remove themExpected behavior
I'd expect the prompt to wrap.
Output of command with the
--verbose
flagIt's the same with or without
--verbose
. I started withzsh -f
to try to reduce variation a bit.That's actually it - there's no more text. Here's a screenshot:
I can't scroll that eg. by pressing →, or reflow it by resizing the window. I can exit it with Q or Ctrl+C.
Output of
chezmoi doctor
Additional context
This is not a recent change, I just haven't gotten around to filing an issue until now.
Chezmoi is installed via Snap, on Ubuntu 23.10. I tried this on Bash, Dash and Zsh, all with the same results.