Skip to content

Repository files navigation

yadv

Yet Another Local Diff Viewer. There are many tui diff viewers, but this one is mine.

yadv sample

fork of ghui to make it work for local diff changes because its ui is beautiful

Install

npm install -g @jossephus/yadv

Then run:

yadv

Keybindings

  • up / down: move selection
  • k / j: move selection
  • gg / G: jump to first or last diff anchor
  • ctrl-u / ctrl-d: page up or down
  • ctrl-p / cmd-k: open the command palette
  • esc: close the active modal
  • r: refresh
  • up / down / pageup / pagedown: move through the diff
  • enter: open the selected diff comment thread
  • v: start or clear a multi-line comment range
  • n / p: jump between comment threads
  • f: open the changed-files navigator while viewing a diff
  • left / right: choose the deleted or added side while in split diff comment mode
  • [ / ]: switch files while viewing or commenting on a diff
  • { / }: jump to the previous or next diff hunk
  • a: stage or unstage the current hunk
  • t: choose a fixed theme, including System to match your terminal colors; press m in the theme picker to follow the OS light/dark appearance with separate theme choices
  • q: quit

Credits

  • Forked from ghui by Kit Langton.

About

Yet Another Diff Viewer - fork of ghui

Resources

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages