buaazp / Godef

Plugin of sublime to use godef to go to definitions accurately.
BSD 3-Clause "New" or "Revised" License
82 stars 24 forks source link

Default key bindings conflict with normal text editing #26

Open tcard opened 6 years ago

tcard commented 6 years ago

The default key bindings "gd" and "gh" are triggered when you attempt to write those character sequences as text. You can't, for example, write "height" without Godef getting in the way. This is very annoying.

25 is a manifestation of this.

jaytaylor commented 6 years ago

Also found Sublime unable to type "gh" since the past few months or perhaps more.

This was a real bear to track down.

Keywords: Sublime Text 3 unable to type words containing G-H or G-D

jaytaylor commented 6 years ago

Appears it was introduced on May 10th 2018 with e3e06a7.

jaytaylor commented 6 years ago

Manually fixed for now by editing all Godef/Default*.sublime-keymap files and replacing the contents with:

[
    { "keys": ["ctrl+shift+d"], "command": "godef" } 
    // { "keys": ["g","d"], "command": "godef" },
    // { "keys": ["g","h"], "command": "godef_prev" }
]
buaazp commented 5 years ago

OK, I will change the default key later.