Rule Reference
Rules tell Takt how to organize your tabs. Each rule matches tabs by URL or title and assigns them to a named, colored tab group.
Rule structure #
Every rule has:
- Name — a label for your reference (e.g., "GitHub repos")
- Conditions — one or more patterns to match against tab URLs or titles
- Group name — the label Chrome displays on the tab group
- Color — one of Chrome's 8 tab group colors
- Enabled — toggle rules on/off without deleting them
Rules are evaluated top-to-bottom in priority order. The first matching rule wins — later rules are not checked.
Match types #
Contains Free
Case-insensitive substring match. The pattern can appear anywhere in the URL.
| Pattern | Matches |
|---|---|
| github.com | https://github.com/user/repo |
| docs | https://docs.google.com/document/d/... |
| localhost | http://localhost:3000/api |
Exact Free
The full URL must match the pattern exactly (case-insensitive).
| Pattern | Matches |
|---|---|
| https://mail.google.com/mail/u/0/#inbox | Only that exact URL |
Domain
Matches the hostname or any subdomain. Useful for grouping all pages from a site regardless of path.
| Pattern | Matches |
|---|---|
| google.com | docs.google.com, mail.google.com, google.com |
| github.com | github.com/user/repo, gist.github.com |
Glob Premium
Shell-style pattern matching with wildcards:
*— matches any characters except/**— matches anything, including/?— matches exactly one character
| Pattern | Matches |
|---|---|
| *://github.com/*/issues | Issues page on any GitHub repo |
| *://docs.google.com/** | Any Google Docs page |
| http://localhost:30??/* | Localhost ports 3000-3099 |
Regex Premium
Full JavaScript regular expression. The pattern is anchored — it must match the entire URL (equivalent to wrapping in ^...$).
| Pattern | Matches |
|---|---|
| .*://(github|gitlab)\.com/.* | Both GitHub and GitLab |
| .*://.*\.aws\.amazon\.com/.* | Any AWS console page |
Regex patterns are powerful but can be tricky. Use the Rule Tester in the options page to verify your pattern matches the URLs you expect.
Condition fields #
Each condition matches against one of two fields:
- URL (default) — the full tab URL
- Title Premium — the page title shown in the tab
Additional options per condition:
- Negate — inverts the match. "URL does NOT contain
google.com" - Case sensitive — by default, matching is case-insensitive
Compound conditions #
Premium feature. Free users are limited to a single condition per rule.
Combine multiple conditions with:
- AND — all conditions must match
- OR — any condition can match
Example: group tabs where the URL contains github.com AND the title contains Pull Request.
Rule priority #
Rules are evaluated in the order they appear in your rule list. The first matching rule wins — the tab is assigned to that rule's group, and no further rules are checked.
Drag rules in the options page to reorder them. Put more specific rules higher, general catch-all rules lower.
Group colors #
Chrome supports 8 tab group colors: grey, blue, red, yellow, green, pink, purple, and cyan.
Free users can use grey and blue. Premium unlocks all 8 colors.