Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Allow custom zones to specify exact matches

Open PatrikLundell opened this issue 1 month ago • 3 comments

Is your feature request related to a problem? Please describe.

I have the problem that I want to create zones containing exactly one type of item, but since there is a lot of junk that happens to have the item's full name as a substring, I can't filter it properly.

Examples are "log" for storage close to charcoal kilns, and "charcoal" close to smoking racks.

Solution you would like.

Introduce a new qualifier, e.g. x for exact match.

Describe alternatives you have considered.

Exclude all items that shouldn't be in these zones, and using categories to filter out some unwanted stuff.

Additional context

No response

PatrikLundell avatar Nov 21 '25 11:11 PatrikLundell

I think If we just copy-pastad the system for safe mode ignores zones could be a lot more powerful

kholat avatar Nov 21 '25 18:11 kholat

Well, I mean, in all our filtering there should be a way to indicate a string is an exact match or whole word. This also relates to the need to make a pass over a number of objects and reconsider their naming for the purpose of filtering. I was trying to use custom filter zones to better organize my spare parts and I had to keep going back to the filters and adding new phrases for an item of a different size that didn't have the same base name. My example would be the various forms of sheet metal.

One possible solution I would like to propose is a zone type where only those items which are already in it will be added to it when sorting. That way if you want logs to go to one location and charcoal to another, you just have to create two instances of this new zone type, plop a log in one, a piece of charcoal in the other. Then when you sort, all the logs go to the first and the charcoal go to the second.

UristMcFarmer avatar Nov 23 '25 23:11 UristMcFarmer

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not bump or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

github-actions[bot] avatar Dec 08 '25 23:12 github-actions[bot]