Rule Management

Has something gone haywire? Let us know about it!
Post Reply
bprentice
Posts: 920
Joined: September 10th, 2009, 6:20 pm
Location: Coos Bay, Oregon

Rule Management

Post by bprentice » April 3rd, 2015, 11:56 am

I now have more than 600 rules in my "My Rules" directory. They are organized in sub directories for convenience. Unfortunately this requires the frequent changing of the "Your Rules" pointer in Preferences/Control. Rule management would be a lot easier if Golly searched the directory pointed to in "Your Rules" and all of its sub directories when looking for a rule.

Brian Prentice

User avatar
Andrew
Moderator
Posts: 927
Joined: June 2nd, 2009, 2:08 am
Location: Melbourne, Australia
Contact:

Re: Rule Management

Post by Andrew » June 1st, 2015, 10:18 pm

(Sorry for the very late reply!)

I'd have to say that such a feature is unlikely to be implemented, at least by me (but Golly is open source...). It would require quite a lot of code changes to support this on all platforms, especially to do it efficiently. I once wrote code to do sub-directory file searching for one of my Mac apps (OzTeX) and it wasn't much fun. In Golly's case I just don't see much benefit to be gained (and it would definitely need to be an optional feature in case there are people already using subdirs for other purposes).

Note that there is a Python command you can use to set the rules directory:
golly.setdir("rules", "/path/to/my-rules/subdir1/")

So maybe you could write a few scripts for switching directories, or maybe just one script that created a list of all the desired subdirs in the Help window where each subdir is a link that runs another script which calls the appropriate setdir command. That would be a lot quicker than using Prefs > Control.
Use Glu to explore CA rules on non-periodic tilings: DominoLife and HatLife

Post Reply