Giter Site home page Giter Site logo

Can not input <C-h> on Windows about fvim HOT 13 CLOSED

yatli avatar yatli commented on May 22, 2024
Can not input on Windows

from fvim.

Comments (13)

yatli avatar yatli commented on May 22, 2024

Investigating -- thanks!

from fvim.

yatli avatar yatli commented on May 22, 2024

@jjohnson338 ^H was translated to backspace -- standard ANSI sequence.
However, just sending over ^H to neovim results in reinterpretation just fine -- same for ^[, ^I, etc -- so I'm removing the translation code.

from fvim.

jjohnson338 avatar jjohnson338 commented on May 22, 2024

Thanks for investigating this. Unfortunately, the issue still persists. I've tried both v0.2-50-g6b4c309 and v0.2-51-g98b2006 on Windows 10.

For further context I've four remaps in my vimrc for jumping between windows/visible buffers:

" Control+hjkl moves focus to that window
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l

On the current release, only right (<C-l>) and up (<C-k>) are working as expected.

If there is anything I can do to aid in the debugging, please let me know.

from fvim.

yatli avatar yatli commented on May 22, 2024

I've tried the Ctrl+hjkl on my side, <C-h> doesn't work, <C-j> and <C-l> work as expected.
<C-k> works, with delay -- try <C-k> followed by other <C-> keys in insert mode and I've got some interesting mojibakes (some unicode glyphs)

Can you confirm this? Also, could you try to map it in insert mode, and see what will happen? I think neovim simply ignored or misinterpreted these combos.

from fvim.

yatli avatar yatli commented on May 22, 2024

FYI, <C-I> <C-J> <C-M> are not interpreted correctly if sent directly. Translation to the corresponding ANSI code is still necessary -- and I think it is the same case for <C-h>, which translates to <Backspace>

from fvim.

jjohnson338 avatar jjohnson338 commented on May 22, 2024

Can confirm that <C-k> then another character will insert unicode glyphs:
<C-k>aa resulted in the following character: å

<C-l> (right) and <C-k> (up) work for me, but <C-h> and <C-j> do not. I changed my mappings to insert mode:

inoremap <C-h> <C-w>h
inoremap <C-j> <C-w>j
inoremap <C-k> <C-w>k
inoremap <C-l> <C-w>l

and tested out in a buffer.
<C-h> just enters an 'h' character

<C-j> just enters an 'l' character

<C-k> removes the entire line and then enters an 'k' character (not just backspace, but wipes the line it's entered on if there are preceeding characters, otherwise, will remove the line entirely and append to the previous line

<C-l> does the same as <C-k> (wiping the line, then entering the character)

from fvim.

yatli avatar yatli commented on May 22, 2024

@jjohnson338 FYI:

neovim/neovim#2048
lxqt/qtermwidget#235

from fvim.

yatli avatar yatli commented on May 22, 2024

nvim-qt seems to handle this correctly.

from fvim.

jjohnson338 avatar jjohnson338 commented on May 22, 2024

Yeah, these keybinds work on nvim-qt. Was using that as my daily driver before fvim.

from fvim.

yatli avatar yatli commented on May 22, 2024

I'm looking at nvim-qt and hunting for the magic. 0.0

from fvim.

yatli avatar yatli commented on May 22, 2024

@jjohnson338 well there's no magic -- I was doing it right to remove the translation -- only forgetting that I've got some other special treatments on the modifiers that also needs to be removed!

from fvim.

yatli avatar yatli commented on May 22, 2024

try 0.2-56 (when it finishes building)

from fvim.

jjohnson338 avatar jjohnson338 commented on May 22, 2024

Works great! Thanks so much!

from fvim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.