Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file path is shortened in the output buffer #202

Closed
zhishi opened this issue May 29, 2020 · 2 comments
Closed

file path is shortened in the output buffer #202

zhishi opened this issue May 29, 2020 · 2 comments

Comments

@zhishi
Copy link

zhishi commented May 29, 2020

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?

@leoliu
Copy link
Owner

leoliu commented May 29, 2020

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.

@zhishi
Copy link
Author

zhishi commented May 29, 2020

Thanks for response! I think this should be put into README, probably lots of people get confused.

@zhishi zhishi closed this as completed May 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants