glrnvim icon indicating copy to clipboard operation
glrnvim copied to clipboard

Support Ctrl-Shift-?

Open Stanislav-Lapata opened this issue 5 years ago • 5 comments

Do you plan to support Ctrl-Shift-? e.g. <C-S-p>

Stanislav-Lapata avatar Nov 28 '19 08:11 Stanislav-Lapata

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

beeender avatar Nov 28 '19 09:11 beeender

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

Stanislav-Lapata avatar Nov 28 '19 11:11 Stanislav-Lapata

It seems to be possible, will do

beeender avatar Nov 29 '19 10:11 beeender

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 :( )

beeender avatar Jan 13 '20 05:01 beeender

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

fikovnik avatar Feb 07 '21 17:02 fikovnik