Releases: julienvincent/hunk.nvim
v1.10.0
Changes
- feat: add icon customization config options in dc7d3a9
enable_file_icons, expanded, collapsed now configurable.
- feat: set
nowait = trueon 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 tofalse) is added, which shows a
confirmation usingvim.ui.selectwhen enabled. - feat: set
nowait = truefor 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
- @ahkohd made their first contribution in #32
- @mawkler made their first contribution in #38
- @naoki-mizuno made their first contribution in #40
- @nikosavola made their first contribution in #46
Full Changelog: v1.9.0...v1.10.0
v1.9.0
v1.8.0
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_pairwhich is default mapped to
sin normal and visual mode which exposes this behaviour.
Full Changelog: v1.7.0...v1.8.0
v1.7.0
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
What's Changed
- Create splits in correct order regardless of
splitrightorsplitbelowsettings 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