This commit introduces the --exclude-titles argument to the aw-watcher-window module, allowing users to specify a list of window titles or regular expression patterns to exclude from tracking. This new feature is designed to complement the existing --exclude-title flag, providing enhanced flexibility for users who need to exclude multiple window titles without breaking compatibility with existing configurations.
Key Changes:
Added the --exclude-titles argument to the argparse configuration in config.py, enabling the specification of multiple exclusion patterns.
Updated the heartbeat_loop function in main.py to support both exclude_title and exclude_titles, with exclude_titles allowing for an array of titles to be excluded.
Utilized the re module for regex pattern matching against window titles, ensuring case-insensitive comparisons.
This enhancement ensures that users can now more precisely control which window titles are excluded from tracking, making the aw-watcher-window module more versatile and user-friendly.
This commit introduces the
--exclude-titles
argument to the aw-watcher-window module, allowing users to specify a list of window titles or regular expression patterns to exclude from tracking. This new feature is designed to complement the existing--exclude-title
flag, providing enhanced flexibility for users who need to exclude multiple window titles without breaking compatibility with existing configurations.Key Changes:
--exclude-titles
argument to the argparse configuration inconfig.py
, enabling the specification of multiple exclusion patterns.heartbeat_loop
function inmain.py
to support bothexclude_title
andexclude_titles
, withexclude_titles
allowing for an array of titles to be excluded.re
module for regex pattern matching against window titles, ensuring case-insensitive comparisons.This enhancement ensures that users can now more precisely control which window titles are excluded from tracking, making the aw-watcher-window module more versatile and user-friendly.