> However, ggtags.el ends up invoking it from root of project as:
> And in this case "global" does not return
> as first choice though this is nearest.
> Just sharing in hopes this is worthy of a comment.
How about adding optional argument?
$ global --nearness main # nearness sort based on the current directory
$ global --nearness=<start point directory>
# nearness sort based on the start point directory