glrnvim
glrnvim copied to clipboard
Support Ctrl-Shift-?
Do you plan to support Ctrl-Shift-? e.g. <C-S-p>
Ctrl-Shift
for what? I don't quite get
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
It seems to be possible, will do
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 :( )
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).