Godef icon indicating copy to clipboard operation
Godef copied to clipboard

Default key bindings conflict with normal text editing

Open tcard opened this issue 6 years ago • 4 comments

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.

tcard avatar Jul 11 '18 07:07 tcard

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 avatar Aug 23 '18 19:08 jaytaylor

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

jaytaylor avatar Aug 23 '18 19:08 jaytaylor

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" }
]

jaytaylor avatar Aug 23 '18 19:08 jaytaylor

OK, I will change the default key later.

buaazp avatar Jan 10 '19 09:01 buaazp