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

ggtags-find-tag-dwim: jump to function in current file first #70

Closed
darren opened this issue Sep 26, 2014 · 2 comments
Closed

ggtags-find-tag-dwim: jump to function in current file first #70

darren opened this issue Sep 26, 2014 · 2 comments

Comments

@darren
Copy link

darren commented Sep 26, 2014

say there are two function definitions both called foo() in file bar1.c and bar2.c, and now current-buffer is bar1.c, when ggtags-find-tag-dwim runs, I think it is more preferable that it jump to the foo() in bar1.c first, i.e. foo() in bar1.c has higher priority.

@leoliu
Copy link
Owner

leoliu commented Sep 26, 2014

Thanks for suggesting. It is difficult to re-organize the matches from global such that those from current file are sorted first.

Find file-local definitions is delegated to imenu. Try M-x imenu. Also see this note on imenu in https://github.com/leoliu/ggtags#integration-with-other-packages. HTH, Leo

@leoliu
Copy link
Owner

leoliu commented Oct 2, 2014

It can be handy to prefer matches from the file where we start a search, which is now a key stroke away. Let me know if this helps or other comments to improve it. Thanks, Leo.

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