hismailbulut / Neoray

Simple and lightweight GUI client for Neovim
MIT License
148 stars 5 forks source link

Feature request: CSI u modifiers #5

Closed andis-sprinkis closed 3 years ago

andis-sprinkis commented 3 years ago

In suckless st and iterm2 terminal emulators I can use Ctrl+Alt+H / J / K / L as mappings in Neovim. I use these mappings to resize Neovim panes when running it in these terminal emulators.

" resize splits
nnoremap <silent><C-A-j> :resize +2<cr>
nnoremap <silent><C-A-k> :resize -2<cr>
nnoremap <silent><C-A-l> :vertical resize +4<cr>
nnoremap <silent><C-A-h> :vertical resize -4<cr>

In iterm2 these kind of shortcuts work after enabling this feature: https://iterm2.com/documentation-csiu.html It seems like something that currently is not available in Neovim Qt or in neoray.

Could support for these mappings be added to neoray?

hismailbulut commented 3 years ago

You are be able to use this keybindings from now on. Please try latest release and send me your feedback.

andis-sprinkis commented 3 years ago

My Ctrl-Alt-* mappings work without issue now. Thanks! This along with great performance makes neoray one of the better Neovim clients :)

hismailbulut commented 3 years ago

Thank you. I hope it will be. Input mappings is very important for me and that's actually why I started writing this program. Always report if there are any input issues.