Hi,
> However, ggtags.el ends up invoking it from root of project as:
...
> And in this case "global" does not return
> "examples/dcps/HelloWorld/c/src/DDSEntitiesManager.c"
> 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
Regards,
Shigio
--