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.
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 show shortcuts for their available actions.
App
| Action | Mac | Windows/Linux |
|---|---|---|
| New window | Cmd+N, Cmd+Shift+N | Ctrl+N, Ctrl+Shift+N |
| Settings | Cmd+, | Ctrl+, |
| Command palette | Cmd+P | Ctrl+P |
| 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, Ctrl+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 / decrease / reset UI scale | Cmd++, Cmd+-, Cmd+0 | Ctrl++, 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 |
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 |
Only while the commit message input has focus, and only when the Commit action is enabled.
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 |
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.
| Action | Mac | Windows/Linux |
|---|---|---|
| Previous / next result | Up, Down, Shift+Tab, Tab | Up, Down, Shift+Tab, Tab |
| 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, clear selection, or close current diff | Escape | Escape |
| Previous / next file | F1, F4 | F1, F4 |
| Previous / next file in the list the diff came from | Up, Down | Up, Down |
| Previous / next page of files | PageUp, PageDown | PageUp, PageDown |
| First / last file | Home, End | Home, End |
| Previous change | F2, Shift+F7, Option+Up | F2, Shift+F7, Alt+Up |
| Next change | F3, F7, Option+Down | F3, F7, Alt+Down |
| 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/unstage current worktree file and advance | Space | Space |
| 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 |
| 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.
Up / Down, PageUp / PageDown and Home / End work without modifiers in commit, comparison, worktree and status lists, and stop at the first or last file. The conflict resolver uses F1 / F4 instead.
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.
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, the same gesture changes the UI scale. See Preview images and Markdown.
Context Menus
| Action | All platforms |
|---|---|
| Move selection | Up, Down |
| 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, Option+Up | F2, Shift+F7, Alt+Up |
| Next change | F3, F7, Option+Down | F3, F7, Alt+Down |