Skip to content

Releases: dlvhdr/diffnav

v0.6.0

17 Jan 17:46
v0.6.0
4bfcf87

Choose a tag to compare

Unified Diff Mode Toggle

Thanks to @markdorison 🙏🏽 diffnav now supports toggling between side-by-side and unified diff modes.
Press s to switch between the two or use the --side-by-side and --unified flags.
You can also set this in the config file under ui.sideBySide.

Changelog

  • 4bfcf87 feat: add unified diff view option (#63)

v0.5.0

14 Jan 09:34
v0.5.0
c8a8f8e

Choose a tag to compare

Changelog

  • f016577 Update README to remove caution note
  • 47787e2 ci: add taskfile (#55)
  • 7d14b38 ci: update devbox
  • c8a8f8e feat: add configurable icon styles (#58)
  • f319214 feat: add keybinding to open file in editor (#60)
  • dd8fd3d fix: correct file tree selection after search (#61)

v0.4.0

09 Jan 17:09
v0.4.0
8d516cd

Choose a tag to compare

Switch focus between panes, config file, mouse support and more!

This release is brought to you by @pablospe who made some serious improvements across the board!
Thank you @pablospe, your work is really appreciated! <3

Focus Switching

You can now switch focus between the file tree and the diff by hitting tab.
This lets you use a wider set of movement keybinds like actually navigating one line at a time with j/k.

Config File

diffnav now has a config file (check the readme on how to set it up).
It lets you hide the footer/header, hide the file tree by default or set its width.

Mouse Support

You can now click the files in the tree or scroll the diff with your mouse!

Again, this was all done by @pablospe so give him some love!

Changelog

  • ccb29e8 Revert "fix: prevent j/k from scrolling inactive panel"
  • 3a431de chore: add funding configuration for GitHub
  • 37a52c1 feat: add config option to hide header
  • e5efc99 feat: add more config options
  • 8d516cd feat: add mouse support (#49)
  • 60f5aa3 feat: add panel switching with h/l and arrow keys
  • bfc0ef1 feat: convert config to YAML and nest under ui key
  • 600d8ed feat: improve config file discovery
  • 090abfc feat: make ctrl+d/ctrl+u global for diff scrolling
  • 23b3000 feat: replace h/l panel switching with Tab toggle
  • d6b2e73 fix: improve file tree selection styling
  • cad6633 fix: isolate panel navigation to prevent cross-scrolling
  • 803f7a8 fix: prevent delta colors from bleeding into file tree panel
  • a07e104 fix: prevent j/k from scrolling inactive panel
  • f5f8972 refactor: use ansi.Truncate instead of custom implementation
  • e939dcf refactor: use camelCase for config keys
  • 08a7356 style: capitalize TAB in footer help

v0.3.1

10 May 18:15
v0.3.1

Choose a tag to compare

Minor fix

  • Go to top of the diff viewport when changing files

Changelog

v0.3.0

07 Jan 15:00

Choose a tag to compare

Changelog

  • Press y to copy the file path

Commits

  • deafe64 chore: remove copySelectedFilePath func
  • bff4633 chore: update README.md
  • eb2dfa1 feat: add copy selected file path
  • 3b0a369 fix: change keybinding from c to y

v0.2.8

05 Oct 11:38

Choose a tag to compare

Changelog

  • 2ca04b3 fix: only create debug.log if env var is set

v0.2.7

05 Oct 11:38

Choose a tag to compare

Changelog

  • 4bfc333 chore: remove broken test
  • e12383c fix: filetree viewport double offset
  • edefcba refactor: move sortFiles to utils
  • 3f9a3cd refactor: move to subpackages and introduce component with a setSize

v0.2.6

03 Oct 17:18

Choose a tag to compare

Changelog

  • ebbfbbb fix: diff width after exiting search mode

v0.2.5

01 Oct 21:02
f9d90a3

Choose a tag to compare

Changelog

  • f9d90a3 fix: don't enter altscreen on empty input (#27)

v0.2.4

28 Sep 09:59
ef1bbf9

Choose a tag to compare

Changelog

  • c31ef58 Merge pull request #22 from dlvhdr/update-readme
  • aa7dc7a Merge pull request #23 from dlvhdr/dlvhdr/update-pic
  • ef1bbf9 Merge pull request #24 from dlvhdr/dlvhdr/fix-height
  • d5b7641 fix: tree height