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
I like the new consult-after-jump-function but think it should behave the same as xref. That uses a hook not a function and defaults to both recenter and pulsing which is nice. I've modified xref to use reposition-window instead of recenter and think it would be great if consult either just used xref-after-jump-hook or set the default value of a consult-after-jump-hook to be the value of xref-after-jump-hook so I only have to set it once.
The text was updated successfully, but these errors were encountered:
Thank you for the input! I think it is better not to introduce an unnecessary dependency here. You can overwrite the consult-after-jump-function with a lambda which runs the corresponding xref hook. Since the consult-after-jump-function is used for the preview, it is crucial that it only performs benign operations - we cannot guarantee this if we execute the xref hooks instead. The priority is on correctness and robustness over minor conveniences during configuration. The package is explicitly designed such that it will require configuration, e.g., for the keybindings. Furthermore I may introduce a boolean argument to the consult-after-jump-function at some point such that the function can distinguish between jumps during preview and the final jump after selection.
I looked before if there are ways on how to integrate xref with consult, but I have to do a bit more digging - if you have ideas, please let me know!
I like the new
consult-after-jump-function
but think it should behave the same as xref. That uses a hook not a function and defaults to both recenter and pulsing which is nice. I've modified xref to usereposition-window
instead ofrecenter
and think it would be great if consult either just usedxref-after-jump-hook
or set the default value of aconsult-after-jump-hook
to be the value ofxref-after-jump-hook
so I only have to set it once.The text was updated successfully, but these errors were encountered: