Keyboard Shortcuts
Keyboard Shortcuts
Reference the keyboard shortcuts available in GitComet. Find macOS, Windows, and Linux keys for navigation, staging, commits, diffs, and conflict resolution.
Reviewed against GitComet 0.3.5
Cmd and Option are macOS modifiers; Ctrl and Alt are used on Windows and Linux. Shortcuts depend on focus: text inputs, the terminal, the file editor, and conflict output keep their own editing keys. Context menus and the command palette show shortcuts for their available actions.
Press Cmd+/ on macOS or Ctrl+/ on Windows and Linux to open a searchable cheat sheet of keyboard shortcuts. The status bar has a button for it too.
App
| Action | Mac | Windows/Linux |
|---|---|---|
| New window | Cmd+N, Cmd+Shift+N | Ctrl+N, Ctrl+Shift+N |
| Settings | Cmd+, | Ctrl+, |
| Command palette | Cmd+P, Cmd+Shift+P | Ctrl+P, Ctrl+Shift+P |
| Keyboard shortcuts cheat sheet | Cmd+/ | Ctrl+/ |
| Search in the current view | Cmd+F | Ctrl+F |
| Open repository | Cmd+O | Ctrl+O |
| Open workspace | Cmd+Shift+R | Ctrl+Shift+R |
| Go to commit, branch, tag or revision | Cmd+G | Ctrl+G |
| Open repository remote in a browser | Cmd+K | Ctrl+K |
| Open and recently closed repositories | Cmd+Shift+O, Option+Cmd+O, Cmd+Shift+A | Ctrl+Shift+O, Ctrl+Shift+A |
| Open active repository in external code editor | Cmd+Shift+E | Ctrl+Shift+E |
| Reveal the open file in GitComet's Files sidebar | Cmd+Shift+L | Ctrl+Shift+L |
| Open the file history tab for the file in the diff | Ctrl+H | Ctrl+H |
| Close active repo tab, or close the window if no repo tab can close | Cmd+W | Ctrl+W |
| Close active window | Cmd+Shift+W | Ctrl+Shift+W |
| Previous repository tab | Cmd+PageUp, Cmd+{, Option+Cmd+Left | Ctrl+PageUp, Ctrl+Shift+Tab |
| Next repository tab | Cmd+PageDown, Cmd+}, Option+Cmd+Right | Ctrl+PageDown, Ctrl+Tab |
| Increase UI scale | Cmd++, Cmd+= | Ctrl++, Ctrl+= |
| Decrease / reset UI scale | Cmd+-, Cmd+0 | Ctrl+-, Ctrl+0 |
| Toggle full screen | Ctrl+Cmd+F | F11 |
| Minimize window | Cmd+M | - |
| Hide GitComet | Cmd+H | - |
| Hide other apps | Option+Cmd+H | - |
| Quit | Cmd+Q | Ctrl+Q |
On Windows and Linux, Ctrl + scroll also changes the UI scale of a main window. On macOS, use the keys; scrolling with Cmd held scrolls the content.
Repository And Layout
These run the same commands as the command palette. They do not apply while the terminal, a context menu or a dialog has focus.
| Action | Mac | Windows/Linux |
|---|---|---|
| Reload repository | Cmd+R, F5 | Ctrl+R, F5 |
| Fetch all | Cmd+Shift+F | Ctrl+Shift+F |
| Pull | Cmd+Option+Down | - |
| Push | Cmd+Option+Up | - |
| Commit changes | Cmd+Option+Enter | Ctrl+Alt+Enter |
| Stage all changes | Cmd+Option+S | Ctrl+Alt+S |
| Unstage all changes | Cmd+Option+U | Ctrl+Alt+U |
| Create branch | Cmd+Option+N | Ctrl+Alt+N |
| Checkout branch | Cmd+Option+C | Ctrl+Alt+C |
| Stash changes | Cmd+Shift+S | Ctrl+Shift+S |
| Toggle sidebar | Cmd+B | Ctrl+B |
| Toggle details pane | Cmd+Option+B, Cmd+Shift+B | Ctrl+Alt+B, Ctrl+Shift+B |
| Toggle terminal | Cmd+J | Ctrl+J, Ctrl+Shift+J |
| Open in external terminal | Cmd+Option+T | - |
On Windows, AltGr reaches applications as Ctrl+Alt. A chord that types a character on your keyboard layout, such as AltGr+S on a Polish layout, types that character instead of running the shortcut.
Review Navigation
These move focus between the history, the changed-file lists and the diff. See Move through files and changes.
| Action | Mac | Windows/Linux |
|---|---|---|
| Next / previous pane | F6, Shift+F6 | F6, Shift+F6 |
| From the history list, focus the commit's files | Enter | Enter |
| From a file list, focus the diff | Enter | Enter |
| From the diff, return to the file list | Escape | Escape |
| From a file list, return to the history | Escape | Escape |
| Expand / collapse a folder or group in a file list | Right, Left or Enter | Right, Left or Enter |
| Filter the focused file list | Cmd+F | Ctrl+F |
| Open the menu of the selected commit or file | Shift+F10 | Shift+F10 |
Move between fields and controls
Press Tab to move forward through text fields, buttons, and other controls. Press Shift+Tab to move backward. Focus wraps within the window, dialog, or popover. Tab also moves focus out of multiline fields such as the commit message.
In the embedded terminal, the shell handles Tab for completion. In the diff file editor, Documents editor, and conflict output editor, Tab inserts a tab character when the text is editable. Shift+Tab moves to the previous control. With read-only text in these editors, Tab moves to the next control.
Text Inputs
| Action | Mac | Windows/Linux |
|---|---|---|
| Standard editing shortcuts | Cmd+A, Cmd+C, Cmd+V, Cmd+X, Cmd+Z, Cmd+Shift+Z | Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X, Ctrl+Z, Ctrl+Shift+Z |
| Character palette | Ctrl+Cmd+Space | - |
| Move or select | Arrows, Shift+Arrows | Arrows, Shift+Arrows |
| Move to line start/end | Cmd+Left, Cmd+Right, Home, End | Home, End |
| Select to line start/end | Cmd+Shift+Left, Cmd+Shift+Right, Shift+Home, Shift+End | Shift+Home, Shift+End |
| Move to document start/end | Cmd+Home, Cmd+End | Ctrl+Home, Ctrl+End |
| Page navigation | PageUp, PageDown, Shift+PageUp, Shift+PageDown | PageUp, PageDown, Shift+PageUp, Shift+PageDown |
| Move by word | Option+Left, Option+Right | Ctrl+Left, Ctrl+Right |
| Select by word | Option+Shift+Left, Option+Shift+Right | Ctrl+Shift+Left, Ctrl+Shift+Right |
| Delete word left/right | Option+Backspace, Option+Delete | Ctrl+Backspace, Ctrl+Delete |
| Delete to line start/end | Cmd+Backspace, Cmd+Delete | Ctrl+Shift+Backspace, Ctrl+Shift+Delete |
| Compatibility aliases | Ctrl+A, Ctrl+C, Ctrl+V, Ctrl+X also work in text inputs; some opposite-modifier word shortcuts are accepted too | - |
Commit Composer
| Action | Mac | Windows/Linux |
|---|---|---|
| Commit staged changes | Cmd+Enter | Ctrl+Enter |
| Commit and push | Cmd+Shift+Enter | Ctrl+Shift+Enter |
Only while the commit message input has focus, and only when the button is enabled. With Amend previous commit or Skip hooks on, the same keys amend or skip hooks as the buttons show.
Commit Message Editor
These apply while editing an existing commit's message in Commit details.
| Action | Mac | Windows/Linux |
|---|---|---|
| Update commit | Cmd+Enter | Ctrl+Enter |
| Cancel editing | Escape | Escape |
Update runs only when Update commit is enabled. For a commit already on the upstream, the first press asks for confirmation. See Edit a commit message.
Embedded Terminal
These apply when the embedded terminal has focus. Plain Ctrl+C, Ctrl+V and Ctrl+A are passed through to the shell rather than handled by GitComet.
| Action | Mac | Windows/Linux |
|---|---|---|
| Copy terminal selection | Cmd+C | Ctrl+Shift+C |
| Paste clipboard text | Cmd+V | Ctrl+Shift+V |
| Select all terminal buffer | Cmd+A | Ctrl+Shift+A |
| Scroll terminal history | Shift+PageUp, Shift+PageDown, Shift+Home, Shift+End | Shift+PageUp, Shift+PageDown, Shift+Home, Shift+End |
| Hide the terminal | Cmd+J | Ctrl+Shift+J |
| Keyboard shortcuts cheat sheet | Cmd+/ | Ctrl+Shift+/ |
On Windows and Linux, plain Ctrl+J and Ctrl+/ go to the shell while the terminal has focus.
History
| Action | Mac | Windows/Linux |
|---|---|---|
| Previous / next commit | Up, Down | Up, Down |
| Previous / next page | PageUp, PageDown | PageUp, PageDown |
| First / last commit | Home, End | Home, End |
| Find a commit | Cmd+F | Ctrl+F |
| Next match | Enter, F3 | Enter, F3 |
| Previous match | Shift+Enter, F2 | Shift+Enter, F2 |
| Close find bar | Escape | Escape |
Row navigation applies while the history list has focus and shows the selected commit's details. With nothing selected, PageUp / PageDown select the first commit.
History search matches summaries, authors and plain-text SHA prefixes of at least four hexadecimal characters across the whole history. It supports Match Case, Whole Word and Regex. Enter and Shift+Enter apply while the find bar has focus. See Find a Commit.
Pickers
These apply while a picker's search input has focus. In standalone pickers, the command palette, and Home search, Shift+Tab and Tab also move between results. In dialogs such as Create branch and Add worktree, those keys move between fields.
| Action | Mac | Windows/Linux |
|---|---|---|
| Previous / next result | Up, Down | Up, Down |
| First / last result | Cmd+Home, Cmd+End | Ctrl+Home, Ctrl+End |
| Previous / next page | PageUp, PageDown | PageUp, PageDown |
| Open selected result | Enter | Enter |
| Close context menu, then picker | Escape | Escape |
File History Tab
These apply while the filter input of the sidebar's file history tab has focus. Selecting a commit shows it in the main diff at once.
| Action | Mac | Windows/Linux |
|---|---|---|
| Previous / next commit | Up, Down | Up, Down |
| Previous / next page | PageUp, PageDown | PageUp, PageDown |
| First / last commit | Cmd+Home, Cmd+End | Ctrl+Home, Ctrl+End |
| Clear the filter | Escape | Escape |
Open the tab with Ctrl+H in the diff, on macOS too; Cmd+H hides the application. The shortcut does not take over text-input editing keys. See File History.
Files Explorer
These shortcuts apply while the Files sidebar has focus. Text editors and the terminal keep their own editing keys.
| Action | Mac | Windows/Linux |
|---|---|---|
| Copy / Cut / Paste | Cmd+C, Cmd+X, Cmd+V | Ctrl+C, Ctrl+X, Ctrl+V |
| Move previously copied files here | Option+Cmd+V | Cut, then Paste |
| Duplicate | Cmd+D | Ctrl+D |
| Select all visible items | Cmd+A | Ctrl+A |
| Move selection | Up, Down, Home, End | Up, Down, Home, End |
| Extend selection | Shift + navigation key | Shift + navigation key |
| Move focus without changing selection | Cmd + navigation key | Ctrl + navigation key |
| Expand folder / collapse or go to parent | Right, Left | Right, Left |
| Rename | F2 | F2 |
| Open focused item | Enter | Enter |
| Undo / Redo file operation | Cmd+Z, Cmd+Shift+Z | Ctrl+Z, Ctrl+Shift+Z or Ctrl+Y |
| Trash / Delete permanently | Delete, Shift+Delete | Delete, Shift+Delete |
| Cancel inline entry, pending cut or transfer | Escape | Escape |
Permanent deletion cannot be undone. See Manage Files and Documents.
Diff / Conflict
| Action | Mac | Windows/Linux |
|---|---|---|
| Search diff | Cmd+F | Ctrl+F |
| Insert a newline in diff search | Shift+Enter | Shift+Enter |
| Previous / next search match | F2, F3 | F2, F3 |
| Close search, return to the file list, or close current diff | Escape | Escape |
| Previous / next working-copy file | F1, F4 | F1, F4 |
| Previous / next file in the list the diff came from | Option+Up, Option+Down | Alt+Up, Alt+Down |
| Previous / next change block | Up, Down | Up, Down |
| Scroll the diff by a page | PageUp, PageDown | PageUp, PageDown |
| First / last change block in the file | Home, End | Home, End |
| Previous change | F2, Shift+F7 | F2, Shift+F7 |
| Next change | F3, F7 | F3, F7 |
| Inline diff | Option+I | Alt+I |
| Split diff | Option+S | Alt+S |
| Toggle visible whitespace characters | Option+W | Alt+W |
| Enter or leave the file editor | Option+E | Alt+E |
| Save while the file editor is open | Cmd+S | Ctrl+S |
| Stage the current file (unstaged diff) | Cmd+S | Ctrl+S |
| Unstage the current file (staged diff) | Cmd+U | Ctrl+U |
| Discard the current file, after confirmation (unstaged diff) | Cmd+U | Ctrl+U |
| Stage/unstage current worktree file and advance | Space | Space |
| Stage the selected lines or outlined change block | S | S |
| Unstage (staged diff) or discard (unstaged diff) the selected lines or outlined change block | U | U |
| Copy the file's path (working-tree diff) | Cmd+Shift+C | Ctrl+Shift+C |
| Open the file in the external code editor | Cmd+E | Ctrl+E |
| Toggle blame | Option+B | Alt+B |
| Select all / copy selected diff text | Cmd+A, Cmd+C | Ctrl+A, Ctrl+C |
| Three-way conflict choices | A base, B ours, C theirs, D both | A base, B ours, C theirs, D both |
| Two-way conflict choices | A local, B remote, C both | A local, B remote, C both |
| Pick the first, second or third source for the active conflict | Cmd+1, Cmd+2, Cmd+3 | Ctrl+1, Ctrl+2, Ctrl+3 |
| Pick the first, second or third source for every conflict | Cmd+Shift+1, Cmd+Shift+2, Cmd+Shift+3 | Ctrl+Shift+1, Ctrl+Shift+2, Ctrl+Shift+3 |
| Make the active conflict unresolved again | U | U |
| Previous / next unresolved conflict | Shift+F2, Shift+F3 | Shift+F2, Shift+F3 |
| First / last delta (conflict resolver) | Cmd+Home, Cmd+End | Ctrl+Home, Ctrl+End |
| Align selected lines manually (conflict resolver) | Cmd+Y | Ctrl+Y |
| Clear all manual alignments | Cmd+Shift+Y | Ctrl+Shift+Y |
Search supports Match Case, Whole Word, and Regex. While search is open, F2 / F3 visit matches instead of changes. In a rendered Markdown preview, search covers the rendered text and opens collapsed sections that contain the current match.
In a focused diff, Up / Down outline one change block at a time and continue into the previous or next file past the first or last block. Option+Up / Alt+Up and Option+Down / Alt+Down skip straight to the adjacent file. In commit, comparison, worktree and status lists, Up / Down, PageUp / PageDown and Home / End select files and stop at the first or last file.
S and U act on the selected lines, or on the outlined change block when nothing is selected. U in an unstaged diff discards those lines from the working tree without asking. The external editor shortcut is available once an editor is configured in Settings.
The numbered picks follow the resolver's columns: base, ours and theirs in a three-way merge; local, remote and both in a two-way merge. They also work while the resolved-output editor has focus.
While the file editor is open, Cmd+S / Ctrl+S saves wherever focus is; outside the editor, that shortcut stages the current file. Plain conflict-choice letters do not select inputs while you are typing in an editor or search field. Shift+F2 / Shift+F3 still navigate unresolved conflicts while the resolved-output editor has focus. First/last delta shortcuts remain cursor-movement keys in that editor.
Inline/split toggles and Space staging apply to raw file diffs. Return from rendered previews to source mode to use raw diff controls.
In a focused staged or unstaged file list, Space also acts on its single selected file and advances to the next one. Focus stays in the list, so another Space acts on the next file. Up / Down, PageUp / PageDown and Home / End step through the list's files and open each one in the diff. In those lists, Cmd+A / Ctrl+A selects every file, Cmd+S / Ctrl+S stages the selection, and Cmd+U / Ctrl+U unstages it in the staged list or discards it, after confirmation, in an unstaged list.
Image And Diagram Previews
These apply when an image has focus, including image diffs and image conflict previews.
| Action | Mac | Windows/Linux |
|---|---|---|
| Zoom in / out | +, - | +, - |
| Fit | 0 or double-click | 0 or double-click |
| Actual size (100%) | 1 | 1 |
| Zoom around the pointer | Cmd + scroll | Ctrl + scroll |
| Pan | Drag or scroll | Drag or scroll |
Over a Mermaid diagram, Cmd + scroll / Ctrl + scroll zooms the diagram and double-click returns it to 100%. Elsewhere on Windows and Linux, Ctrl + scroll changes the UI scale; on macOS, Cmd + scroll does not. See Preview images and Markdown.
Context Menus
| Action | All platforms |
|---|---|
| Move selection | Up, Down, Tab, Shift+Tab |
| Activate selection or first enabled item | Enter |
| Close menu | Escape |
| Activate a labeled entry | The single-letter shortcut shown beside it |
In history menus, Right, Enter or Space opens a branch/tag group; Left returns to the parent menu.
Focused Diff Window
| Action | Mac | Windows/Linux |
|---|---|---|
| Close | Cmd+W, Ctrl+W, Escape, Q | Ctrl+W, Escape, Q |
| Previous change | F2, Shift+F7 | F2, Shift+F7 |
| Next change | F3, F7 | F3, F7 |