Hotkeys for Exporting & Controlling Sketches
See original GitHub issueAs brought up by this thread by @fturcheti, it might be nice to get some feedback on hotkeys and “how to control the sketch” in a nice and easy way.
Currently these hotkeys work:
- Cmd + S / Ctrl + S = Export Single Frame
- Cmd + Shift + S / Ctrl + Shift S = Start/Stop Recording Multiple Frames
- Cmd + K = Commit & Export Single Frame
- Space to play/pause (only for animated sketches)
One issue with Cmd + S is that it sometimes triggers the native save dialog, i.e. when done from within DevTools. Unfortunately it doesn’t seem like a simple solve, since keydown events aren’t triggered in the window when DevTools are in focus.
I’m not sure if there are better default keystrokes for these – maybe some additional hotkeys could be added (e.g. stop/reset playhead), or some removed (the play/pause does not really fit right now). Maybe there is also some other method of exporting & controlling sketches that I have not considered.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Shortcuts - Sketch
Discover the full list of Sketch keyboard shortcuts to speed up your workflow. Start optimizing your time to do better work, faster.
Read more >All Keyboard Shortcuts and Commands for Sketch
Make Exportable (Custom Shortcut). Select the Layer (or Group) that you want to export and click "Make Exportable" in the bottom-left of the...
Read more >Hotkey shortcuts - Sketchbook Support
Speed up your sketching by assigning key combinations or buttons to marking menus or individual tools. Hotkeys are key combinations and/or buttons assigned ......
Read more >Default keyboard shortcuts for Illustrator - Adobe Support
Work with documents ; Save the document as script files, Ctrl + F12, Command + F12 ; Open the Export for screens dialog...
Read more >Import and export keyboard shortcuts in Motion - Apple Support
Export a set of keyboard shortcuts · In the Command Editor, click the pop-up menu, then choose Export. · Choose Motion > Commands...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mattdesl The idea of a HUD with playhead and states controller is awesome, but definitely laborious. Maybe it’s an item to keep on a list of long term plans.
For now, I’d suggest something along the lines of what @guidoschmidt described above: a hidden GUI with (1) buttons to trigger the actions already defined with shortcuts, and (2) a help text describing these available keyboard shortcuts.
The GUI could be a hidden sidebar or popup toggled with a click on a discrete button placed on some corner of the screen – something like a
[?]or a[i]or a[☰]. And here is a sketch of its content:Exporting
[Export image][Export frames][Commit & Export]Animation
[First frame][Previous][Play/Pause][Next][Last frame]Shortcuts
Cmd + E= Export single frameCmd + Shift + E= Start/Stop recording multiple framesCmd + K= Commit & Export single frameFor animated sketches only:
Space= Play/Pause the animation loop←= Previous frame→= Next frameCmd + ←= Go to first frameCmd + →= Go to last frame@fturcheti I like your sketched out idea 🥇! Having such a tiny HUD UI on hotkey (maybe visible by default) could be also used to simplify the onboarding process and the learning curve for beginners with features like linked documentation, examples etc.
@mattdesl Maybe some plugin-architecture that works like a middleware could work well in that scenario, such as you import your plugin and pipe it through
canvasSketch(UI properties could be passed in via props?):Unfortunately I’m currently quite busy with other stuff, but I would love to experiment with setting up UIs in
canvas-sketcha bit more 🙂