-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow chaining find_next_char
, select_textobject_around
, etc. together with other commands in keymaps
#4013
Comments
I'm taking a stab at fixing this. I got a fix that works but needs a bit more work before I open a pull request. |
The ones related to |
Although
|
Not sure why, but to chain some commands, sometimes they requires a
|
There are quite a few commands that expect an argument in the form of a single character:
find_till_char
find_next_char
till_prev_char
find_prev_char
surround_add
surround_replace
(this one even expects two arguments)surround_delete
select_textobject_around
select_textobject_inner
However, it doesn't seem possible to chain these together with other commands in keymaps.
For example:
does not work as expected. The
collapse_selection
command seems to be completely ignored.Similarly, this
seems to execute the
change_selection
command immediately, beforeselect_textobject_inner
has finished.My enhancement request is that if these commands with arguments appear in a keymap, they should first finish completely and then the next command in the list should be called.
The text was updated successfully, but these errors were encountered: