Rules
Rules are what lets TraceTime file things automatically: they recognise an app or a title and file it into a task.
The player comes from YouTube (privacy-enhanced mode) and only loads when you click.
The scope of a rule
A rule applies either to the whole application, or to a position in the window title:
| Position | Meaning |
|---|---|
| Starts with | The title starts with the text you typed. |
| Contains | The title contains the text you typed. |
| Ends with | The title ends with the text you typed. |
The text is compared ignoring case. The old pattern format (XX_) is still recognised for compatibility (legacy) but the app never creates one again.
Contains = AND words: "salon teams" requires both words to be present, in any order. The most specific wins: a rule on the title comes before a rule on the whole app, and rules are then separated by their priority.
Creating a rule
There are three ways to create a rule:
- by dragging a leaf onto a task in the Day view, which then offers "Create a rule?";
- by dragging a pack header (see detected packs);
- from the Rules page, with a dedicated form.
From a pack, the rule is already written. It is set to "Contains", with the pack's common thread in the field, and the other scopes are locked: the rule is the pack, and it will file exactly what you saw inside it. The text itself stays editable, and the preview says live what your edit would change.
The window asks two separate questions, in two numbered frames. The first is a work area: you type and adjust there. The second is a decision area: one click, and the rule exists.
| Frame | Question | What you do there |
|---|---|---|
| ① What the rule recognises | What triggers it | The whole app, this exact title, or part of the title. |
| ② What TraceTime does with it | What happens next | File it for me, suggest it to me, or let me sort it. |
Knowing what the rule will file, before you create it
Under frame ①, a sentence says live how many items and how many days would be filed by the rule you are typing. The number moves as you adjust the text.
Two things to know about that number, because they explain why it can look low:
- it counts what the rule would win, not everything it recognises: a line already taken by a more specific rule is not counted;
- it only covers days that are still to be sorted. Validated days are never touched by a new rule.
If the text you typed does not recognise the line that triggered the creation, the sentence turns red and the three levels are locked: a rule has to recognise the line that prompted it.
Recognising part of the title
"Part of it…" opens the recognition area: a position (Starts with, Contains, Ends with) and the text to recognise. Until that scope is chosen, the area is not displayed rather than greyed out, so that there is nothing dimmed to interpret.
The ? button unfolds a help panel that describes exactly what the engine does: words separated by spaces are all required, in any order, quotation marks make an exact phrase, case is ignored but accents count. That help text is checked automatically against the recognition engine, so it cannot start telling you something false.
The ↺ button puts the full title back into the field. It restores a text, never a scope: "Part of the title" with the whole title in it is not the same rule as "This title", which requires an exact match.
When a title contains a date, a time or a number, TraceTime offers "Part of the title" straight away: a rule on a title that will never occur identically again would only fire once.
On the keyboard, 4 5 6 pick the scope and 1 2 3 the level.
Editing a rule
Clicking the "Auto" or "Suggested" badge of a filed leaf opens the edit window for the rule that filed it. On a "Manual" line, TraceTime offers to create a new one instead.
Deleting a rule
A rule that has already filed work does not disappear silently: TraceTime first asks what happens to that work.
| Answer | What happens to the work already filed |
|---|---|
| Keep them filed where they are | The lines stay filed and become "Manual". Clicking that badge then offers to create a new rule. |
| Put them back in the sorting inbox | The lines become unfiled again and go back into the inbox. |
Without that question, deleting a rule left an orphan filing that nothing explained any more, or emptied a week of work without warning. Already validated days are never touched, whatever your answer.
Cross day refiling
Every time a rule is created or promoted, TraceTime re-checks the segments still in the inbox across all days that are not validated:
| Level | Effect |
|---|---|
| Auto | A confirmation that first says what the rule recognises ("Google Chrome lines that contain "Microsoft Teams"") before announcing where they would go and how many: N items over M days. File them all, or Cancel. |
| Semi | Silent re-tagging: matching segments become "suggested" on open days. |
| Manual | No refiling: the past is not unfiled. |
"File them all" files everywhere (the items disappear from the inbox of the affected days); "Cancel" writes nothing on creation, or goes back to the previous level when editing. Opening a past day that has not been validated refiles it with your current rules.
Careful. The "N items over M days" counter of an Auto rule is not just information: it is the signal that a rule is too broad, before it files too much at once. Read it together with the sentence above it: seeing "all Google Chrome lines" where you thought you had written "that contain Microsoft Teams" is how you catch a rule that is too wide.
Inactive projects
Deactivating a project suspends its rules, without touching their internal state: they resume automatically when the project is reactivated. While a project is inactive, its suggestions disappear from Sorting.