import React, { memo } from 'react'; import { IoIosCloseCircleOutline } from 'react-icons/io'; import { FaClipboard } from 'react-icons/fa'; import { motion, AnimatePresence } from 'framer-motion'; import { toast } from './util'; const { clipboard } = window.require('electron'); const HelpSheet = memo(({ visible, onTogglePress, ffmpegCommandLog, }) => ( {visible && (

Keyboard shortcuts

H Show/hide this screen

Playback

SPACE, k Play/pause
J Slow down playback
L Speed up playback

Seeking

, Step backward 1 frame
. Step forward 1 frame
ALT / OPT + Seek to previous keyframe
ALT / OPT + Seek to next keyframe
Seek backward 1 sec
Seek forward 1 sec
CTRL / CMD + Seek backward 1% of timeline at current zoom
CTRL / CMD + Seek forward 1% of timeline at current zoom

Timeline/zoom operations

Z Toggle zoom between 1x and a calculated comfortable zoom level
CTRL / CMD + Zoom in timeline
CTRL / CMD + Zoom out timeline
CTRL + Mouse scroll/wheel up/down - Zoom in/out timeline
Mouse scroll/wheel left/right - Pan timeline
(For Windows or computers without 2D track pad or left/right mouse wheel scrolling function, use SHIFT + Mouse scroll/wheel up/down)

Segments and cut points

I Mark in / cut start point for current segment
O Mark out / cut end point for current segment
+ Add cut segment
BACKSPACE Remove current segment
Select previous segment
Select next segment

File system actions

E Export segment(s)
C Capture snapshot
D Delete source file

Hover mouse over buttons in the main interface to see which function they have.

Last ffmpeg commands

{ffmpegCommandLog.length > 0 ? (
{ffmpegCommandLog.reverse().map(({ command }, i) => ( // eslint-disable-next-line react/no-array-index-key
{ clipboard.writeText(command); toast.fire({ timer: 2000, icon: 'success', title: 'Copied to clipboard' }); }} /> {command}
))}
) : (

The last executed ffmpeg commands will show up here after you run operations. You can copy them to clipboard and modify them to your needs before running on your command line.

)}
)}
)); export default HelpSheet;