Skip to content

Releases: julienvincent/hunk.nvim

v1.10.0

09 May 13:39
c8a8e7b

Choose a tag to compare

Changes

  • feat: add icon customization config options in dc7d3a9

    enable_file_icons, expanded, collapsed now configurable.

  • feat: set nowait = true on keymappings in e260c9a
  • chore: add note about suppressing the JJ-INSTRUCTIONS file in 414f0db
  • chore: update link to jj repo and docs in 46747e6
  • feat: add option to show confirmation before quitting in c6b13d8

    ui.confirm_before_quit (default to false) is added, which shows a
    confirmation using vim.ui.select when enabled.

  • feat: set nowait = true for tree keymaps in 4e4170d
  • feat: add health check in c0ae2f5
  • feat: add type annotations for Lua LSP in 6df3171
  • Link hunk highlights to more standard highlights in 9846b7f

    This is a breaking change.

    Currently hunk defines some highlights for internal use and links them
    to other highlights that are non-standard and were chosen based on the
    theme I use personally.

    This isn't very portable and we would be better served by linking to
    more standard highlight names.

    Yes this is a breaking change, but it's for the best. Users can still
    define their own highlights for any of the Hunk defined highlights - so
    there is a clear migration path for those who want to maintain how their
    split UI looked.

  • feat(tree): add floating window for displaying trees in 402dbc1

New Contributors

Full Changelog: v1.9.0...v1.10.0

v1.9.0

20 Sep 15:53
c21f15d

Choose a tag to compare

  • Add descriptions to hunk keymaps in 8d513e4

    Closes #26

  • Add support for symlinks in 41a5fff

    Closes #27

  • Add docs on how to accept or reject changes in c21f15d

    Closes #23

Full Changelog: v1.8.0...v1.9.0

v1.8.0

09 Jun 10:18
1e0a4d7

Choose a tag to compare

Bug Fixes

  • Interleave hunk lines when applying diffs in b9f738e

    This fixes a bug where line ordering in a partially selected left/right
    hunk was not being maintained.

    This was an issue because the old diff application logic would apply all
    of the left side of a hunk and then all of the right.

    This reworks this logic to apply hunks line-by-line, left to right. This
    means that given a hunk spanning multiple lines, for each line the left
    will be applied and then the right.

    This interleaving results in the expected line ordering being maintained
    when partially selecting lines in the same hunk.

Features

  • Define keybindings with nowait = true in dd99ea3

    This allows these hunk keybindings to take presedence over any
    preexisting chords defined.

    This improves the perceived experience when performing line toggles in
    visual-line mode especially.

  • Add keymaps to allow toggling lines on both sides in 1e0a4d7

    Currently if you want to toggle line-by-line you need to navigate to the
    'other' side of the diff to toggle the corresponding line there.

    The more natural experience would be to have a keymap which toggles the
    corresponding line (from the perspective of the current hunk) on the
    other side of the diff at the same time.

    This patch adds the keymap toggle_line_pair which is default mapped to
    s in normal and visual mode which exposes this behaviour.


Full Changelog: v1.7.0...v1.8.0

v1.7.0

14 May 09:17
48713c5

Choose a tag to compare

Changes

  • Define configurable hunk highlights for treeview - db2d3d5
  • Show a help menu with commands when pressing g? - 687032e. Resolves #18
  • Add prev_hunk + next_hunk diffview commands - 4eaa144. Resolves #20
  • Add toggle_focus command to switch between views - 02018f9
  • Disable swapfile creation for diffview buffers - 74ff7bb. Fixes #21

Release Highlights

New navigation commands

Three new diffview commands were added to make it simpler to navigate between changes:

  • prev_hunk (default [h)
  • next_hunk (default ]h)
  • toggle_focus (default <Tab>)

Configurable treeview highlights

The treeview is now highlighted using custom Hunk* highlight names which you can use to customise how it ends up looking.

See The README section for more information.


Full Changelog: v1.6.0...v1.7.0

v1.6.0

08 Feb 13:55
b475ba0

Choose a tag to compare

What's Changed

  • Create splits in correct order regardless of splitright or splitbelow settings by @jstemmer in #16
  • Render treeview selection state icons inline in 7f939d8
  • Fix treeview dir toggle producing unexpected state in fe9b5b2

New Contributors

Full Changelog: v1.5.0...v1.6.0

v1.5.0

19 Sep 20:23
eb89245

Choose a tag to compare

What's Changed

  • Use non-0 exit code when quitting 8a35aec
  • Manually construct diff buffers 5cf80f4
  • Handle nested file paths better 0834cb9
  • Pass reference to tree when calling action fns eb89245

Full Changelog: v1.4.0...v1.5.0

v1.4.0

13 Aug 08:05
5bf45e0

Choose a tag to compare

What's Changed

  • feat: auto-setup with lazy-loading by @mrcjkb in #12
  • Place filetree cursor at selected file on init 8fd2ec4
  • Remove preview image from repo files 382ed50
  • Allow toggle on dir to recursively toggle files 5bf45e0

New Contributors

Full Changelog: v1.3.0...v1.4.0

v1.3.0

28 Jul 16:10
c3edadb

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2.0...v1.3.0

v1.2.0

24 Jul 10:10
938b1f2

Choose a tag to compare

What's Changed

  • Add support for horizontal split by @kareigu in #1
  • Fixed #1

New Contributors

Full Changelog: v1.1.0...v1.2.0

v1.1.0

23 Jul 05:05
8a188f6

Choose a tag to compare