leoliu / ggtags

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

Tag navigation and compilation mode #203

Open GrqPnegre opened 4 years ago

GrqPnegre commented 4 years ago

Is it possible to scroll the tag buffer window without visiting files? For example, compilation mode allows for navigating errors without visiting the error locus, has follow mode, etc. These are pretty useful to prevent visiting multiple files.

Moreover, it would be useful for there to be an auto-kill nav command so that I can quickly scroll through buffers until I hit RET on the one I actually want to visit. For example, ggtag-navigation-next-error-kill-last-buffer.

leoliu commented 4 years ago

Sorry for the late reply.

What I personally do when I need the full power of compilation-mode is to switch to the buffer directly.

If you want the comfort of doing the naviation without select in the source buffer, you could customise ggtags-navigation-map with additional key bindings, for example, M-N and M-P for next-error-no-select and previous-error-no-select.

Note also ggtags has a command to quickly kill all file-visiting buffers associated with a project ggtags-kill-file-buffers.