mirror of
https://github.com/asciinema/asciinema.git
synced 2026-04-25 16:05:52 +03:00
[PR #341] [MERGED] Breakpoints #1049
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#1049
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?
📋 Pull Request Information
Original PR: https://github.com/asciinema/asciinema/pull/341
Author: @ku1ik
Created: 3/17/2019
Status: ✅ Merged
Merged: 4/28/2023
Merged by: @ku1ik
Base:
develop← Head:feature/breakpoints📝 Commits (10+)
f25f9d6Document "b" (breakpoint) event type5b24513Add breakpoints3c308f4Add integration test for breakpoints3c718cfRemove unused function arge0745a8Simplify player loopf06e4a0Catch IOError only when openning /dev/tty for playbackc46712aAuto-pause on breakpoints during playbackf102822Add--breakpointsoption toasciinema playto opt-in for pausing on breakpointsb0653ecDocument breakpointsf284740Refactor player loop📊 Changes
12 files changed (+167 additions, -43 deletions)
View changed files
📝
README.md(+36 -2)📝
asciinema/__main__.py(+7 -0)📝
asciinema/asciicast/raw.py(+3 -0)📝
asciinema/asciicast/v2.py(+3 -0)📝
asciinema/commands/play.py(+3 -0)📝
asciinema/commands/record.py(+1 -0)📝
asciinema/config.py(+8 -0)📝
asciinema/player.py(+69 -38)📝
asciinema/pty_.py(+9 -1)📝
asciinema/recorder.py(+5 -0)📝
doc/asciicast-v2.md(+14 -2)📝
tests/integration.sh(+9 -0)📄 Description
This one adds breakpoints - locations in the recording which allow the player to auto-pause when one is encountered.
A breakpoint is new
"b"event type in asciicast stream, with optional annotation (comment) as event data.To add a breakpoint during recording session press a hotkey (specified in config file as
add_breakpoint_key).To add breakpoints to existing recording you add
"b"events like this:find good default hotkey, and/or hotkey prefix (like GNU screen, tmux)no default for nowasciinema playcommand (opt-in with-b/--breakpointsswitch)asciinema playwith hotkey (])🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.