Closed zhishi closed 4 years ago
You can use M-o
to show full filename.
See variable ggtags-global-abbreviate-filename
. The abbreviation is implemented in ggtags-abbreviate-file
which you can use advice to override for custom format.
Thanks for response! I think this should be put into README, probably lots of people get confused.
I found that in ggtags-global lots of the matching lines with file path shortened, but not all of them. The problem is the shortened path is hard to see what's the real file path, the output is like below:
e/c_a_c_a_c_a/t/g-1.8.0/gmock.h: 11019:#define ON_CALL
where the real path is actually: external/com_github_c_ares_c_ares/test/gmock-1.8.0/gmock.h:11019:#define ON_CALL
I wonder is there a way to make it only show real path, or only shorten it by cutting some parent folders. So how to change the output format?