charmbracelet / charmbracelet/vhs

Insert blank line

Open
#71 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
20.9k
Forks
474
Avg merge
4d 1h
Merged PRs (30d)
2

Description

I'd love to be able to insert a blank line between commands but right now if I hit `Enter` multiple times I get extra `>` symbols even if I use `Hide` and `Show`.

```
Output demo.gif

Set FontSize 32
Set Width 1200
Set Height 600

Type "echo 'First!'"

Sleep 500ms

Enter

Hide
Enter
Show

Type "echo 'Second!'"

Sleep 500ms

Enter

Sleep 5s
```

![demo](https://user-images.githubusercontent.com/1610850/198573873-539595da-a386-433e-8abd-02f563480516.gif)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the shown VHS command sequence, especially repeated Enter commands with Hide and Show, and observe the generated terminal output or GIF. Trace the CLI's command handling for blank lines and verify the change by confirming that multiple Enter presses create visual blank lines without extra prompt symbols.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.