Skip to content
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

Enable yank-last-arg for Vi binding #1905

Open
amitkot opened this issue Aug 8, 2024 · 0 comments
Open

Enable yank-last-arg for Vi binding #1905

amitkot opened this issue Aug 8, 2024 · 0 comments

Comments

@amitkot
Copy link

amitkot commented Aug 8, 2024

yank-last-arg was enabled for Emacs binding as part of #343.
It would be very useful to have it enabled for Vi binding as well.

I'm using Xonsh and as a workaround for the time being I am using this binding:

@events.on_ptk_create
def custom_keybindings(bindings, **kw):

    @bindings.add('escape', '.')
    def yank_last(event):
        event.current_buffer.yank_last_arg()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant