your-tools / ruplacer

Find and replace text in source files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Option for path sorting?

ErichDonGubler opened this issue · comments

One thing that might be interesting for users: allow sorting of paths, which is useful for more deterministic output. walkdir allows results to be more strictly ordered, at the cost of (1) single-threading only, (2) some memory, and (3) latency for sorting. Suggested CLI: --sort-by=(file-name-natural|file-name|file-path|file-path-natural)

It's also pretty reasonable to not allow this -- if multiple paths were allowed, and it was guaranteed that paths would be visited in the order specified, then other shell commands can be used to provide an ordered list. This could also be complemented by being able to read a list of path arguments from a file.

Sorry, you failed to convince me 😛

Closing, for now