Given that the included rules are stored in a directory named 00-default, I assumed that ananicy would use the file names to order the rule files. I had my overriden rules in a directory named 10-overrides. This worked for a while but I didn't realize it ananicy just parses the files in the order the filesystem returns them. So currently, there doesn't seem to be a stable way to override the supplied rules for any given application (#265) since you can't be sure that the provided rules won't be loaded last.
Would a PR to walk the config directory in lexical order by welcome?
edit: actually, now that I'm actually reading through the code I think this is a 1-line change. sorting entries in find_files should do the trick, I think
Given that the included rules are stored in a directory named
00-default
, I assumed that ananicy would use the file names to order the rule files. I had my overriden rules in a directory named10-overrides
. This worked for a while but I didn't realize it ananicy just parses the files in the order the filesystem returns them. So currently, there doesn't seem to be a stable way to override the supplied rules for any given application (#265) since you can't be sure that the provided rules won't be loaded last.Would a PR to walk the config directory in lexical order by welcome?
edit: actually, now that I'm actually reading through the code I think this is a 1-line change. sorting
entries
infind_files
should do the trick, I think