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 Rust, ]a followed by Alt-i selects the left bracket enclosing the arguments.
The bracket being selected seems to be a glitch, as it's not a sub-portion of the initial ]a selection (of the argument and type).
Maybe it would be good to have ]a select the argument name only, instead of the type declaration as well? Then Alt-o could be used to enclose the type as well, if desired.
Reproduction Steps
I tried this:
(In Rust) If I want to select the name of the first argument of a function a few lines below my current location:
]a jumps and selects the first argument name and type of the next function....
Then typing Alt-i, (attempting to select just the argument name), the left bracket of the arguments is selected instead of the expected name of the argument.
Helix log
~/.cache/helix/helix.log
please provide a copy of `~/.cache/helix/helix.log` here if possible, you may need to redact some of the lines
human154
changed the title
'] a' followed by 'Alt-i' selects left bracket of arguments.
']a' followed by 'Alt-i' selects left bracket of arguments.
Oct 21, 2023
human154
changed the title
']a' followed by 'Alt-i' selects left bracket of arguments.]a followed by Alt-i selects left bracket of arguments.
Oct 21, 2023
this is fixed by #6198 I think by ensuring that alt-i only chooses the first child inside the current selection (instead of the first child node in general)
Summary
In Rust,
]a
followed byAlt-i
selects the left bracket enclosing the arguments.The bracket being selected seems to be a glitch, as it's not a sub-portion of the initial
]a
selection (of the argument and type).Maybe it would be good to have
]a
select the argument name only, instead of the type declaration as well? ThenAlt-o
could be used to enclose the type as well, if desired.Reproduction Steps
I tried this:
(In Rust) If I want to select the name of the first argument of a function a few lines below my current location:
]a
jumps and selects the first argument name and type of the next function....Then typing
Alt-i
, (attempting to select just the argument name), the left bracket of the arguments is selected instead of the expected name of the argument.Helix log
~/.cache/helix/helix.log
Platform
WSL
Terminal Emulator
Windows terminal
Helix Version
helix 22.12 (6c95411)
The text was updated successfully, but these errors were encountered: