GitMasterDocs

Reference

Keyboard shortcuts Partly available

This page lists the keyboard shortcuts of GitMaster by area. Each row shows the keys on Linux and Windows, then on macOS. Where the macOS key is ⌘, the Linux and Windows key is Ctrl.

The Status column shows which keys work in the app. Each row is either implemented, or not available yet.

Actions without a shortcut on this page can be run from the command palette.

Global#

ActionLinux and WindowsmacOSStatus
Open the command paletteCtrl+K⌘KImplemented
QuitCtrl+Q⌘QImplemented
Open the context menu of the selected fileShift+F10Shift+F10Implemented
RefreshRRImplemented

R does not work while you type in the message box or in a diff.

Working Copy list#

ActionLinux and WindowsmacOSStatus
Stage or unstage the selected fileSpaceSpaceImplemented
Commit, from the commit message boxCtrl+Enter⌘↵Implemented

Diff in Working Copy#

ActionLinux and WindowsmacOSStatus
Move to the previous changed lineUpUpImplemented
Move to the next changed lineDownDownImplemented
Move to the previous hunkCtrl+Shift+B⇧⌘BImplemented
Move to the next hunkCtrl+Shift+N⇧⌘NImplemented
Mark or unmark the line under the cursorSpaceSpaceImplemented
Start a visual selection at the cursorCtrl+Shift+V⇧⌘VImplemented
Stage or unstage the chunk under the cursorCtrl+Shift+A⇧⌘AImplemented
Stage the selected linesCtrl+Shift+S⇧⌘SImplemented
Unstage the selected linesCtrl+Shift+I⇧⌘IImplemented
Clear the selectionEscEscImplemented
Comment on the selected linesCtrl+Shift+M⇧⌘MImplemented

Commit diff (stacked)#

ActionLinux and WindowsmacOSStatus
Scroll one line up or downUp, DownUp, DownImplemented
Scroll one page up or downPageUp, PageDownPageUp, PageDownImplemented
Move to the next fileCtrl+Shift+N⇧⌘NImplemented
Move to the previous fileCtrl+Shift+P⇧⌘PImplemented
Comment on the selected linesCtrl+Shift+M⇧⌘MImplemented
Go back to the commitEscEscImplemented

Next file and previous file wrap around at the first and the last file.

Branch menu#

ActionLinux and WindowsmacOSStatus
Checkout Branch, in the branch picker at the top of the windowEnterEnterImplemented
Copy Branch Name, for the checked-out branchAlt+Ctrl+C⌥⌘CImplemented
Create WorktreeAlt+Ctrl+W⌥⌘WPlanned
Push With LeaseCtrl+Shift+P⇧⌘PPlanned
New Child BranchCtrl+B⌘BPlanned
Restack This StackCtrl+Shift+R⇧⌘RPlanned
Rename BranchF2F2Planned
Delete BranchBackspace⌫Planned

Restack This Stack and the other stack actions belong to stacks, a preview feature. In the stacked commit diff, Ctrl+Shift+P moves to the previous file. The branch menu in the sidebar cannot be opened from the keyboard yet, so its Checkout Branch item has no key there.

Search and Quick Open#

ActionLinux and WindowsmacOSStatus
Quick Open, find a file in the worktreeCtrl+P⌘PImplemented
Search Text, search the repositoryCtrl+Shift+F⇧⌘FImplemented

Workflows#

A manual workflow can declare its own shortcut with key in the trigger table of M.meta. See Writing workflows.

ActionLinux and WindowsmacOSStatus
Save WorkflowCtrl+S⌘SImplemented
GitMaster documentation · e66d34c