Skip to content

v1.2.0

Choose a tag to compare

@github-actions github-actions released this 08 Sep 01:40
· 6 commits to main since this release
7f3d631

Release v1.2.0 - Add asciinema .cast file support

New Features

  • Support for asciinema .cast files as animation sources
  • Automatic frame extraction from terminal recordings
  • Regex-based ANSI escape sequence processing
  • Cross-platform compatibility for all asciinema recordings

Technical Improvements

  • LoadFramesFromCastFile() function with JSON array parsing
  • processANSISequences() with compiled regex patterns
  • Enhanced frame loading logic with file type detection
  • Comprehensive documentation and usage examples

Usage

You can now use asciinema .cast files directly with Gophetch:

# Using command line
gophetch my-recording.cast

# Or via configuration file
# Set "frame_file": "my-recording.cast" in gophetch.json

Creating .cast Files

Install asciinema and record your terminal sessions:

# Install asciinema
npm install -g asciinema

# Record a session
asciinema rec my-recording.cast

# Play it back with Gophetch
gophetch my-recording.cast

This release maintains full backward compatibility with existing custom frame files while adding powerful new animation capabilities.