charmbracelet / charmbracelet/vhs

Allow numeric filenames as output (`1.gif`)

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

Description

Using `Output 1.gif` in a .tape file breaks with a friendly error.

```
File: test.tape
1 │ Output 1.gif
^^^^^^ Expected file path after output

1 │ Output 1.gif
^^ Invalid command: 1.

1 │ Output 1.gif
^^^ Invalid command: gif

Error: parse error
```

Perhaps it could be allowed?
(Of course, adding an alpha character to the path works.)

Contributor guide

Open the contributing guide

Research direction

Reproduce the parse error with the test.tape example containing `Output 1.gif`, then find the parser entry point that handles Output commands. The work is complete when a numeric filename such as `1.gif` is accepted and the existing parse error no longer occurs.

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
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.