When a golang function signature is split with a linebreak it does not appear in imenu
nor helm-imenu
. I would like to jump between functions using helm-imenu
, but this issue is in my way. Not hard-wrapping the function signatures is not a solution because others on my team have other preferences.
For example:
// This function does _not_ appear in imenu.
func (b *Foo) LongFunction(ctx context.Context, a A,
b B, c C) foobar.Bazzybaz {
...
}
// But this one does!
func (b *Foo) ShortFunction(ctx context.Context, d D) foobar.Wazoo {
...
}
Short of fixing the problem for me, it would be super helpful if you could point me towards where helm-menu
/imenu
gets its symbol list in the first place. Or another package suggestion for fuzzy-searching the file's function list.
emacs 24.5 (9.0)
osx 10.12.3
imenu.el
, variableimenu-generic-expression
– Drew Feb 17 '17 at 17:02