Recentering after consult-buffer
and consult-register
does not work
#1252
Replies: 2 comments 1 reply
-
Yes, as intended, the consult-after-jump-hooks are only triggered by commands like consult-line, which jump to markers. |
Beta Was this translation helpful? Give feedback.
-
I think it should be triggered whenever consult moves to a location (which is what the docstring suggests). So I agree that merely switching to a buffer shouldn't trigger it, but if I save a position in a register, and jump to it via consult-register, I think it should trigger it whether preview is enabled or not. FWIW, I don't have preview enabled and consult-register for a position doesn't seem to trigger it for me, though I rarely use registers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I think the
recenter
function from theconsult-after-jump-hook
is not called when usingconsult-buffer
andconsult-register
if preview is not triggered (i.e.consult-preview-key
isnil
). Looking at the code, that seems to be the case. The hooks are called in the preview functionconsult--jump-preview
, but never in the top-level functions so I think when previewing is not active, recentering and the hooks in general are not triggered.Beta Was this translation helpful? Give feedback.
All reactions