oni icon indicating copy to clipboard operation
oni copied to clipboard

Shift + Space rendered as ;2u in Terminal Mode

Open siddharth99 opened this issue 8 years ago • 4 comments

Oni Version: oni version 0.3.4

Neovim Version (Linux only): nvim --version NVIM v0.3.0-1184-g4744142fa

Operating System: Description: Ubuntu 16.04.4 LTS

Issue: Shift + Space in terminal mode is displayed as ;2u

Expected behavior: Just a simple Space

Actual behavior: displayed as ;2u

Steps to reproduce: Without any init.vim it's reproducible

image

siddharth99 avatar Jun 21 '18 19:06 siddharth99

Hello and welcome to the Oni repository! Thanks for opening your first issue here. To help us out, please make sure to include as much detail as possible - including screenshots and logs, if possible.

oni-bot avatar Jun 21 '18 19:06 oni-bot

I get [32;2u when I do Shift-Space on Windows, in both Oni and Nvim-QT. I get Space as expected though in nvim terminal.

That is with master of Oni, and master of Neovim.

CrossR avatar Jun 21 '18 19:06 CrossR

Similarly on macOS I get 2;2u when I do shift-space. Apparently I've been mashing my keys for years without realising 🤦‍♂️ I believe everything else treats shift-space and space as equivalent and I'd love it if Oni did the same. This only seems to affect terminal mode.

As a temporary workaround, this is easy to fix by remapping Shift-space to just space:

tnoremap <s-space> <space>

benjie avatar Jul 06 '18 07:07 benjie

I've had the same thing with neovim-qt and put the workaround that @benjie suggests in my nvimrc.

danshapero avatar Aug 21 '18 17:08 danshapero