colour trigger states
Posted: Sun May 30, 2010 5:19 am
I would like to match a line based on its colour.
Some generic text two words some random text.
This is how I tried to do it:
1. Create a filter head with the pattern: ^Some generic text (\w+\s\w+)
(right terminology? I created a trigger group and gave it the above pattern.)
2. I checked "filter"
3. I created a trigger inside this trigger group, and changed state 0 to type to "colour trigger"
4. I selected a red foreground and black background.
5. I populated state 0 with the pattern: (\w+\s\w+) and selected type: perl regex
6. I put echo("success") in the script.
This trigger fires, seemingly correctly.
However, if I change the foreground colour to something else, such as yellow or blue, it still fires.
What am I doing wrong?
Some generic text two words some random text.
This is how I tried to do it:
1. Create a filter head with the pattern: ^Some generic text (\w+\s\w+)
(right terminology? I created a trigger group and gave it the above pattern.)
2. I checked "filter"
3. I created a trigger inside this trigger group, and changed state 0 to type to "colour trigger"
4. I selected a red foreground and black background.
5. I populated state 0 with the pattern: (\w+\s\w+) and selected type: perl regex
6. I put echo("success") in the script.
This trigger fires, seemingly correctly.
However, if I change the foreground colour to something else, such as yellow or blue, it still fires.
What am I doing wrong?