bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: on ordering the entries returned by global.


From: Shigio YAMAGUCHI
Subject: Re: on ordering the entries returned by global.
Date: Wed, 27 May 2015 15:29:52 +0900

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 <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3

reply via email to

[Prev in Thread] Current Thread [Next in Thread]