Hi, I have made a patch for the nearness sort. Would you please try this? The patch is to the latest repository.
Usage: $ global -x main --near-sort Regards, Shigio 2015-05-28 7:45 GMT+09:00 Gautam Thaker <[email protected]>: > I really like this concept of "nearness sort". Your explanation is quite > clear and concise. > > I tend to work w/ software that often have many many definitions of the > same symbol, but this nearness concept will keep me navigating in most > natural manner and get me to code that I am most likely to be interested in. > > Gautam > > > > On 5/27/2015 2:29 AM, Shigio YAMAGUCHI wrote: > > Hi, > Thank you for your trial. > > Inspired by your idea, I'm thinking about new sort method 'Nearness > sort' of > global(1)'s output. Basic idea is 'What will happen if we do not stop > "nearest process" on the way?' > > Nearness sort is invoked by the following option: > > $ global -x main --nearness-sort > > Nearness sort is based on the following priority. > (<n> means priority. <n> has higher priority than <n+1>) > > <1> files under the current directory > <2> files under the parent directory except for the files which have > higher priority. > <3> files under the grandparent directory except for the files which have > higher priority. > ... (repeat until the project root directory) > > In every priority, they are sorted by alphabetical order. > > Is the explanation enough? > Any comment? > > -- > Shigio YAMAGUCHI <[email protected]> > PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 > > > -- Shigio YAMAGUCHI <[email protected]> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3
nearness.patch
Description: Binary data
_______________________________________________ Bug-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-global
