Skip to content

[FEATURE] Set trim in/out points with I and O keyboard shortcuts while video is playing #1158

@Kr1491

Description

@Kr1491

Feature description
Add keyboard shortcuts to set trim points while the video is playing, using the standard video editor convention:

  • I key → set trim start (in point) to current playback position
  • O key → set trim end (out point) to current playback position

This allows users to scrub through the video and tap I/O to mark the exact trim range without having to manually type timestamps.

Problem this solves
Currently the only way to set trim points is by typing numbers into the TrimControl inputs. This is slow and imprecise — you have to pause the video, note the timestamp, then type it in. Standard video editors (Premiere, DaVinci, iMovie) all use I/O shortcuts for this reason.

Proposed solution
Add i and o key handlers to src/hooks/useKeyboardShortcuts.ts (the keyboard shortcut infrastructure already exists):

  • I → call seekTo / updateRecipe({ trimStart: currentTime })
  • O → call updateRecipe({ trimEnd: currentTime })

Both currentTime and updateRecipe are already available in useVideoEditor.

Alternatives considered
Clicking on the ThumbnailStrip to set trim points — but that requires a separate UI change and is less intuitive than the industry-standard I/O shortcut.

Additional context
useKeyboardShortcuts.ts already handles Space (play/pause), arrow keys (seek), and export shortcuts — this follows the exact same pattern.

Browser and OS info

  • OS: Any
  • Browser: Any
  • Version: Any

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions