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
Pressing y and d exit select mode but r/R doesn't.
This breaks the v<movement><operation> pattern, and my brain is confused by the fact that I am still in selection mode.
I've been using helix as my primary editor for a few days, and my brain switched already, except for this particular behavior that still surprises me every time.
Note: It makes sense to keep selection after R (to be consistent with y) just exiting v mode would solve it for me.
The text was updated successfully, but these errors were encountered:
I haven't noticed this behavior so I'm not sure where I stand. Delete always and yank usually comes at the end of a sequence but with replace you may want to then operate on the new text in the selection, so it may make sense to stay in select mode.
You use a binding like so in your config:
[keys.select]
r = ["replace", "normal_mode"]
R = ["replace_with_yanked", "normal_mode"]
@the-mikedavis Thanks a lot 👍
I also replaced it in a space mode:
[keys.normal.space]
R = ["replace_selections_with_clipboard", "normal_mode"]
The only problem beyond dependency on custom config is I'm losing the description of those commands:
Delete always and yank usually comes at the end of a sequence but with replace you may want to then operate on the new text in the selection, so it may make sense to stay in select mode.
Yes, it's an argument for keeping the selection, but it's hard to imagine a sequence where you replace a selection but need to select more.
In my workflow, I sometimes add text after a replacement, but I don't need to continue selection for that.
Most of the time, I use select mode to do:
Pressing
y
andd
exit select mode butr
/R
doesn't.This breaks the
v<movement><operation>
pattern, and my brain is confused by the fact that I am still in selection mode.I've been using helix as my primary editor for a few days, and my brain switched already, except for this particular behavior that still surprises me every time.
Note: It makes sense to keep selection after
R
(to be consistent withy
) just exitingv
mode would solve it for me.The text was updated successfully, but these errors were encountered: