{"action":"closed","issue":{"url":"https://api.github.com/repos/leoliu/ggtags/issues/99","labels_url":"https://api.github.com/repos/leoliu/ggtags/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/leoliu/ggtags/issues/99/comments","events_url":"https://api.github.com/repos/leoliu/ggtags/issues/99/events","html_url":"https://github.com/leoliu/ggtags/issues/99","id":78239370,"number":99,"title":"when >> 1 tag exists, can the order in which they are offered be controlled?","user":{"login":"gthaker","id":12518676,"avatar_url":"https://avatars.githubusercontent.com/u/12518676?v=3","gravatar_id":"","url":"https://api.github.com/users/gthaker","html_url":"https://github.com/gthaker","followers_url":"https://api.github.com/users/gthaker/followers","following_url":"https://api.github.com/users/gthaker/following{/other_user}","gists_url":"https://api.github.com/users/gthaker/gists{/gist_id}","starred_url":"https://api.github.com/users/gthaker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gthaker/subscriptions","organizations_url":"https://api.github.com/users/gthaker/orgs","repos_url":"https://api.github.com/users/gthaker/repos","events_url":"https://api.github.com/users/gthaker/events{/privacy}","received_events_url":"https://api.github.com/users/gthaker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-05-19T20:28:05Z","updated_at":"2015-06-11T23:27:30Z","closed_at":"2015-06-11T23:27:30Z","body":"Hi:\r\n\r\nI am new to ggtags but it is very nice. I am using it to work on a large system in which there are many many directories (with subdirectories) that each contain one test program. Each of this test program has a function named \"Initialize_System()\". When I do a \"M-.\" sure enough all 54  choices are offered that I can go thru with M-n/p, but it would be great if the first choice offered would be from a file that is \"closest\" to where I am doing a M-.   By closest I mean:\r\n\r\nFirst match offer should be if that function exists in a file in this directory.\r\nThen 2nd match offer would be if that function is defined in any of the subdirectories of where M-.  is done.\r\nThen move up one directory and see if function exists there or in any subdirectory at that level.\r\nThen move up one more directory and repeat the process.\r\n\r\nThis way I can find definitions that I want to change most quickly. Presumably M-] would also benefit from such \"smarts\" (which can be controlled by some config setting variable.) I have things like D1/54 and R1/137, sure could use a way to nagivate more quickly.\r\n\r\nThanks again for a great mode. "}}