Skip to content

v1.8.1

Choose a tag to compare

@macintacos macintacos released this 09 Nov 19:06
Immutable release. Only release title and notes can be modified.
96a965a

caret 1.8.1 adds vim's zz, zt and zb to scroll the plan around the cursor, ]] and [[ to jump between changes in compare, and lets a hook attach to a caret daemon on another machine, so you can review a server's plans from another device. It also keeps a tall row such as an inline image on screen when j/k lands on it.

Added

  • Scroll around the cursor with zz, zt and zb. On both the source view and the preview, they scroll the cursor line to the center, or to the top or bottom edge of the band the j/k follow keeps, without moving the cursor or a visual selection. With no cursor placed, each first reveals one at the reading position. A row too tall for that margin, such as an inline image, is centered instead, and near the end of the plan the scroll glides to rest at the end of its range. The ? help lists them.
  • Jump between changes in compare. In the compare-versions view, ]] and [[ step forward and back through the changes, scrolling each to just below the pinned file header. A stop is a run of changed lines, not a whole hunk, so separate edits in one hunk each get their own. The jump stops at either end instead of wrapping, and holding the key advances one change per press. Off compare, the keys still jump between headings.
  • Review on another machine's daemon. A hook whose daemon.host is not an address on its own machine now attaches to the caret daemon there, instead of refusing because the state-directory paths differ. It never retires, restarts or spawns that daemon, whatever version each side runs, and denies the review with no caret daemon is answering at … when nothing answers. doc/RUNNING.md covers the setup, the cleartext token, and the limits of a daemon acting on the server's files.

Fixed

  • j/k onto a tall row keeps it on screen. Moving the cursor onto a row taller than the follow's margin, such as an inline image, centers it instead of scrolling it off screen.

Full Changelog: v1.8.0...v1.8.1