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 want to override gd (goto_definition) such that after I jump somewhere, the cursor and definition are near the top of the viewport. I have tried the following:
[keys.normal.g]
d = ["goto_definition", "align_view_top"]
I expect this command sequence to goto_definition (it does), then shift the view with align_view_top in the new or existing buffer (it does not).
What happens instead depends on whether goto_definition opens a new buffer or not:
definition opens a new buffer: the previous buffer gets the align_view_top effect
definition is in the same buffer: align_view_top is not applied
Summary
I want to override
gd
(goto_definition) such that after I jump somewhere, the cursor and definition are near the top of the viewport. I have tried the following:I expect this command sequence to
goto_definition
(it does), then shift the view withalign_view_top
in the new or existing buffer (it does not).What happens instead depends on whether
goto_definition
opens a new buffer or not:align_view_top
effectalign_view_top
is not appliedPlatform
macOS
Terminal Emulator
wezterm
Installation Method
flake
Helix Version
helix 25.01.1 (e148d8b)
The text was updated successfully, but these errors were encountered: