Skip to content

Conversation

@SH20RAJ
Copy link

@SH20RAJ SH20RAJ commented Oct 2, 2025

Add Asciinema Support for Issue visit1985#145

This PR implements support for asciinema recordings in mdp presentations as requested in issue visit1985#145.

Features Added:

  • New Syntax: Users can now embed asciinema recordings using the syntax [asciinema:cols:rows:filename]
  • Key Binding: Added 'a' key binding to trigger asciinema playback during presentation
  • Smart Playback: When 'a' key is pressed, mdp will suspend the ncurses interface, play the specified asciinema recording, and resume the presentation after playback
  • Visual Indication: Asciinema placeholders are displayed as [ASCIINEMA] in blue with underline
  • Proper Parsing: Updated URL counting and length functions to handle asciinema syntax

Files Modified:

  • include/config.h - Added asciinema key binding
  • src/viewer.c - Added asciinema detection and playback logic
  • src/url.c - Added asciinema syntax recognition in counting/length functions

Testing:

  • Successfully compiles without errors or warnings
  • Asciinema syntax is properly recognized and displayed
  • Key binding works as expected
  • Playback functionality properly suspends and resumes mdp

Closes visit1985#145

Implement support for asciinema recordings in mdp presentations using
the syntax [asciinema:cols:rows:filename].

Features:
- Added parsing support for asciinema syntax
- Added key binding 'a' to trigger asciinema playback
- When 'a' key is pressed, mdp will suspend, play the asciinema recording,
  and resume the presentation
- Added proper display formatting for asciinema placeholders
- Updated URL counting and length functions to handle asciinema syntax

This allows users to embed asciinema recordings directly in their
markdown presentations and play them during the presentation by
pressing the 'a' key when the slide with the asciinema tag is active.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Suggestion: Support asciinema recordings

1 participant