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

GoTo Definition with columns can reopen the file. #27

Open bk800 opened 4 years ago

bk800 commented 4 years ago

I usually use 2 columns under "View"->"Layout".

I have source fileA in Col1, and another source fileB containing the definition of a function is in Col2.

Using "GoTo definition" in the source fileA sometimes reopens fileB in Col1 and goes to the definition.

It would be better if it found the source fileB in Col2 that is already open, and went to the definition there. No need to have the same file open twice.

Thx