leoliu / ggtags

Emacs frontend to GNU Global source code tagging system.
http://elpa.gnu.org
575 stars 57 forks source link

any configs to split window like helm-gtags #152

Open freereaper opened 7 years ago

freereaper commented 7 years ago

Hi, really useful packages. And I wonder how to let the ggtags-global window split in the bottom and auto close when I choose one entry use RET key and restore the global window like helm-gtags.

Appreciate for your help.

leoliu commented 7 years ago

You probably need to play with ggtags-split-window-function, for example,

(setq ggtags-split-window-function
      (lambda (w) (split-window (frame-root-window w))))

Or play with emacs's display-buffer-alist.

freereaper commented 7 years ago

I have tried using ggtags-split-window-function, but it does not work. thanks

freereaper commented 7 years ago

@leoliu Hi, leoliu, I wonder the method that you deal with the tag's root dir when it has symlink folder in the current project and gtags jump to the symbol in the symlink foler.

leoliu commented 7 years ago

I think ggtags has some support for such arrangement. Do you see anything that is not working?

freereaper commented 7 years ago

nop, everything works ok. I just want to know how you find the "True tag's root directory" when it have jumped to the symlink folder.

leoliu commented 7 years ago

Does command ggtags-visit-project-root work for you?