[PR #406] [MERGED] Configurable key bindings (hotkeys) for rec and play commands #450

Closed
opened 2026-02-25 20:33:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/asciinema/asciinema/pull/406
Author: @ku1ik
Created: 4/19/2020
Status: Merged
Merged: 5/17/2020
Merged by: @ku1ik

Base: developHead: feature/hotkeys-config


📝 Commits (3)

  • 8d2d9c5 Configurable hotkeys for recording
  • 3bd93d6 Configurable hotkeys for playback
  • d547b2b Don't use new f'' string syntax - it doesn't work on Python <3.6

📊 Changes

7 files changed (+96 additions, -24 deletions)

View changed files

📝 README.md (+16 -0)
📝 asciinema/commands/play.py (+5 -1)
📝 asciinema/commands/record.py (+6 -1)
📝 asciinema/config.py (+30 -0)
📝 asciinema/player.py (+9 -7)
📝 asciinema/pty.py (+26 -13)
📝 asciinema/recorder.py (+4 -2)

📄 Description

Fixes #343.

This implements configurable hotkeys for rec and play commands.

Example config file:

[record]

; Define hotkey for pausing recording (suspending capture of output),
; default: C-\
pause_key = C-p

; Define hotkey prefix key - when defined other recording hotkeys must
; be preceeded by it, default: no prefix
prefix_key = C-a

[play]

; Define hotkey for pausing/resuming playback,
; default: space
pause_key = p

; Define hotkey for stepping through playback, a frame at a time,
; default: . (dot key)
step_key = ]

🔄 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/406 **Author:** [@ku1ik](https://github.com/ku1ik) **Created:** 4/19/2020 **Status:** ✅ Merged **Merged:** 5/17/2020 **Merged by:** [@ku1ik](https://github.com/ku1ik) **Base:** `develop` ← **Head:** `feature/hotkeys-config` --- ### 📝 Commits (3) - [`8d2d9c5`](https://github.com/asciinema/asciinema/commit/8d2d9c503f2991edcec622fd7bd5a0c818666f1f) Configurable hotkeys for recording - [`3bd93d6`](https://github.com/asciinema/asciinema/commit/3bd93d60ee3af2cf2e2d1c4835814fc217fd4cc5) Configurable hotkeys for playback - [`d547b2b`](https://github.com/asciinema/asciinema/commit/d547b2b36ec78ab73175f39d680a37e3ec648cb3) Don't use new f'' string syntax - it doesn't work on Python <3.6 ### 📊 Changes **7 files changed** (+96 additions, -24 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+16 -0) 📝 `asciinema/commands/play.py` (+5 -1) 📝 `asciinema/commands/record.py` (+6 -1) 📝 `asciinema/config.py` (+30 -0) 📝 `asciinema/player.py` (+9 -7) 📝 `asciinema/pty.py` (+26 -13) 📝 `asciinema/recorder.py` (+4 -2) </details> ### 📄 Description Fixes #343. This implements configurable hotkeys for `rec` and `play` commands. Example config file: ```ini [record] ; Define hotkey for pausing recording (suspending capture of output), ; default: C-\ pause_key = C-p ; Define hotkey prefix key - when defined other recording hotkeys must ; be preceeded by it, default: no prefix prefix_key = C-a [play] ; Define hotkey for pausing/resuming playback, ; default: space pause_key = p ; Define hotkey for stepping through playback, a frame at a time, ; default: . (dot key) step_key = ] ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-25 20:33:46 +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#450
No description provided.