Go to file
n loewen ca68e79572 Make 'b' work as page up 2025-06-08 17:08:53 +01:00
.gitignore Add gitignore 2025-05-05 10:59:19 +01:00
gtm Make 'b' work as page up 2025-06-08 17:08:53 +01:00
readme.md refactor: Update command-line options to use no-* flags for diff, mouse, numbers, and wrap 2025-06-08 11:01:59 +01:00
screenshot.png Add screenshot 2025-05-05 11:03:46 +01:00

readme.md

gtm: git time machine

Quickly browse through previous versions of a file.

Basic usage: gtm [filename]

Options

-h, --help        show this help message and exit
--no-diff         Don't highlight added and deleted lines
--no-mouse        Disable mouse support
--no-wrap         Disable line wrapping
--no-numbers      Hide line numbers
-v, --version     Show version number

Interface

  • Use the up/down arrow keys (or j/k) to switch commits in the left pane, or scroll through the file in the right pane
  • Use the left/right arrow keys (or h/l) to switch panes
  • Use the mouse to select commits, switch panes, and resize the panes by dragging the divider
  • Press 's' to show/hide the sidebar
  • Press 'm' to turn mouse support on/off
  • Press 'w' to toggle line wrapping
  • Press 'L' to toggle line numbers
  • Press '/' to search within the file
  • Press 'n' to jump to the next search match
  • Press 'N' to jump to the previous search match
  • Press 'c' to jump to the next change
  • Press 'C' to jump to the previous change
  • Press '?' to show help with all keyboard shortcuts

Text Selection

  • Select text with the mouse to copy it to the clipboard
  • Selection is automatically cleared when scrolling or changing commits
  • Click on a commit hash in the status bar to copy it to the clipboard

screenshot