[PR #339] [CLOSED] Edit recorded asciicasts, delete or squash events, concatenate recordings #1047

Closed
opened 2026-03-15 11:15:44 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/asciinema/asciinema/pull/339
Author: @adamschmideg
Created: 3/15/2019
Status: Closed

Base: developHead: feature/editing


📝 Commits (7)

📊 Changes

4 files changed (+115 additions, -0 deletions)

View changed files

📝 README.md (+15 -0)
📝 asciinema/__main__.py (+10 -0)
asciinema/commands/edit.py (+43 -0)
tests/edit_test.py (+47 -0)

📄 Description

Fixes asciinema/discussions#53

Take one or more asciicast files and edit them manually. Change the event
types as follows,

  • "d": delete, this event will be deleted
  • "s": squash, this event will be squashed onto the previous one.
    More consecutive lines can be squashed.

After the individual files are processed, they are concatenated into a single
recording. The times are adjusted, so the last event in the first file is
immediately followed by the first event in the second file, and so on.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/asciinema/asciinema/pull/339 **Author:** [@adamschmideg](https://github.com/adamschmideg) **Created:** 3/15/2019 **Status:** ❌ Closed **Base:** `develop` ← **Head:** `feature/editing` --- ### 📝 Commits (7) - [`df8088c`](https://github.com/asciinema/asciinema/commit/df8088cc723d3fa0b20cc5d5a93ef8978ecb211d) Add edit command skeleton - [`8704b8f`](https://github.com/asciinema/asciinema/commit/8704b8f6c1daf84709fe5d60be4d597bbd2b83d5) simple concatenation of events - [`3536e64`](https://github.com/asciinema/asciinema/commit/3536e64a9a79968f6222d8415dbcb23945b41163) Concatenate casts works - [`57ff37c`](https://github.com/asciinema/asciinema/commit/57ff37c2a3791c8e568ab938dcb94f1eb64d6664) test deleted event - [`2275002`](https://github.com/asciinema/asciinema/commit/227500261cd343029ec7b396165b1bf4031f68eb) Edit squash - [`8866805`](https://github.com/asciinema/asciinema/commit/8866805f3e990c8bf47be140be87a3a2776e30ef) oops, time offset - [`744bfdf`](https://github.com/asciinema/asciinema/commit/744bfdf8ea36bde1cb6acb68c8cdc359979b9e5f) Document edit subcommand ### 📊 Changes **4 files changed** (+115 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+15 -0) 📝 `asciinema/__main__.py` (+10 -0) ➕ `asciinema/commands/edit.py` (+43 -0) ➕ `tests/edit_test.py` (+47 -0) </details> ### 📄 Description Fixes asciinema/discussions#53 Take one or more asciicast files and edit them manually. Change the event types as follows, - "d": delete, this event will be deleted - "s": squash, this event will be squashed onto the previous one. More consecutive lines can be squashed. After the individual files are processed, they are concatenated into a single recording. The times are adjusted, so the last event in the first file is immediately followed by the first event in the second file, and so on. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-15 11:15:44 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#1047
No description provided.