-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Use <tab> keycode rather than TAB #3472
Comments
I wholeheartedly agree with this, I've personally encountered this issue in the help buffers and in org-mode |
Same problem append with |
This problem have also been reported in #2105, with an additional keybinding: |
Same problem with |
|
I want |
Oh, sorry for the misunderstanding. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
For historic reasons emacs treats the
TAB
andC-i
keycodes as the same thing. Specifically, those historic reasons are that a terminal does not distinguish between the physical Ctrl + i and tab keys: They send the same code. As a workaround there's the function key code<tab>
which is not mapped toTAB
if it has a binding of its own; note: this only works in terminals with extended capability or non-terminal versions of emacs.If the following scheme is used separate bindings for tab and Ctrl + i (the physical keys) can be used when emacs runs in a window system.
<tab>
TAB
orC-i
There are a few places in the
spacemacs
source, where theTAB
keycode is used instead of the<tab>
version event though they are intended to be bound to the physical tab key.Fixing those (and ensuring that this becomes part of the contribution guidelines) will allow users to have separate binding for Ctrl + i and tab. Take Issue #3165 as an example of the resulting problem.
This is of special importance for an
evil
based configuration because traditionally Ctrl + i is used to step through the jump list.I suggest two things:
TAB
to use<tab>
instead whenever emacs is launched in non-terminal mode.The text was updated successfully, but these errors were encountered: