CachyOS / CachyOS/ananicy-rules

Feature Request: switching ananicy-cpp to newer version for regular expression rules support

Open
#200 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
218
Forks
145
Avg merge
3d 23h
Merged PRs (30d)
7

Description

I just noticed that ananicy-cpp already supported regular expression rules two years ago: https://gitlab.com/ananicy-cpp/ananicy-cpp/-/commit/6ea2dccceec39b6c4913f617dad81d859aa20f24

I know that ananicy-cpp didn't publish a release containing that commit yet, but considering the current maintenance level of ananicy-cpp, I don't think there will be any more releases in the future.

To use this feature, you need to turn on an extra option at compile time: ``-DENABLE_REGEX_SUPPORT=ON``

Here's an example (regex are generated by chatgpt)
```
{ "name": "", "name_regex": "^(?=.*steamapps).+.exe(?:[ \t]|$)", "type": "Game" }
```
(You have to add ``name`` in front of it, otherwise ananicy-cpp won't recognise the rule)

This rule will match all programs that are executed with a path containing ``steamapps`` and ending with ``.exe``

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.