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

Is there a way to map ctrl+h and backspace to different functions? #14410

Open
roachsinai opened this issue Apr 19, 2024 · 0 comments
Open

Is there a way to map ctrl+h and backspace to different functions? #14410

roachsinai opened this issue Apr 19, 2024 · 0 comments

Comments

@roachsinai
Copy link

if I set 'c-h' only, backspace will do same thing as ctrl+h, just like below:

    registry.add_binding('c-h', filter=(HasFocus(DEFAULT_BUFFER) & ViInsertMode()))(nc.backward_char)

And 'c-?' is not allowed to add_binding.

Is there a way to make it as many terminal can distinguish c-h and <bs>.

If for compatibility, is it possible to support bind c-??

Thanks in advance.

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