You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #1321 (#1319), deprecated gitsigns.toggle_deleted function in <leader>tD keymap was replaced by gitsigns.preview_hunk_inline, which is the function to which author of the gitsigns point as a replacement, but it doesn't make a lot of sense to use it in the same way with the same keymap and description.
It is not a toggle, it's a preview, which goes away on any key press.
It is just the other style of gitsings.preview_hunk, which already has its own keymap defined (<leader>hp).
Unfortunately, there is no good replacement for original feature.
Visible resolutions:
Leave this function in, change keymap to something like <leader>hP or <leader>hi, update keymap order and desc to match this change.
Delete this function, optionally leave a comment about possibility of replacing gitsigns.preview_hunk with gitsigns.preview_hunk_inline.
The text was updated successfully, but these errors were encountered:
sliva0
changed the title
gitsigns.preview_hunk_inline is not drop-in-place replacement for gitsigns.toggle_deletedgitsigns.preview_hunk_inline is not drop-in-place replacement for gitsigns.toggle_deletedApr 11, 2025
In #1321 (#1319), deprecated
gitsigns.toggle_deleted
function in<leader>tD
keymap was replaced bygitsigns.preview_hunk_inline
, which is the function to which author of thegitsigns
point as a replacement, but it doesn't make a lot of sense to use it in the same way with the same keymap and description.gitsings.preview_hunk
, which already has its own keymap defined (<leader>hp
).Unfortunately, there is no good replacement for original feature.
Visible resolutions:
<leader>hP
or<leader>hi
, update keymap order anddesc
to match this change.gitsigns.preview_hunk
withgitsigns.preview_hunk_inline
.The text was updated successfully, but these errors were encountered: