ipython / ipython/ipython

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

Open
#14,410 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
16.8k
Forks
4.5k
Avg merge
1d 2h
Merged PRs (30d)
6

Description

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 ``.

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

Thanks in advance.

```[tasklist]
### Tasks
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.