charmbracelet / charmbracelet/vhs
Allow numeric filenames as output (`1.gif`)
- 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
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