WarmUpTill / SceneSwitcher

An automation tool for OBS Studio
https://obsproject.com/forum/resources/automatic-scene-switching.395/
GNU General Public License v2.0
984 stars 78 forks source link

[feature request] Match file content only in changed parts of the file #886

Open Destroy666x opened 1 year ago

Destroy666x commented 1 year ago

Is your feature request related to a problem? Please describe. What I mean is kind of a combo of Content changed and Matches file conditions. For example, let's say that a game logs all of its actions to a txt file. The actions can repeat themselves, e.g. "Player 1 won" or anything alike can happen after each match. So a way to plain/regex match only new, changed content (based on some diff library I guess) would be awesome.

Describe the solution you'd like Either a dropdown element for File condition like Changed content matches which is basically Matches but only for modified contents or a checkbox like Match only modified in current Matches condition that would work similarly. 2nd solution seems quicker to achieve.

As for diff matching, an alternative would be matching only lines added at the end (tail mode), which is more optimal for my use case and easier to implement, but also much less flexible for other use cases.

Describe alternatives you've considered I don't think there's any

Additional context -

WarmUpTill commented 1 year ago

Thanks for the suggestion! :) I will try to look into it once I find the time to!