mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[GH-ISSUE #680] [Feature Request] add cast name to final message and JSON header #349
Labels
No labels
bug
compatibility
feature request
fit for beginners
help wanted
hosting
idea
improvement
packaging
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asciinema#349
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tacman on GitHub (May 27, 2025).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/680
By the time I've finished recording, I sometimes forget the cast name. Can you add it to the final message?
Before:
After:
@Cyb3rC3lt commented on GitHub (Jun 4, 2025):
I'd like to second this idea please. For someone who pauses their VM and may have days to weeks of console lines scrolling back to see what cast I am currently recording to would be great. I personally don't need the number of lines but the cast location would be ideal.
@moritzdietz commented on GitHub (Jun 4, 2025):
Maybe something along the lines of this?!
This prints the same info like when you begin a recording.
and then
@moritzdietz commented on GitHub (Jun 6, 2025):
But out of curiosity, wouldn't you also just be able to press up on your arrow key to see the latest run command from your shell history which would be the recording command itself?
@Cyb3rC3lt commented on GitHub (Jun 6, 2025):
My run command is kicked off by my shell on starting automatically so wouldn't be there. Plus when it dies due to ssh connection breaking it there could be a few in my console as I restart it by doing "source .zshrc"
@tacman commented on GitHub (Jun 6, 2025):
I'd like the filename in the header record as well.
As I'm recording, I have a tool that takes screenshots of the website. The idea is that while playing back the .cast, I can load the image of the website when it hits a marker.
I'd like to put the screenshots in the same directory as the cast.
I could get the directory of the current cast if it was written to the first line (the header JSON). The example is weak because #679 hasn't been released yet, but when it does, I want to be able to keep all my screenshots (and audio/voice-overs) together with the cast(s).
Obviously, the "up" arrow isn't applicable in this case.
@moritzdietz commented on GitHub (Jun 6, 2025):
I would suggest to use an environment variable you can set already without the need to alter the code.
You can use the option
--rec-envand pass your own environment variable with whatever you want.Then you can see the var in the header:
@tacman commented on GitHub (Jun 6, 2025):
very cool, thanks.
So I guess I could also add the filename to the env vars.
That will definitely work for me, thanks!
@moritzdietz commented on GitHub (Jun 6, 2025):
Cool! Glad this helped 🙂 If this does solve your question then I would suggest also closing this issue to help keep the issue tracker clean.
@tacman commented on GitHub (Jun 6, 2025):
It helped for the JSON header, but it looks like you've added some code already to display the filename at the of the cast, so I do hope that's included in the next release.
@moritzdietz commented on GitHub (Jun 6, 2025):
Depends on whether the ku1ik accepts my PR. If not, which is totally ok as he's the maintainer, you can just patch it in for yourself if you want to have that information for your own build.
@Cyb3rC3lt commented on GitHub (Jun 8, 2025):
Will this also work if the session isn't ended gracefully @moritzdietz? Like I might have 6 terminals running and when I pause my VM it kills my recording so when I restart the next day having a notification saying the recording has ended would be useful as a reminder to restart it.
Here is me starting a session and pausing my VM at the red line. I then come back after unpausing an issue a 2nd date command to see if the recording is ongoing.
But when I replay the recording I can see it doesnt pick up the 2nd date command as the recording is dead.
I wonder in general should I be pausing all the asscinema recording manually with Ctrl + \ before pausing my VM actually (Edit: just tried this and it doesn't even like it after unpausing and won't continue after resuming a VM). But as an assistance your notification would help too. I could even potentially append the next recording to the recording text in your notification.
@moritzdietz commented on GitHub (Jun 8, 2025):
I feel like this is better handled in the forum as this seems to be more troubleshooting the ways you use asciinema itself
@ku1ik commented on GitHub (Jun 11, 2025):
For sure it will be there in the next release, which will come likely next week, and hopefully will be the final RC before the big 3.0 release.