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

Support Ctrl-Shift-? #10

Open
Stanislav-Lapata opened this issue Nov 28, 2019 · 5 comments
Open

Support Ctrl-Shift-? #10

Stanislav-Lapata opened this issue Nov 28, 2019 · 5 comments
Labels
enhancement New feature or request

Comments

@Stanislav-Lapata
Copy link
Contributor

Do you plan to support Ctrl-Shift-? e.g.

@beeender
Copy link
Owner

Ctrl-Shift for what? I don't quite get

@Stanislav-Lapata
Copy link
Contributor Author

https://vim.fandom.com/wiki/Mapping_fast_keycodes_in_terminal_Vim

noremap <S-C-p> :echom "C-S-p pressed"<CR>
noremap <C-p> :echom "C-p pressed"<CR>

always writes in :messages the string C-p pressed
or

noremap <C-p> :echom "C-p pressed"<CR>
noremap <S-C-p> :echom "C-S-p pressed"<CR>

the string C-S-p pressed

@beeender beeender added the enhancement New feature or request label Nov 29, 2019
@beeender
Copy link
Owner

It seems to be possible, will do

@beeender
Copy link
Owner

I checked the terminals doc and it seems to support Ctrl+Shift+X binding, a specific key board binding needs to be added to the terminal configuration.
e.g. to support ctrl+shift+a and ctrl+shift+b, both of them have to be added as a key map entry in the terminal config files.
We cannot simply ask the terminal to bypass the all the combination of ctrl+shift to glrnvim.

I cannot figure out a general solution of this. So maybe in the future we can something like extra options which user can define some extra options of the specific terminal in the glrnvim's config file. in that case, the ctrl+shift key mapping can also be supported (with boring extra options :( )

@fikovnik
Copy link

fikovnik commented Feb 7, 2021

General solution has been proposed and adopted by a number of terminals: http://www.leonerd.org.uk/hacks/fixterms/
Unfortunately, it does not work well in neovim (while it works well in vim8).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants