Skip to content

Instantly share code, notes, and snippets.

@Yarakashi-Kikohshi
Last active February 16, 2024 09:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Yarakashi-Kikohshi/6c84abc96b130ee671285273e93b5e76 to your computer and use it in GitHub Desktop.
Save Yarakashi-Kikohshi/6c84abc96b130ee671285273e93b5e76 to your computer and use it in GitHub Desktop.
Full list of commands SumatraPDF

Date of creating

2022/06/02

Version and Reference

Commands

152 commands.

File menu

Command IDs Keyboard shortcuts Command Palette
CmdClose Ctrl+W, Ctrl+F4 Close Document
CmdDuplicateInNewWindow Shift+Ctrl+N Open Current Document In New Window
CmdNewWindow Ctrl+N Open New SumatraPDF Window
CmdOpenFile Ctrl+O Open File...
CmdOpenFolder Open Folder...
CmdOpenNextFileInFolder Shift+Ctrl+Right Open Next File In Folder
CmdOpenPrevFileInFolder Shift+Ctrl+Left Open Previous File In Folder
CmdOpenSelectedDocument Open Selected Document
CmdReloadDocument r Reload Document
CmdRenameFile F2 Rename File...
CmdReopenLastClosedFile Shift+Ctrl+T Reopen Last Closed
CmdShowInFolder Show File In Folder...
CmdCloseCurrentDocument q Close Current Document
CmdExit Ctrl+Q Exit Application
CmdCommandPalette Ctrl+K Command Palette
CmdCommandPaletteNoFiles Shift+Ctrl+K Command Palette No Files
CmdMoveFrameFocus F6 Move Frame Focus
CmdPinSelectedDocument Pin Selected Document
CmdPrint Ctrl+P Print Document...
CmdProperties Ctrl+D Show Document Properties...
CmdSaveAs Ctrl+S Save File As...
CmdShowCursorPosition m Show Cursor Position
CmdToggleBookmarks Shift+F12, F12 Toggle Bookmarks
CmdToggleMenuBar F9 Toggle Menu Bar
CmdTogglePageInfo I Toggle Page Info
CmdToggleScrollbars Toggle Scrollbars
CmdToggleToolbar F8 Toggle Toolbar
CmdCollapseAll Collapse All
CmdExpandAll Expand All
CmdOpenEmbeddedPDF Open Embedded PDF
CmdSaveEmbeddedFile Save Embedded File...
CmdCreateShortcutToFile Create .lnk Shortcut
CmdSelectAll Ctrl+A Select All
CmdCopyComment Copy Comment
CmdCopyImage Copy Image
CmdCopyLinkTarget Copy Link Target
CmdCopySelection Ctrl+C, Ctrl+Insert Copy Selection
CmdFindFirst Ctrl+F Find
CmdFindMatch Find: Match Case
CmdFindNext F3 Find Next
CmdFindNextSel Ctrl+F3 Find Next Selection
CmdFindPrev Shift+F3 Find Previous
CmdFindPrevSel Shift+Ctrl+F3 Find Previous Selection

Viewing

Command IDs Keyboard shortcuts Command Palette
CmdBookView Ctrl+8 Book View
CmdFacingView Ctrl+7 Facing View
CmdInvertColors i Invert Colors
CmdRotateLeft [, Shift+Ctrl+Subtract Rotate Left
CmdRotateRight ], Shift+Ctrl+Add Rotate Right
CmdSinglePageView Ctrl+6 Single Page View
CmdToggleContinuousView c Toggle Continuous View
CmdToggleFullscreen f, Shift+Ctrl+L, F11 Toggle Fullscreen
CmdToggleMangaMode Toggle Manga Mode

Navigation

Command IDs Keyboard shortcuts Command Palette
CmdScrollUp k, Up Scroll Up
CmdScrollDown j, Down Scroll Down
CmdScrollLeft h, Left Scroll Left
CmdScrollRight l, Right Scroll Right
CmdScrollUpHalfPage Shift+Up Scroll Up By Half Page
CmdScrollDownHalfPage Shift+Down Scroll Down By Half Page
CmdScrollUpPage Ctrl+Up, PageUp, Shift+Return, Shift+Space Scroll Up By Page
CmdScrollDownPage Ctrl+Down, PageDown, Return, Space Scroll Down By Page
CmdScrollLeftPage Shift+Left Scroll Left By Page
CmdScrollRightPage Shift+Right Scroll Right By Page
CmdGoToFirstPage Ctrl+Home, Home First Page
CmdGoToLastPage Ctrl+End, End Last Page
CmdGoToPrevPage p, Ctrl+PageUp Previous Page
CmdGoToNextPage n, Ctrl+PageDown Next Page
CmdGoToPage g, Ctrl+G Go to Page...
CmdNavigateBack Alt+Left, Backspace Navigate Back
CmdNavigateForward Alt+Right, Shift+Backspace Navigate Forward

Favorite

Command IDs Keyboard shortcuts Command Palette
CmdFavoriteAdd Ctrl+B Add Favorite
CmdFavoriteDel Delete Favorite
CmdFavoriteToggle Toggle Favorites

Presentation

Command IDs Keyboard shortcuts Command Palette
CmdTogglePresentationMode Ctrl+L, Shift+F11, F5 View: Presentation Mode
CmdPresentationBlackBackground . Presentation Black Background
CmdPresentationWhiteBackground w Presentation White Background

Annotation

Command IDs Keyboard shortcuts Command Palette
CmdCreateAnnotCaret Create Caret Annotation
CmdCreateAnnotCircle Create Circle Annotation
CmdCreateAnnotFileAttachment Create File Attachment Annotation
CmdCreateAnnotFreeText Create Free Text Annotation
CmdCreateAnnotHighlight a, A Create Highlight Annotation
CmdCreateAnnotInk Create Ink Annotation
CmdCreateAnnotLine Create Line Annotation
CmdCreateAnnotLink Create Link Annotation
CmdCreateAnnotPolygon Create Polygon Annotation
CmdCreateAnnotPolyLine Create Poly Line Annotation
CmdCreateAnnotPopup Create Popup Annotation
CmdCreateAnnotRedact Create Redact Annotation
CmdCreateAnnotSquare Create Square Annotation
CmdCreateAnnotSquiggly Create Squiggly Annotation
CmdCreateAnnotStamp Create Stamp Annotation
CmdCreateAnnotStrikeOut Create Strike Out Annotation
CmdCreateAnnotText Create Text Annotation
CmdCreateAnnotUnderline u, U Create Underline Annotation
CmdDeleteAnnotation Delete Delete Annotation
CmdEditAnnotations Edit Annotations
CmdSaveAnnotations Shift+Ctrl+S Save Annotations to existing PDF
CmdSelectAnnotation Select Annotation in Editor

Zoom menu

Command IDs Keyboard shortcuts Command Palette
CmdToggleZoom z Toggle Zoom
CmdZoomActualSize Ctrl+1 Zoom: Actual Size
CmdZoomCustom Ctrl+Y Zoom: Custom...
CmdZoomFitContent Ctrl+3 Zoom: Fit Content
CmdZoomFitPage Ctrl+0 Zoom: Fit Page
CmdZoomFitPageAndSinglePage Zoom: Fit Page and Single Page
CmdZoomFitWidth Ctrl+2 Zoom: Fit Width
CmdZoomFitWidthAndContinuous Zoom: Fit Width And Continuous
CmdZoomIn Ctrl+Add Zoom In
CmdZoomOut Ctrl+Subtract Zoom Out
CmdZoom100 Zoom: 100%
CmdZoom12_5 Zoom: 12.5%
CmdZoom125 Zoom: 125%
CmdZoom150 Zoom: 150%
CmdZoom1600 Zoom: 1600%
CmdZoom200 Zoom: 200%
CmdZoom25 Zoom: 25%
CmdZoom3200 Zoom: 3200%
CmdZoom400 Zoom: 400%
CmdZoom50 Zoom: 50%
CmdZoom6400 Zoom: 6400%
CmdZoom8_33 Zoom: 8.33%
CmdZoom800 Zoom: 800%

External app

Command IDs Keyboard shortcuts Command Palette
CmdOpenWithAcrobat Open With Adobe Acrobat
CmdOpenWithFoxIt Open With FoxIt
CmdOpenWithFoxItPhantom Open With FoxIt Phantom
CmdOpenWithHtmlHelp Open With HTML Help
CmdOpenWithPdfDjvuBookmarker Open With Pdf&Djvu Bookmarker
CmdOpenWithPdfXchange Open With PdfXchange
CmdOpenWithXpsViewer Open With Xps Viewer
CmdTranslateSelectionWithDeepL Translate Selection With DeepL
CmdTranslateSelectionWithGoogle Translate Selection with Google
CmdSearchSelectionWithBing Search Selection with Bing
CmdSearchSelectionWithGoogle Search Selection with Google
CmdSendByEmail Send Document By Email...

System

Command IDs Keyboard shortcuts Command Palette
CmdAdvancedOptions Advanced Options...
CmdChangeLanguage Change Language...
CmdCheckUpdate Check For Updates
CmdClearHistory Clear History
CmdContributeTranslation Contribute Translation
CmdForgetSelectedDocument Remove Selected Document From History
CmdOptions Options...
CmdShowLog Show Log

Help

Command IDs Keyboard shortcuts Command Palette
CmdHelpAbout Help: About SumatraPDF
CmdHelpOpenManualInBrowser Help: Manual
CmdHelpVisitWebsite Help: SumatraPDF Website

Debug

Command IDs Keyboard shortcuts Command Palette
CmdDebugCrashMe Debug: Crash Me
CmdDebugDownloadSymbols Debug: Download Symbols
CmdDebugShowLinks Debug: Show Links
CmdDebugShowNotif Debug: Show Notification
CmdDebugStartStressTest Debug: Start Stress Test
CmdDebugTestApp Debug: Test App
CmdNone Do nothing

Deprecated

Command IDs Keyboard shortcuts Command Palette
CmdOpenWithFirst don't use
CmdOpenWithLast don't use

Manual

https://www.sumatrapdfreader.org/docs/SumatraPDF-documentation

Customizing keyboard shortcuts

Customizing keyboard shortcuts - SumatraPDF Manual

  • Without modifiers, case do matter i.e. a and A are different
  • With modifiers, use Shift to select upper-case
    • i.e. Alt + a is the same as Alt + A , use Alt + Shift + A to select the upper-case A

Available characters

  • Letters a to z, A to Z

  • Numbers 0 to 9

  • Special keys (https://github.com/sumatrapdfreader/sumatrapdf/blob/master/src/Accelerators.cpp#L14-L75)

    Full list of special keys
    numpad0, numpad1, numpad2, numpad3, numpad4, numpad5, numpad6, numpad7, numpad8, numpad9, End, Home, Left, Right, Up, Down, PageDown, PageUp, Back, Backspace, Del, Delete, Ins, Insert, Esc, Escape, Return, Space, Multiply, Mult, Add, Subtract, Sub, Divide, Div, Help, Select, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12, F13, F14, F15, F16, F17, F18, F19, F20, F21, F22, F23, F24

Unconfigurable

Tabs

Keyboard shortcuts Description
Ctrl + Tab Go to next tab
Ctrl + Shift + Tab Go to previous tab
Alt + 1 Go to tab 1. Use Alt + 2, etc. up to Alt + 8
Alt + 9 Go to last tab

Mouse operation

Mouse operation Description
Ctrl + Scroll Wheel Zoom in/out
Ctrl + Left Mouse Select area (can then use with copy, print or +/- zoom)
Right Mouse Grab and pan page in any direction
Alt + Scroll Wheel Increase vertical scroll wheel steps (faster)
Shift + Scroll Wheel Pan horizontally with scroll wheel

Full list of commands SumatraPDF

Data: 2022/05/31

https://github.com/sumatrapdfreader/sumatrapdf/blob/master/src/Commands.h#L9

Command Description
CmdOpenFile Open File...
CmdOpenFolder Open Folder...
CmdClose Close Document
CmdSaveAs Save File As...
CmdPrint Print Document...
CmdShowInFolder Show File In Folder...
CmdRenameFile Rename File...
CmdExit Exit Application
CmdReloadDocument Reload Document
CmdCreateShortcutToFile Create .lnk Shortcut
CmdSendByEmail Send Document By Email...
CmdProperties Show Document Properties...
CmdSinglePageView Single Page View
CmdFacingView Facing View
CmdBookView Book View
CmdToggleContinuousView Toggle Continuous View
CmdToggleMangaMode Toggle Manga Mode
CmdRotateLeft Rotate Left
CmdRotateRight Rotate Right
CmdToggleBookmarks Toggle Bookmarks
CmdToggleFullscreen Toggle Fullscreen
CmdPresentationWhiteBackground Presentation White Background
CmdPresentationBlackBackground Presentation Black Background
CmdTogglePresentationMode View: Presentation Mode
CmdToggleToolbar Toggle Toolbar
CmdToggleScrollbars Toggle Scrollbars
CmdToggleMenuBar Toggle Menu Bar
CmdCopySelection Copy Selection
CmdTranslateSelectionWithGoogle Translate Selection with Google
CmdTranslateSelectionWithDeepL Translate Selection With DeepL
CmdSearchSelectionWithGoogle Search Selection with Google
CmdSearchSelectionWithBing Search Selection with Bing
CmdSelectAll Select All
CmdNewWindow Open New SumatraPDF Window
CmdDuplicateInNewWindow Open Current Document In New Window
CmdCopyImage Copy Image
CmdCopyLinkTarget Copy Link Target
CmdCopyComment Copy Comment
CmdScrollUp Scroll Up
CmdScrollDown Scroll Down
CmdScrollLeft Scroll Left
CmdScrollRight Scroll Right
CmdScrollLeftPage Scroll Left By Page
CmdScrollRightPage Scroll Right By Page
CmdScrollUpPage Scroll Up By Page
CmdScrollDownPage Scroll Down By Page
CmdScrollDownHalfPage Scroll Down By Half Page
CmdScrollUpHalfPage Scroll Down By Half Page
CmdGoToNextPage Next Page
CmdGoToPrevPage Previous Page
CmdGoToFirstPage First Page
CmdGoToLastPage Last Page
CmdGoToPage Go to Page...
CmdFindFirst Find
CmdFindNext Find Next
CmdFindPrev Find Previous
CmdFindNextSel Find Next Selection
CmdFindPrevSel Find Previous Selection
CmdFindMatch Find: Match Case
CmdSaveAnnotations Save Annotations to existing PDF
CmdEditAnnotations Edit Annotations
CmdSelectAnnotation Select Annotation in Editor
CmdDeleteAnnotation Delete Annotation
CmdZoomFitPage Zoom: Fit Page
CmdZoomActualSize Zoom: Actual Size
CmdZoomFitWidth Zoom: Fit Width
CmdZoom6400 Zoom: 6400%
CmdZoom3200 Zoom: 3200%
CmdZoom1600 Zoom: 1600%
CmdZoom800 Zoom: 800%
CmdZoom400 Zoom: 400%
CmdZoom200 Zoom: 200%
CmdZoom150 Zoom: 150%
CmdZoom125 Zoom: 125%
CmdZoom100 Zoom: 100%
CmdZoom50 Zoom: 50%
CmdZoom25 Zoom: 25%
CmdZoom12_5 Zoom: 12.5%
CmdZoom8_33 Zoom: 8.33%
CmdZoomFitContent Zoom: Fit Content
CmdZoomCustom Zoom: Custom...
CmdZoomIn Zoom In
CmdZoomOut Zoom Out
CmdZoomFitWidthAndContinuous Zoom: Fit Width And Continuous
CmdZoomFitPageAndSinglePage Zoom: Fit Page and Single Page
CmdContributeTranslation Contribute Translation
CmdOpenWithFirst don't use
CmdOpenWithAcrobat Open With Adobe Acrobat
CmdOpenWithFoxIt Open With FoxIt
CmdOpenWithFoxItPhantom Open With FoxIt Phantom
CmdOpenWithPdfXchange Open With PdfXchange
CmdOpenWithXpsViewer Open With Xps Viewer
CmdOpenWithHtmlHelp Open With HTML Help
CmdOpenWithPdfDjvuBookmarker Open With Pdf&Djvu Bookmarker
CmdOpenWithLast don't use
CmdOpenSelectedDocument Open Selected Document
CmdPinSelectedDocument Pin Selected Document
CmdForgetSelectedDocument Remove Selected Document From History
CmdExpandAll Expand All
CmdCollapseAll Collapse All
CmdSaveEmbeddedFile Save Embedded File...
CmdOpenEmbeddedPDF Open Embedded PDF
CmdOptions Options...
CmdAdvancedOptions Advanced Options...
CmdChangeLanguage Change Language...
CmdCheckUpdate Check For Updates
CmdHelpOpenManualInBrowser Help: Manual
CmdHelpVisitWebsite Help: SumatraPDF Website
CmdHelpAbout Help: About SumatraPDF
CmdMoveFrameFocus Move Frame Focus
CmdFavoriteAdd Add Favorite
CmdFavoriteDel Delete Favorite
CmdFavoriteToggle Toggle Favorites
CmdDebugShowLinks Debug: Show Links
CmdDebugCrashMe Debug: Crash Me
CmdDebugDownloadSymbols Debug: Download Symbols
CmdDebugTestApp Debug: Test App
CmdDebugShowNotif Debug: Show Notification
CmdDebugStartStressTest Debug: Start Stress Test
CmdCreateAnnotText Create Text Annotation
CmdCreateAnnotLink Create Link Annotation
CmdCreateAnnotFreeText Create Free Text Annotation
CmdCreateAnnotLine Create Line Annotation
CmdCreateAnnotSquare Create Square Annotation
CmdCreateAnnotCircle Create Circle Annotation
CmdCreateAnnotPolygon Create Polygon Annotation
CmdCreateAnnotPolyLine Create Poly Line Annotation
CmdCreateAnnotHighlight Create Highlight Annotation
CmdCreateAnnotUnderline Create Underline Annotation
CmdCreateAnnotSquiggly Create Squiggly Annotation
CmdCreateAnnotStrikeOut Create Strike Out Annotation
CmdCreateAnnotRedact Create Redact Annotation
CmdCreateAnnotStamp Create Stamp Annotation
CmdCreateAnnotCaret Create Caret Annotation
CmdCreateAnnotInk Create Ink Annotation
CmdCreateAnnotPopup Create Popup Annotation
CmdCreateAnnotFileAttachment Create File Attachment Annotation
CmdInvertColors Invert Colors
CmdTogglePageInfo Toggle Page Info
CmdCloseCurrentDocument Close Current Document
CmdToggleZoom Toggle Zoom
CmdNavigateBack Navigate Back
CmdNavigateForward Navigate Forward
CmdShowCursorPosition Show Cursor Position
CmdOpenNextFileInFolder Open Next File In Folder
CmdOpenPrevFileInFolder Open Previous File In Folder
CmdCommandPalette Command Palette
CmdShowLog Show Log
CmdClearHistory Clear History
CmdReopenLastClosedFile Reopen Last Closed
CmdNone Do nothin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment