goneovim icon indicating copy to clipboard operation
goneovim copied to clipboard

Able to change keyboard mappings ?

Open reaper opened this issue 3 years ago • 8 comments

I have a french keyboard and I cannot write the pipe character. Do I have a solution to change the keyboard mappings and use french keyboard ones, as for example alacritty explains in its wiki ? https://github.com/alacritty/alacritty/wiki/Keyboard-mappings#french-fr_fr

Thanks for your help!

reaper avatar Aug 09 '21 21:08 reaper

Hi! Thanks for this issue report.

Currently, Goneovim does not have any configuration options regarding keyboard input. I would like to check your environment below.

  • What OS are you using?
  • What version of Goneovim are you using?
  • I' m currently working on improving the keyinput in Goneovim. Does this problem still exist in the latest binaries available on Github actions? You can get it from the bottom of the page: https://github.com/akiyosi/goneovim/actions/runs/1113054564

akiyosi avatar Aug 09 '21 23:08 akiyosi

Hi you're welcome ! I'm using osx 11.5.1 and using the version 0.4.12 (218B) of goneovim. Yes the problem still remains in these binaries.

reaper avatar Aug 10 '21 08:08 reaper

Thanks for the info. I would like to know how the pipe character key is actually handled in Goneovim on your device. Could you please tell me the information including "key input:" in the debug log which output after starting Goneovim in debug mode and inputting the key that is intended to be the pipe input?

The specific steps are as follows.

  1. Open any terminal app

  2. Execute Goneovim as following:

    /Applications/goneovim.app/Contents/MacOS/goneovim --debug=/Users/YourAccountName/debug-goneovim.log &
    
  3. tail the log file

    tail -f /Users/YourAccountName/debug-goneovim.log
    
  4. Input the key that is intended to be the pipe character input.

akiyosi avatar Aug 11 '21 13:08 akiyosi

Sure, the key input is <A-L> for the pipe character. 2021/08/28 22:35:30.211204 4754.414 key input: <A-L> |, 76, 167772160

reaper avatar Aug 28 '21 20:08 reaper

Thanks for the replies! Apparently, the binaries I was releasing had Macmeta set to true by default, so setting Macmeta to false would fix the problem. Alternatively, I made the following changes to fix the default value of Macmeta. You can also use this fix as it contains other minor bug fixes.

https://github.com/akiyosi/goneovim/actions/runs/1178786575

akiyosi avatar Aug 29 '21 09:08 akiyosi

Setting Macmeta to false didn't fix the issue (0.4.12), but it works with the release binary Goneovim-latest-macos-5.15.2 from https://github.com/akiyosi/goneovim/actions/runs/1178786575. Thank you !

reaper avatar Aug 30 '21 10:08 reaper

@reaper Oh, sorry, macmeta setting in Goneovim is set in the Toml config settings.toml of Goneovim. However, this Toml config is inconvenient because it is not reflected without restarting Goneovim, so I started thinking that Macmeta-like settings should be able to be changed in the running vim config interface. In other words, something like adding g:macmeta. I'll be working on this improvement soon.

akiyosi avatar Sep 04 '21 15:09 akiyosi

Awesome! Thanks for your answer.

reaper avatar Sep 11 '21 17:09 reaper