mantish/ help / docs
Join the waitlist

Moving around

Jump between changes and files, filter the file tree, and use the command palette and shortcuts.

Last updated

A review is mostly reading, and reading goes faster when you never have to hunt for the next thing to read. Mantish lets you step from change to change and file to file without touching the mouse.

Keys are written as on a Mac. On Windows and Linux, press Ctrl for ⌘, Alt for ⌥ and Shift for ⇧.

Step through a review

To…PressOr
Go to the next / previous change⌥↓ / ⌥↑The arrows of the change navigator in the file header
Go to the next / previous file⌘] / ⌘[The arrows next to the file name
Go back / forward to where you were⌥← / ⌥→Your mouse's back and forward buttons
Go to a line⌘LType 42, or 42:8 for a column
Find in a file⌘FHover the side you want to search first

Next and previous change skip muted changes, so you only stop where there is something to read.

Past a file's last change, ⌥↓ goes on into the next file — on the second press. The first stops there and says which file comes next; press it again and that file opens on its first change. ⌥↑ before the first change goes back the same way and opens the previous file on its last change, so a pull request reads as one stream in either direction. Holding the key walks a file's changes but never carries you out of the file, and doing anything else in between — scrolling, another key — starts over. At the end of the last file, the press only says so.

To have every file you move on from marked as viewed — with ⌥↓ past its last change, ⌘] / ⌘[ or the arrows next to the file name — turn on Settings › Diff › Navigation › Mark a file viewed when you move on. It is off by default, and the terminal follows the same setting.

The file tree

The file tree and its filters
The file tree and its filters
  • Files lists the changed files as a folder tree or a flat list. Tags groups them by what kind of file they are — Breaking changes, Security-sensitive, Migrations and more.
  • Click anywhere on a file's row to open it. A comment shown under a file opens the file right at that comment.
  • The toolbar above the list: Filters narrows it — Unviewed or Comments only, the files with Nothing left to read (every change muted or hidden) left out or listed alone, a file type (added, modified, deleted, renamed), or a tag — and while it does, Mark listed files as reviewed marks every file left in the list at once; the crosshair reveals the open file; Expand all and Collapse all open and close every folder (and, in Tags, every group); the ⚙ view options switch between the tree and a flat list, the order, and the file colors.
  • In a narrow sidebar the toolbar keeps the buttons it has room for and folds the rest behind › at its end. Point at it — or click it, or Tab to it and press Enter — and the whole toolbar opens out past the sidebar's edge, each button where it was.
  • Hover the tree and press ⌘F to filter it by file name.
  • Settings › File tree sets the rest: file icons, indent guides, Density (compact rows take less room), and whether folders start expanded or collapsed — which a coloring rule can override folder by folder.

Review only what is new

When a pull request gets new commits after you have reviewed it, you do not need to read it all again. The All changes picker in the top bar lists every update pushed to the pull request: pick one to see only what it changed, or Shift-click a second one to see a range.

Go to a declaration, implementations or usages

In a C#, Java, Kotlin, Scala, Python, Go, TypeScript, JavaScript, Rust, C, C++, Ruby, PHP, Swift, Dart, Lua or GDScript file, right-click a name and pick Go to Declaration, Go to Implementation or Find Usages — or ⌘-click the name to go to its declaration; holding ⌘ underlines the name under the pointer. With the caret on a name, ⌘B, ⌥⌘B and ⌥F7 do the same. All of it works in both compare views; in Compact, a line the change removed asks about the version before it.

Mantish looks through the pull request's files — for a local repository, the changes you are reviewing. One place opens in a peek under the line you asked at: the file's code in a card over the diff — both versions side by side for a file of the pull request, one column for a file outside it — where you scroll, open hidden lines, comment and ⌘-click on, ⌥← stepping back. Open in tab goes there; Esc closes it. Several places — the implementations of an interface, the usages of a name — open in the same peek, listed beside the code by file: a click or ↑ ↓ shows another, Enter opens it in its tab, a file's row folds its places away. When nothing in those files declares, implements or uses the name, a message says so.

To go to the place at once instead — and pick among several in a list — set Settings › Diff › Navigation › Go to opens a place in to Tab.

Show Flow (⌃⌥H) on the same menu draws who calls the member and what it calls, across the pull request, in a tab of its own — see Call flow.

The command palette

Press ⌘K — or pick Command palette in the account menu at the right of the top bar — to search every command by name — switching views, toggling settings, revealing muted changes, opening panels. Your recent commands are listed first, and you can star the ones you want to keep at hand.

Shortcuts

ShortcutAction
⌘KCommand palette
⌥1 / ⌥2 / ⌥3Code / Structure / Diagram view
⌥F / ⌥CFocus / compare the hovered block
⌘B / ⌥⌘BGo to declaration / implementation
⌥F7Find usages
⌃⌥HShow the call flow
⌘ / ⌘JToggle the left / right sidebar
⌥⇧1Toggle the threads panel
⌥HToggle change highlighting
⌘/Toggle comments
⌘,Open settings

Every shortcut can be changed: Settings › Keyboard › Customise all shortcuts….

In the other apps

  • JetBrains: in development.
  • Terminal: j / k step through changes — on into the next or previous file when pressed again at a file's edge — and [ / ] through files; press ? for the full list. With Vim's keys (:keymap vim) it is ]c / [c and ]f / [f, and j / k move a row. v / V select code in either keymap — y copies it, gy copies it for an LLM. See Terminal.
Was this page helpful?